SV: [Asterisk-Users] Error in config sample for GoToIf?
Brian Capouch
brianc at palaver.net
Tue Jun 27 00:34:59 MST 2006
Jon Schøpzinsky wrote:
> Hello
>
> As far as ive understood, you can just write
>
> Exten => s,n,GotoIf([${AVAILSTATUS} = 1]?autoanswer:fail)
>
> ${AVAILSTATUS} would return 1, and "${AVAILSTATUS}" would return "1"
>
Through more testing, the double quotes I used seemed superfluous; if
you use them in both places, or in neither, it works the same.
But your example above lacks the "$" ahead of the left brace. It is
*that* which I now believe is in error in the example.
Plus there seems to be confusion, on the Wiki at least, as to what
values mean what for ${AVAILSTATUS}
Thx.
B.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the asterisk-users
mailing list