Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 9:14 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: DID prefix
PostPosted: Sat May 28, 2016 7:47 pm 
Offline

Joined: Tue Mar 18, 2014 11:29 pm
Posts: 9
Dear Community

I got my DID numbers from a provider so they gave me the DID number full International format like 35316852973 like this

So in my A2Billing i have to add like this way 35316852973. I try to add like local format 016852973 but it won't work.

is it possible i can do something like remove prefix 353 and add prefix 0 so i can add just local format style in the a2billing add DID field.
The reason i want to remove the prefix when i want to add the DID in A2billing because my service is only for Ireland.

Hope someone will help me

Regards
Mahim


Top
 Profile  
 
 Post subject: Re: DID prefix
PostPosted: Tue Jul 05, 2016 8:17 am 
Offline

Joined: Mon Jul 04, 2016 9:34 am
Posts: 2
Hi Mahim,

Can you please post your inbound context from extensions.conf ?

You should be able to adjust the number before passing it to the a2billing AGI script eg:

Code:
[did-eire-inbound]
exten => _353X.,1,NoOp(Inbound call from ${CALLERID(num)} to ${EXTEN})
same => n,GoTo(did-inbound,0${EXTEN:3},1)
same => n,Hangup()

[did-inbound]
exten => _X.,1,NoOp(Inbound call from ${CALLERID(num)} to ${EXTEN})
same => _X.,n,Agi(/usr/share/asterisk/agi-bin/a2billing.php,1,did)
same => h,1,Hangup()


Ireland DID's should match the _353X dialplan before the _X. catch all, the second line will then pass these calls through to the standard did-inbound context prefixed with a 0 and with the first 3 digits of the extension removed (Reference The second argument in the Goto)

http://www.voip-info.org/wiki/view/Asterisk+cmd+Goto


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group