Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 11:12 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Callback (Web callback from user portal).
PostPosted: Fri May 04, 2012 12:59 pm 
Offline

Joined: Fri May 04, 2012 12:01 pm
Posts: 6
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
callback from user portal.jpg [ 78.22 KiB | Viewed 7972 times ]
File comment: report of that callback.....
Report of call back.jpg
Report of call back.jpg [ 151.52 KiB | Viewed 7867 times ]
Top
 Profile  
 
 Post subject: Re: Callback (Web callback from user portal).
PostPosted: Fri May 11, 2012 4:34 am 
Offline

Joined: Fri May 04, 2012 12:01 pm
Posts: 6
Hi all,

I solve it.

Regards,
Faisal


Top
 Profile  
 
 Post subject: Re: Callback (Web callback from user portal).
PostPosted: Sat May 19, 2012 7:06 pm 
Offline
User avatar

Joined: Fri Sep 18, 2009 5:46 pm
Posts: 132
Location: hhhhmmmmm
Faisal, do you mind to share your solution with forum.
Masum_Faisal wrote:
Hi all,

I solve it.

Regards,
Faisal


Top
 Profile  
 
 Post subject: Re: Callback (Web callback from user portal).
PostPosted: Thu May 31, 2012 12:02 am 
Offline

Joined: Mon Mar 28, 2011 12:52 am
Posts: 39
pLEASE can you tell how didyou solve the problem I'm facing the same issue


Top
 Profile  
 
 Post subject: Re: Callback (Web callback from user portal).
PostPosted: Tue Jan 28, 2014 7:36 pm 
Offline

Joined: Fri Mar 01, 2013 8:53 pm
Posts: 39
I Know this post is old, but I'm facing the same problem, can somebody help please ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group