Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 10:03 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Use "+" for international code.
PostPosted: Wed Dec 05, 2007 12:19 pm 
Offline

Joined: Sat Jul 14, 2007 11:53 am
Posts: 24
Hi
I have been getting alot of call failures while using Call-back, because the callers start their international number destination number with the "+" sign then country code, etc.
Is there any way of configuring the "+" to be accepted as the international code?

Any suggestions welcome....


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 06, 2007 11:19 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
In v1.3.1 you can use the new 'international_prefixes' setting in a2billing.conf to strip any sequence of characters from the start of the dial string.

In earlier versions you might want to edit the apply_rules() function around line 1,300 in /var/lib/asterisk/agi-bin/libs_a2billing/Class.A2Billing.php and add a section like:
Code:
if (substr($phonenumber,0,1)=="+"){
        $this->myprefix='';
        return substr($phonenumber,1);
}
I think that should strip the + and route the call for you. You might prefer to set myprefix to 00 or 011 if that suits your ratetables better.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 10:16 am 
Offline

Joined: Sat Jul 14, 2007 11:53 am
Posts: 24
Thanks Stavros, but the call still fails. I think I may have to modify the context in extensions.conf as well. This is what I have:

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

As X only accepts 0-9 characters, the + sign would fail here. So I need a wildcard which will accept digits and the + sign. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 12:00 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
exten =>_[0-9+]X.,1,DeadAGI(a2billing.php|1|callback)
untested.


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


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