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.
|