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.) Yuan Liu
Make it Goto(s-${DIALSTATUS}) cheerz - Ben. 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.) > > Yuan Liu > > > _______________________________________________ > --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 >-- The problem with the Future is that it keeps turning into the Present.
On Tue, Feb 06, 2007 at 11:58:01PM -0800, 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.)No. the text 's-' is an arbitrary text in this case. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
On Tue, 6 Feb 2007, 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.)s- is just something tagged onto the label. An example of what I use: exten => s,n,Dial(${ARG1},${timeOut},ron) exten => s,n,Noop(Initial dial failed: ${DIALSTATUS}) exten => s,n,Goto(${DIALSTATUS}) exten => s,n(ANSWER),Noop(Answered) exten => s,n,Hangup() exten => s,n(NOANSWER),Noop(Starting NOANSWER processing) And so on... the extension 's' in those lines above is the extension inside a macro. Gordon
Eric "ManxPower" Wieling
2007-Feb-07 08:12 UTC
[asterisk-users] s-${DIALSTATUS} extensions
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)