[asterisk-users] PhpAgi call generation

nik600 nik600 at gmail.com
Tue Jun 19 09:52:51 CDT 2007


many thanks to all.

I am interested to originate the call using phpAGI with this code.

<?php
 require('PHPAGI/phpagi-asmanager.php');

 $callid = 'Somebody';

 $asm = new AGI_AsteriskManager();
 if($asm->connect())
 {
   $call = $asm->send_request('Originate',
           array('Channel'=>"LOCAL/17165555555 at voicepulse",
                 'Context'=>'called_party_context',
                 'Exten'=>'899',
                 'Timeout' => '1000',
                 'Async'=>'1',
                 'MaxRetries' => '5',
                 'RetryTime' => '5',
                 'Priority'=>1,
                 'Callerid'=>$callid));
   $asm->disconnect();
 }
?>

how can i create the LOCAL channel?
is there a configuration file?

thanks



More information about the asterisk-users mailing list