Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 11:18 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Local Channel not billed
PostPosted: Sun Oct 07, 2012 10:06 am 
Offline

Joined: Sat Jun 30, 2007 8:29 pm
Posts: 32
Hi,

My system is:
TrixBox v2.6.2.3
Asterisk v1.4
A2Billing v1.9.4
A2B DB v1.7

I am trying to use TrixBox CallBack, the problem is A2Billing not billing leg A (the leg that calling back to the caller).
The TrixBox script set the lag A to Local channel and send it to a2b DeadAGI.
A2Billing showed both CDR's, Legs A and B both are with ANSWER status but on Leg A the duration is 00:00 and not charging the account.

Following are the logs and context:

[from-callback]
exten => _0.,1,Answer
exten => _0.,2,Wait(2)
exten => _0.,3,Set(CALLERID(dnid)=${EXTEN})
exten => _0.,4,Set(CALLERID(num)=${EXTEN})
exten => _0.,5,DeadAGI(a2billing.php|1)
exten => _0.,6,Wait(2)
exten => _0.,7,Hangup

Oct 7 11:08:42] -- Executing [0730000000@from-pstn:1] Goto("SIP/82.111.11.11-b785fe28", "callback|1|1") in new stack
[Oct 7 11:08:42] -- Goto (callback,1,1)
[Oct 7 11:08:42] -- Executing [1@callback:1] Set("SIP/82.111.11.11-b785fe28", "CALL=0540000000") in new stack
[Oct 7 11:08:42] -- Executing [1@callback:2] Set("SIP/82.111.11.11-b785fe28", "DESTINATION=opendisa.5555578.1") in new stack
[Oct 7 11:08:42] -- Executing [1@callback:3] Set("SIP/82.111.11.11-b785fe28", "SLEEP=7") in new stack
[Oct 7 11:08:42] -- Executing [1@callback:4] System("SIP/82.111.11.11-b785fe28", "/var/lib/asterisk/bin/callback 0540000000 opendisa.5555578.1 7 &") in new stack
[Oct 7 11:08:42] -- Executing [1@callback:5] Hangup("SIP/82.111.11.11-b785fe28", "") in new stack
[Oct 7 11:08:42] == Spawn extension (callback, 1, 5) exited non-zero on 'SIP/82.111.11.11-b785fe28'
[Oct 7 11:08:49] == Parsing '/etc/asterisk/manager.conf': [Oct 7 11:08:49] Found
[Oct 7 11:08:49] == Parsing '/etc/asterisk/manager_additional.conf': [Oct 7 11:08:49] Found
[Oct 7 11:08:49] == Parsing '/etc/asterisk/manager_custom.conf': [Oct 7 11:08:49] Found
[Oct 7 11:08:49] == Manager 'admin' logged on from 127.0.0.1
[Oct 7 11:08:49] -- Executing [0540000000@from-callback:1] Answer("Local/0540000000@from-callback-737b,2", "") in new stack
[Oct 7 11:08:49] > Channel Local/0540000000@from-callback-737b,1 was answered.
[Oct 7 11:08:49] -- Executing [0540000000@from-callback:2] Wait("Local/0540000000@from-callback-737b,2", "2") in new stack
[Oct 7 11:08:49] -- Executing [5555578@opendisa:1] Answer("Local/0540000000@from-callback-737b,1", "") in new stack
[Oct 7 11:08:49] -- Executing [5555578@opendisa:2] Set("Local/0540000000@from-callback-737b,1", "TIMEOUT(response)=10") in new stack
[Oct 7 11:08:49] -- Response timeout set to 10
[Oct 7 11:08:49] -- Executing [5555578@opendisa:3] Set("Local/0540000000@from-callback-737b,1", "__KEEPCID=TRUE") in new stack
[Oct 7 11:08:49] -- Executing [5555578@opendisa:4] DISA("Local/0540000000@from-callback-737b,1", "no-password|from-internal") in new stack
[Oct 7 11:08:49] == Manager 'admin' logged off from 127.0.0.1
[Oct 7 11:08:51] -- Executing [0540000000@from-callback:3] Set("Local/0540000000@from-callback-737b,2", "CALLERID(dnid)=0540000000") in new stack
[Oct 7 11:08:51] -- Executing [0540000000@from-callback:4] Set("Local/0540000000@from-callback-737b,2", "CALLERID(num)=0540000000") in new stack
[Oct 7 11:08:51] -- Executing [0540000000@from-callback:5] DeadAGI("Local/0540000000@from-callback-737b,2", "a2billing.php|1") in new stack
[Oct 7 11:08:51] -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Oct 7 11:08:51] -- AGI Script Executing Application: (DIAL) Options: (SIP/82.166.66.43/0540000000|60|HRriL(5400000:100000:60000))
[Oct 7 11:08:51] -- Limit Data for this call:
[Oct 7 11:08:51] > timelimit = 5400000
[Oct 7 11:08:51] > play_warning = 100000
[Oct 7 11:08:51] > play_to_caller = yes
[Oct 7 11:08:51] > play_to_callee = no
[Oct 7 11:08:51] > warning_freq = 60000
[Oct 7 11:08:51] > start_sound = (null)
[Oct 7 11:08:51] > warning_sound = timeleft
[Oct 7 11:08:51] > end_sound = (null)
[Oct 7 11:08:51] -- Called 82.111.11.11/0540000000
[Oct 7 11:08:52] -- SIP/82.111.11.11-0930e848 is making progress passing it to Local/0540000000@from-callback-737b,2
[Oct 7 11:08:55] -- SIP/82.111.11.11-0930e848 is making progress passing it to Local/0540000000@from-callback-737b,2
[Oct 7 11:08:55] -- SIP/82.111.11.11-0930e848 is ringing
[Oct 7 11:08:55] -- SIP/82.111.11.11-0930e848 is making progress passing it to Local/0540000000@from-callback-737b,2
[Oct 7 11:08:56] -- SIP/82.111.11.11-0930e848 answered Local/0540000000@from-callback-737b,2
[Oct 7 11:08:56] -- AGI Script a2billing.php completed, returning 0

We are working now to upgrading A2Billing DB to v1.9.4 do you think it will solved this problem?

Best Regards


Top
 Profile  
 
 Post subject: Re: Local Channel not billed
PostPosted: Wed Oct 10, 2012 11:50 am 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
My guess would be that FreePBX is doing the callback (which you are seeing) and then somehow transferring the call to a new channel to connect it to DISA. A2Billing doesn't know anything about this part of the call that's been trasferred so doesn't see it. You can see from the log you posted the callback leg channel terminates soon after connecting.

It's similar to a method used for fraud described here - http://sysadminman.net/blog/2011/a2bill ... fraud-2823

As to how to fix it I've no ideas unfortunately.


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 18 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