Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env php
- <?php
- /******************************************************************/
- require_once('phpagi/phpagi.php');
- require_once('phpagi/phpagi-asmanager.php');
- require_once('dbconnect.php');
- /******************************************************************/
- $hostM="localhost";
- $userM="PWCManager";
- $passM="PWC@Manager703";
- $asm = new AGI_AsteriskManager();
- if($asm->connect($hostM,$userM,$passM))
- {
- $number = 3477616074;
- $callOut_Channel = "Local/$number@callbackPWCTAXI";
- $callOut_Context = "callbackPWCTAXI";
- $call = $asm->send_request('Originate',
- array('Channel'=> $callOut_Channel,
- 'Timeout'=>'90000',
- 'MaxRetries'=>"5",
- 'RetryTime'=>"5",
- 'ActionID'=>'11111',
- 'Context'=> $callOut_Context,
- 'Exten'=>'s',
- 'Priority'=>1,
- 'Async'=>'true',
- 'Variable'=> $number,
- 'Callerid'=> $number));
- $asm->disconnect();
- }
- ?>
- == Manager 'PWCManager' logged on from 127.0.0.1
- == Manager 'PWCManager' logged off from 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement