<html><div style='background-color:'><DIV class=RTE><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">From: <I>"Eric \"ManxPower\" Wieling" <eric@fnords.org></I><BR>>Yuan LIU wrote:<BR>>>In examples, s-${DIALSTATUS} is used to handle unsuccessful dial <BR>>>attempts in the s extension. Goto() is used in examples. Is the <BR>>>prefix "s-" mandatory? Is it related to the original extension "s"? <BR>>>(Apparently Goto(${DIALSTATUS}) won't work for me.)<BR>><BR>>Goto(${DIALSTATUS}) won't work because with only one parameter Goto <BR>>will think it is a priority. Try Goto(${DIALSTATUS},1)<BR></FONT></DIV>
<DIV class=RTE><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">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.</FONT></DIV>
<DIV class=RTE><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif"></FONT> </DIV>
<DIV class=RTE><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">Yuan Liu</DIV></FONT></div></html>