[Asterisk-Dev] AGIphp Installation
Abdul Lateef Khan
abdulzu at hotmail.com
Mon Nov 21 04:00:15 MST 2005
Hi bari,
Thank you for kind of help.
I am facing the some problem in phpagi. I was trying to use ring.php but i
cannot hear anything according to my ring.php file '
I am getting somme warnning in logs ::
Nov 21 10:44:26 WARNING[8266]: Maximum retries exceeded on call
5310b07dbf400813 at cHJvZ3JhbW1pbmc. for seqno 1 (Critical Response)
here is my configuration.
[123456]
type=friend
username=123456
host=dynamic
nat=yes
context=ppp
allow=ulaw
allow=alaw
extentions.conf
[ppp]
exten => 111,1,agi(ring.php)
[sip]
exten => _X.,1,Dial(SIP/${EXTEN}@xxx.xxx.xxx.xxx)
ring.php
<?php
require_once('phpagi-asmanager.php');
$number = '9745405022'; //my mobile no.
$asm = new AGI_AsteriskManager();
if($asm->connect())
{
$call = $asm->send_request('Originate',
array('Channel'=>"SIP/$number",
'Context'=>'sip',
'Priority'=>1,
'Callerid'=>$number));
$asm->disconnect();
}
?>
I will be appriciate if anyone can help me.
Thank You
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the asterisk-dev
mailing list