Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 1:12 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Trying to get a2billing in DID mode but having problems
PostPosted: Fri Apr 09, 2010 3:44 pm 
Offline

Joined: Wed Mar 24, 2010 6:27 pm
Posts: 149
Hi,
I am trying to get a2billing to be able to route DIDs that are not for calling cards
In freepbx I added a custom destination: a2billing-did,s,1

Then in extensions_a2billing.conf I have this:

Code:
[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 => s,1,answer
exten => s,n,deadAGI(a2billing.php,2)
exten => s,n,Hangup

[a2billing-sip]
exten => _.,1,deadAGI(a2billing.php,3)
exten => _.,n,Hangup

[a2billing-did]
exten => _X.,1,DeadAGI(a2billing.php|2|did)
exten => _X.,n,Hangup


This is what happens with inbound calls:

Code:
OM_DID=6465555555") in new stack
    -- Executing [6465555555@from-trunk:2] ExecIf("IAX2/vitel-inbound-12672", "0 ?Set(CALLERID(name)=7185555555)") in new stack
    -- Executing [6465555555@from-trunk:3] Set("IAX2/vitel-inbound-12672", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [6465555555@from-trunk:4] Set("IAX2/vitel-inbound-12672", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [6465555555@from-trunk:5] Goto("IAX2/vitel-inbound-12672", "a2billing-did,s,1") in new stack
    -- Goto (a2billing-did,s,1)
    -- Hungup 'IAX2/vitel-inbound-12672'

If anyone can get me going I'd appreciate it


Top
 Profile  
 
 Post subject: Re: Trying to get a2billing in DID mode but having problems
PostPosted: Fri Apr 09, 2010 7:41 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
By using the s extension, how will A2Billing know what DID is being called?

how about sending the call to a2billing-did,${exten},1 in FreePBX then leaving your dialplan as is, as it is pretty pointless sending a call to the "s" extension when you have not got a s extension in your dialplan.

_x. does not match s

Joe


Top
 Profile  
 
 Post subject: Re: Trying to get a2billing in DID mode but having problems
PostPosted: Fri Apr 09, 2010 10:15 pm 
Offline

Joined: Wed Mar 24, 2010 6:27 pm
Posts: 149
Thanks, that definitely did the trick.


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 35 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group