Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 5:45 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Handling DID's that begin with "+"
PostPosted: Sat Sep 25, 2010 12:33 am 
Offline

Joined: Tue Sep 14, 2010 4:51 am
Posts: 16
We just added a new carrier (bandwidth.com) to our A2Billing server. When bandwidth passes us a call they prepend a "+" in front of the DID. How do I configure A2Billing to either ignore or remove the "+" before attempting to process the DID? Thanks in advance for your help.


Top
 Profile  
 
 Post subject: Re: Handling DID's that begin with "+"
PostPosted: Sat Sep 25, 2010 12:37 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Strip it in the asterisk dial plan before passing the call into A2Billing.

Joe


Top
 Profile  
 
 Post subject: Re: Handling DID's that begin with "+"
PostPosted: Sat Sep 25, 2010 12:56 am 
Offline

Joined: Tue Sep 14, 2010 4:51 am
Posts: 16
Thanks for the quick response. Can you provide an example as to which file to edit and how?


Top
 Profile  
 
 Post subject: Re: Handling DID's that begin with "+"
PostPosted: Sat Sep 25, 2010 2:53 am 
Offline
User avatar

Joined: Tue May 13, 2008 4:37 am
Posts: 22
Location: Coeur d Alene, Id
Found through a quick search of Google. I guess it depends on whether you use FreePBX or hand edit all your configs without the use of a GUI, like FreePBX.

http://forum.bandwidth.com/showthread.php?tid=139


Top
 Profile  
 
 Post subject: Re: Handling DID's that begin with "+"
PostPosted: Sat Sep 25, 2010 8:47 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
In your case, you would be editing extensions_a2billing.conf, and working with the a2billing-did context.

here is an (untested) sample that could be modified for your use

Code:
;Remove leading + when number called begins with a + sign
[a2billing-did]

exten => _+X.,1,Goto(call-a2billing-did,${EXTEN:1},1)
exten => _X.,1,Goto(call-a2billing-did,${EXTEN},1)

;Call A2Billing.php


[call-a2billing-did]

exten => _X.,1,DeadAGI(a2billing.php,did,1)
exten => _X.,n,Hangup()


This will remove a + when there is one, and do nothing to the dialstring when no plus is present.

Joe


Top
 Profile  
 
 Post subject: Re: Handling DID's that begin with "+"
PostPosted: Mon Sep 27, 2010 4:03 am 
Offline

Joined: Tue Sep 14, 2010 4:51 am
Posts: 16
Thanks so much. I'll try that right now.


Top
 Profile  
 
 Post subject: Re: Handling DID's that begin with "+"
PostPosted: Fri Jan 21, 2011 12:36 am 
Offline

Joined: Fri Jan 21, 2011 12:01 am
Posts: 1
hey all

recently added a toll free number to freepbx/a2b (comes in without a '1'..(SIP 605 “Declined.” ) .. any thoughts on how to fix this
thnx a bunch


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


All times are UTC


Who is online

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