Advertisement
Guest User

Untitled

a guest
Feb 20th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?php
  2.  
  3. require('phpagi-2.20/phpagi-asmanager.php');
  4.  
  5. $asm = new AGI_AsteriskManager();
  6. if($asm->connect("127.0.0.1","mark","mysecret"))
  7. {
  8. $call = $asm->send_request('Originate',
  9. array('Channel'=>"SIP/679323464@sip.ovh.es",
  10. 'Application' => 'AGI',
  11. 'MaxRetries' => '2',
  12. 'WaitTime' => '2',
  13. 'RetryTime' => '300',
  14. 'Application' => 'AGI',
  15. 'Data' => 'prueba.php',
  16. 'Set:'=> 'texto=esto no mola absolutamente nada',
  17. ));
  18. var_dump($call);
  19.  
  20. $asm->disconnect();
  21. }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement