asterisk2billing.org http://forum.asterisk2billing.org/ |
|
agi-conf Wholesale & Retail http://forum.asterisk2billing.org/viewtopic.php?f=33&t=10388 |
Page 1 of 1 |
Author: | traxwriter [ Tue Jul 02, 2013 9:23 am ] |
Post subject: | agi-conf Wholesale & Retail |
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. |
Author: | bucasia [ Tue Jul 02, 2013 9:05 pm ] |
Post subject: | Re: agi-conf Wholesale & Retail |
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. |
Author: | 010hnoor [ Mon May 18, 2015 9:21 am ] |
Post subject: | Re: agi-conf Wholesale & Retail |
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! |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |