Asterisk cmd SetAccount

Note: This function is deprecated. It has been replaced by Set(CDR(accountcode)=[account]) in latest SVN.

Synopsis:

Sets account code

Description:

SetAccount([account])

Set the channel account code for billing purposes.

Return codes

Always returns 0.

The ACCOUNTCODE variable

The accountcode is available as ${ACCOUNTCODE} from within the dialplan. Therefore you can use for example

GotoIf($[${ACCOUNTCODE} = 1234]?4:6)

for further processing.

See also




Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Note: This function is deprecated. It has been replaced by Set(CDR(accountcode)=[account]) in latest SVN.

Synopsis:

Sets account code

Description:

SetAccount([account])

Set the channel account code for billing purposes.

Return codes

Always returns 0.

The ACCOUNTCODE variable

The accountcode is available as ${ACCOUNTCODE} from within the dialplan. Therefore you can use for example

GotoIf($[${ACCOUNTCODE} = 1234]?4:6)

for further processing.

See also




Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Created by: oej, Last modification: Fri 12 of Oct, 2007 (06:52 UTC) by chandave
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+