[Asterisk-Users] Account Codes with SIP
Matt Darnell
mattdarnell at gmail.com
Wed Apr 6 22:21:55 MST 2005
> > Does anyone know of an * plug in that will prompt a user for
> > an account code when they make a long distance call?
>
> Look at the Authenticate command.
>
Do you know if the entered string gets printed out with CDR records?
Got this from the Wiki
1. accountcode: What account number to use: account?, (string, 20
characters)
2. src: Caller*ID number (string, 80 characters)
3. dst: Destination extension (string, 80 characters)
4. dcontext: Destination context (string, 80 characters)
5. clid: Caller*ID with text (80 characters)
6. channel: Channel used (80 characters)
7. dstchannel: Destination channel if appropriate (80 characters)
8. lastapp: Last application if appropriate (80 characters)
9. lastdata: Last application data (arguments) (80 characters)
10. start: Start of call (date/time)
11. answer: Anwer of call (date/time)
12. end: End of call (date/time)
13. duration: Total time in system, in seconds (integer), from dial to hangup
14. billsec: Total time call is up, in seconds (integer), from
answer to hangup
15. disposition: What happened to the call: ANSWERED, NO ANSWER,
BUSY (on some CDR backends, e.g. ODBC, these may be integers)
16. amaflags: What flags to use: see amaflags: DOCUMENTATION, BILL,
IGNORE etc, specified on a per channel basis like accountcode.
17. user field: A user-defined field, maximum 255 characters
-Matt
More information about the asterisk-users
mailing list