Hi, I am using a system combined with Asterisk 1.8, FreePBX 2.9 and A2Billing 2.9. My callback of user web portal is not working.
Actually my system contains three features.
1. A user will call to my DID number and get authentication prompt. there he/she will provide his/her authentication and get his/her account information and dialing prompt. after pressing the desired number it matches the call rate with the prefix and announce his/her about the call rate and the minutes balance that he/she have. after that it ring and call is established and reporting , everything is fine in this case. I am using here "a2billing" as call-context and agi-conf1 for this system. It works not only fine though fantastic.
2. Another feature is call forward. For this call forward anyone will dial a DID and the call is automatically forwarded to users assigned number and the call rate is matching as previous one and cut from the account holder's account. For this I use "a2billing - DID" call-context and and agi-conf2 for the feature. It also works fantastic.
3. Now the problem one. Here i wanna use the callback feature where a registered user can use callback from his/her account portal. This is not working for me. I am setting up a2b-callback-daemon for the purpose but it show the "Pending" status and from the log its shows "waiting". It don't hit the asterisk for calling. Here i wanna use the "a2billing-callback" or "a2b-cid-callback" call-context and another agi-conf3 for this purpose. Here I post the configurations for help....
/etc/asterisk/manager.conf file - #include manager_additional.conf include manager_custom.conf
/etc/asterisk/manager_include.conf - [myasterisk] secret=mycode deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 ;read=system,call,log,verbose,command,agent,user,originate ;write=system,call,log,verbose,command,agent,user,originate read=system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan,originate write=system,call,agent,user,config,command,reporting,originate
/etc/asterisk/extensions_custom.conf -
[macro-dialout-trunk-predial-hook] exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2) exten => s,2,MacroExit
[custom-freepbx-a2billing] exten => _X.,1,DeadAGI(a2billing.php,${OUT_${DIAL_TRUNK}:8}) exten => _X.,n,Hangup()
[a2billing] exten => _X.,1,Answer exten => _X.,n,Wait(1) exten => _X.,n,deadAGI(a2billing.php,1) exten => _X.,n,Hangup
[a2billing-callback] exten => _X.,1,deadAGI(a2billing.php,3,callback) exten => _X.,n,Hangup
[a2billing-cid-callback] exten => _X.,1,deadAGI(a2billing.php,3,cid-callback,) ;last parameter is the callback area code exten => _X.,n,Hangup
[a2billing-all-callback] exten => _X.,1,deadAGI(a2billing.php,3,all-callback,88) ;last parameter is the callback area code exten => _X.,n,Hangup
[a2billing-predictivedialer] exten => _X.,1,DeadAGI(a2billing.php,3,predictivedialer) exten => _X.,n,Hangup
[a2billing-did] exten => _X.,1,deadAGI(a2billing.php,2,did) exten => _X.,2,Hangup
[a2billing-voucher] exten => _X.,1,deadAGI(a2billing.php,1,voucher) exten => _X.,n,Hangup
[custom-a2billing-did] exten => _X.,1,deadAGI(a2billing.php,2,did) exten => _X.,2,Hangup
[custom-a2billing] exten => _X.,1,deadAGI(a2billing.php,1) exten => _X.,n,Hangup
log of a2b-callback-daemon -
"2012-05-04 00:12:55,884 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:00,947 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:06,010 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:11,072 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:16,135 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:21,204 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:26,268 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:31,330 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:36,393 - root - MainThread - INFO - waiting..." "2012-05-04 00:13:41,457 - root - MainThread - INFO - waiting..." "2012-05-04 00:00:01,233 - root - MainThread - INFO - waiting..." "2012-05-04 00:00:06,296 - root - MainThread - INFO - waiting..." "2012-05-04 00:00:11,359 - root - MainThread - INFO - waiting..."
Call-contexts are - -
a2billing,${EXTEN},1 - a2billing (for the 1. calling a number) custom-a2billing-did,${EXTEN},1 - A2Billing - DID (for the 2. forward a call) a2billing-callback,${EXTEN},1 - a2billing-callback (for the 3. callback)
Thats the details of my system. sorry for the long descriptions. I am really hopeless. I attach two screen shot of the call back.
Any one please help me the proper configuration of the callback from user web portal. All the manager.conf, extensions_customs.conf, agi-conf all please.
I am waiting for ur lind reply.
Regards, Faisal
Attachments: |
File comment: callback from user portal......
callback from user portal.jpg [ 78.22 KiB | Viewed 8370 times ]
|
File comment: report of that callback.....
Report of call back.jpg [ 151.52 KiB | Viewed 8259 times ]
|
|