Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('phpagi-2.20/phpagi-asmanager.php');
- $asm = new AGI_AsteriskManager();
- if($asm->connect("127.0.0.1","mark","mysecret"))
- {
- $call = $asm->send_request('Originate',
- array('Channel'=>"SIP/679323464@sip.ovh.es",
- 'Application' => 'AGI',
- 'MaxRetries' => '2',
- 'WaitTime' => '2',
- 'RetryTime' => '300',
- 'Application' => 'AGI',
- 'Data' => 'prueba.php',
- 'Set:'=> 'texto=esto no mola absolutamente nada',
- ));
- var_dump($call);
- $asm->disconnect();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement