Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 12:47 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: agi-conf Wholesale & Retail
PostPosted: Tue Jul 02, 2013 9:23 am 
Offline

Joined: Fri Jul 06, 2012 1:28 pm
Posts: 12
I have been looking at a way to use A2billing for wholesale and residential.

I thought I could use a prefix in the dialplan so something like this:

Wholesale would dial 1111134666666666
Retail would dial 34666666666

Then my dialplan:

[a2billing]
if(prefix == 11111) exten => _X.,1, DeadAGI(a2billing.php,2)
else exten => _X.,1, DeadAGI(a2billing.php,1)
exten => _X.,n,Wait()
exten => _X.,n,Hangup()

My question is how would I write that, removing the prefix before passing it to a2billing.php?

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: agi-conf Wholesale & Retail
PostPosted: Tue Jul 02, 2013 9:05 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
This is just a guess and not tested ...

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

To remove the prefix in agi-conf2 you could set 11111 as an international refix (international_prefixes) and then set the Call Plan to remove international prefixes.


Top
 Profile  
 
 Post subject: Re: agi-conf Wholesale & Retail
PostPosted: Mon May 18, 2015 9:21 am 
Offline

Joined: Mon May 18, 2015 8:20 am
Posts: 4
f(prefix == 11111) exten => _X.,1, DeadAGI(a2billing.php,2)
else exten => _X.,1, DeadAGI(a2billing.php,1)
exten => _X.,n,Wait()
exten => _X.,n,Hangup()


free klondike!


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


All times are UTC


Who is online

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