Hi,
well I've found that my change did broke calling from A2B SIP accounts. The problem is that A2B do not see the dialed phone number.
So I reverted all changes made to a2billing.php and solved the issue through dial plan configuration.
Now there is following code in a2billing.php:
Quote:
$A2B->dnid = $agi->request['agi_dnid'];
$A2B->extension = $agi->request['agi_extension'];
and the AGI script is being launched like this:
Quote:
exten => _X.,1,NoOp()
exten => _X.,n,Set(CALLERID(dnid)=${EXTEN})
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup
Now everything seems to work fine.
Regards
Milan Benicek
http://www.siphone.cz/