Yuan LIU wrote:
From:  /"Eric \"ManxPower\" Wieling" <[EMAIL PROTECTED]>/
 >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.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to