[Asterisk-Users] How to enter billing codes when dialling
AHBLWEB
AHBLWEB at ahbl.ca
Fri Nov 19 19:15:53 MST 2004
That's good and will get me the account#.
I guess it's too much to ask for the same kind of tone prompts that occur
after dialling the 77 (boop-boop) and then after the 7 digits
(beep-beep-beep) before the user gets the final real dial tone?
Thanks much.
-----Original Message-----
From: Nick Bachmann [mailto:asterisk at not-real.org]
Sent: Friday, November 19, 2004 2:17 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] How to enter billing codes when dialling
AHBLWEB wrote:
> Our current ROLM switch uses two-digit Feature Access Codes (FACs) for
> long-distance calls to force the entering of a set of seven digits
> representing a client and matter number before giving a real dial
> tone. This sequence is passed as part of the CDR record and is used
> to charge the phone call to the correct matter.
>
> Looking through the Asterisk documentation I can see how a fixed
> billing code can be assigned to an extension so that the caller gets
> charged but how can I set up a dialling plan similar to the above
> without having to write a script to parse the matter number out of a
> stanard CDR record?
>
> For example, a call to New York which should be charged to matter#
> 1234567 is dialled as; 77-1234567-1-212-555-1212.
http://www.voip-info.org/tiki-index.php?page=Asterisk+config+extensions.conf
exten => _77XXXXXXX1NXXNXXXXXX, 1, SetAccount(${EXTEN:2:7})
exten => _77XXXXXXX1NXXNXXXXXX, 2,Dial(Zap/g1/${EXTEN:9:11})
With this, the account code will at least be a separate field in your
CDR record... I think that's what you're asking for...
You can add some logic to check for valid account codes and all that.
Have a look at the AstCC and the Authenticate application for some ideas.
Nick
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list