asterisk2billing.org
http://forum.asterisk2billing.org/

A2billing Asterisk Dialplan
http://forum.asterisk2billing.org/viewtopic.php?f=18&t=10806
Page 1 of 1

Author:  Divito [ Sat Apr 26, 2014 6:30 pm ]
Post subject:  A2billing Asterisk Dialplan

Hello everyone,

I am trying to setup billing among the extensions on my system, however, it doen't seem to work(add credit remains after call).
Also, when the attendant asks for a number dial, i am getting an error saying thatthe number is unavailable. any thoughts?

Code:
[Phones]

exten => 120,1,Set(CDR(accountcode)=9980951060)
exten => 120,n,AGI(a2billing.php,2)

include => a2billing
include => exts


[a2billing]
exten => _X.,n,AGI(a2billing.php,1)

exten => 5001,1,Set(CDR(accountcode)=9980951060)
exten => 5001,n,Dial(SIP/SOFT1,15)

exten => 5002,1,Set(CDR(accountcode)=9980951060)
exten => 5002,n,Dial(SIP/SOFT2,15)

[exts]
exten => _X.,1,Set(CDR(DNID)=5555${EXTEN})
exten => _X.,2,Goto(a2billing,5555${EXTEN},1)

Author:  jroper [ Mon Apr 28, 2014 12:19 pm ]
Post subject:  Re: A2billing Asterisk Dialplan

Hi

Calls have to launch a2billing.php in order to be billed.

If you want to allow calling between your customers, then we recommend you use the DID functionality.

Joe

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/