[asterisk-users] s-${DIALSTATUS} extensions
Eric "ManxPower" Wieling
eric at fnords.org
Wed Feb 7 12:52:32 MST 2007
Yuan LIU wrote:
> From: /"Eric \"ManxPower\" Wieling" <eric at fnords.org>/
> >Yuan LIU wrote:
> >>In examples, s-${DIALSTATUS} is used to handle unsuccessful dial
> >>attempts in the s extension. Goto() is used in examples. Is the
> >>prefix "s-" mandatory? Is it related to the original extension "s"?
> >>(Apparently Goto(${DIALSTATUS}) won't work for me.)
> >
> >Goto(${DIALSTATUS}) won't work because with only one parameter Goto
> >will think it is a priority. Try Goto(${DIALSTATUS},1)
>
> Sorry for posting wrong code - was Goto(${DIALSTATUS},1).
> Probably the very extension didn't get ${DIALSTATUS}, as others
> indicated that it only gets set when channel hangs up, in which case
> only extension h can be executed. On the other hand, the Asterisk
> "book" gave the example in extension s - haven't tested extensively
> either way, as this is not yet critical.
DIALSTATUS and HANGUPCAUSE are most useful for situations where the call
was NOT answered and you want to know why.
More information about the asterisk-users
mailing list