Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sun Apr 05, 2020 11:57 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: CallBack help is needed
PostPosted: Sun Jun 21, 2009 2:04 am 
Offline

Joined: Tue Jun 09, 2009 2:57 am
Posts: 7
hello there,
I have asterisk 1.6 and a2billing 1.4.
I have two internal dahdi channels 1 and 2. (internal extensions)
I have two external dahdi channels 3 and 4. (connected to PSTN lines)

I set internal dahdi channel (1) to have the caller ID of 123456789.
This caller ID is add ot the Calling Card Identification NO: 8121555977

a2b-callback-daemon is runnning and logging to the file /var/log/a2billing/a2b-callback-daemon.log. At the moment it only
contains the following messages (lots of the same as this one):
.
.
"2009-06-21 05:05:42,753 - root - MainThread - INFO - waiting..."
.

My extensions.conf file contains:
; Internal context
;#######################################################################################
[Internal]
exten => 8888,1,Goto(a2billing-cid-callback,${EXTEN},1)

exten => 1000,1,NoOp(${CALLERID(all)})
exten => 1000,n,Answer()
exten => 1000,n,Wait(2)
exten => 1000,n,DeadAGI(a2billing.php)
exten => 1000,n,Wait(2)
exten => 1000,n,Hangup()


exten => 123456789,1,Dial(dahdi/1/20,t)
exten => 123456789,n,Set(CURRENT_EXTEN=${EXTEN})
exten => 123456789,n,Goto(s-${DIALSTATUS},1)


[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,DeadAGI(a2billing.php,3,cid-callback,) ;last parameter is the callback area code
exten => _X.,n,Wait(60)

[a2billing-callback]
exten => _X.,1,Answer
exten => _X.,n,DeadAGI(a2billing.php,1,callback)
exten => _X.,n,Hangup


[a2billing-all-callback]
exten => _X.,1,Ringing()
exten => _X.,n,DeadAGI(a2billing.php,4,all-callback,) ;last parameter is the callback area code
exten => _X.,n,Wait(60)
;#######################################################################################


I dial 8888 from 123456789 (dahdi channel 1) and after I heaer a ring only once I hear the busy tone and hang up then notice

the following messages on Asterisk CLI:

[Jun 21 05:14:33] DEBUG[8375]: manager.c:2969 process_message: Manager received command 'Login'
== Manager 'myasterisk' logged on from 127.0.0.1
[Jun 21 05:14:33] DEBUG[8375]: manager.c:2969 process_message: Manager received command 'Originate'

I then check the callback daemon log file and notice the messages:


"2009-06-21 05:14:33,886 - root - MainThread - INFO - [<callback_daemon.database.CallBack_Spool object at 0xb7a073ec>]"
"2009-06-21 05:14:33,964 - root - MainThread - INFO - try_originate : DAHDI/4/123456789 : 1000 : a2billing-cid-callback"
"2009-06-21 05:14:34,007 - root - MainThread - INFO - CallBack Status : Error"
"2009-06-21 05:14:34,024 - root - MainThread - INFO - [2009/06/21 05:14:34] Placed 1 calls"


Also I can check the callback in the A2billing GUI and find the Following (Among other things):

VARIABLE: IDCONF=3|CALLED=123456789|MODE=CID|CBID=88286-kgujnwy|LEG=8121555977|RI=0.05|IB=60|BB=30|CC=0|DC=0|SC_A=0.00000|TC_A=0|C_A=0|BB_A=0|SC_B=0.00000|TC_B=0|C_B=0|BB_B=0|SC_C=0|TC_C=0|C_C=0|BB_C=0

I don't know where to go further to troubleshoot or what other log files I should check to try to fix the problem.

I want to test callback on internal extensions. I guess it works the same as from external lines.
If I get it to work on the internal extensions It should be working fine from external.
What important stuff I am missing?

Any pointers?

Thanks for your help.


Top
 Profile  
 
 Post subject: Re: CallBack help is needed
PostPosted: Sun Jun 21, 2009 12:34 pm 
Offline

Joined: Tue Jun 09, 2009 2:57 am
Posts: 7
I guess I followed a2billing installation documentation and setting the following in asterisk manager.conf
was not enough to make the callback daemon send the call to asterisk, so I had to change it to make it work from:

read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user

to:

read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write = system,call,agent,user,config,command,reporting,originate



Also the callback daemon didn't log asterisk manager's message "permission denied". That would have made the problem much easier to spot.


Top
 Profile  
 
 Post subject: Re: CallBack help is needed
PostPosted: Wed Jul 15, 2009 2:54 pm 
Offline

Joined: Wed Jul 15, 2009 7:22 am
Posts: 4
hi funnyStuff

i have similar problems

in fact my problem is setting up the a2billing trunk using a dahdi trunk instead of a sip Provider. after reading your post i think you have a how to to do that. kindly point me to the link of you howto.
thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Auto Dialer Software


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