[asterisk-users] PhpAgi call generation
Christopher Robinson
chris.robinson at sayersmedia.com
Tue Jun 19 10:36:41 CDT 2007
This should help:
http://www.voip-info.org/wiki/index.php?page=Asterisk+channels
Channel can be anything that is valid on your system. I use Local
because it allows me to better control the outbound call.
nik600 wrote:
> 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
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
More information about the asterisk-users
mailing list