Hello,
I always try my best efforts in troubleshooting before posting here and in this case I have exhausted my limits as I've tried various combinations but the problem persists.
The problem is:
- When I use a2billing-cid-callback context the system works as expected:
The CID is registered in the card,
When I call the trigger number from that CID the system does not answer (hangup)
And then I receive a call from the system which asks me to dial the destination number which in turn gets called. No problems here.
When however I test the a2billing-callback context the system answers, asks me the card number, authenticates, asks the destination number and then just dials the destination as if I was using the standard a2billing context. It does not hang-up in order to call me.
Any ideas?
I tried attaching a full trace file of an attempt however the board did not accept the txt file.
Pastebin:
http://pastebin.com/F8GvbVEmA2billing Context used:
=======================
[a2billing-callback]
exten => _X.,1,Answer
exten => _X.,n,DeadAGI(a2billing.php,3,callback)
exten => _X.,n,Hangup
=======================
Agi-conf3:
===============
answer_call = NO
use_dnid = NO
number_try = 1
auto_setcallerid = YES
cid_sanitize = CID
cid_enable = YES
cid_askpincode_ifnot_callerid = YES
Callback configuration section:
================
context_callback = a2billing-callback
answer_call = NO (tried YES as well, same problem)
System:
===============
Asterisk 11.14.1
FreePBX 2.11.0.42 (Build on FreePBX Distro, PBX Firmware: 5.211.65-21)
PHP Version : 5.3.28
A2B DataBase Version : 2.0.16
MYSQL : 5.1.73
Any help is much appreciated!
N
--EDIT:
I forgot to mention that call-back from the WEB works ok.