[asterisk-users] AGI HANGUP PROBLEM

Mehdi Rahimi mrm.cisco at gmail.com
Mon Sep 17 12:22:48 CDT 2012


Hi all,

I need to handle a problem from AGI please guide me

 in extensions_custom.conf :

 exten => s,1,Answer
 exten => s,n,AGI(hang.php)
 exten => s,n,Hangup

 in hang.php :

 #!/usr/bin/php -q
 <?
 set_time_limit(30);
 require('phpagi.php');
 error_reporting(E_ALL);
 $agi = new AGI();
 $agi->answer();
 $agi->say_number('10000');
 $agi->hangup();
 ?>


 calling from an extension has no problem but whenever i use landline
 or mobile it can not hangup the call and the caller has to hangup the
 call.
 if the caller does not hangup the call it becomes kind of SPY (the
 caller can listen DTMF if someone call from an extension)

 I am using elastix 2.3.0 which has asterisk 1.8.10.0 .

 I really appreciate your sharing.

 Regards,
 Mehdi



More information about the asterisk-users mailing list