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