Dears;
I am facing a problem that the analoge ports are hanging (seems is not hangup properly) from time to time, which requires from me to do dahdi restart.
I am using the following:
[ExternalReport]
include => Internal
exten => _NX.,1,Answer exten => _NX.,2,Wait(2) exten => _NX.,3,AGI(a2billing.php,2) exten => _NX.,4,Wait(2) exten => _NX.,5,Hangup
exten => _18X.,1,Answer exten => _18X.,2,Wait(2) exten => _18X.,3,AGI(a2billing.php,2) exten => _18X.,4,Wait(2) exten => _18X.,5,Hangup
These numbers should goes via the DAHDI channel as I configured trunk as following:
Tech Provider: DAHDI Provider IP: g1
Also in the rates, I configured that _NXXXXXXX should be routed for the this trunk.
Actually it is working fine, but after some days we are facing that some of the DAHDI ports are hanged and the dahdi should be restarted !
It seems the hangup is not happening properly, or the AGI(a2billing.php,2) is hanging maybe? AGI(a2billing.php,2) is not handling well the Dial and the Hangup.
I do not know what is the solution to overcome this? Is there a timeout requires to be set at the DAHDI parameters? Or there is a script need to be added?
By the way, I am using the following value for the dialcommand_param:
,60,HRL(%timeout%:61000:30000)
And I am using agi-conf2
Please I need a help because it is becoming very miserable.
Regards Bilal
|