Re: [asterisk-users] s-${DIALSTATUS} extensions

2007-02-07 Thread Benjamin Jacob

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.

___
--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


Re: [asterisk-users] s-${DIALSTATUS} extensions

2007-02-07 Thread Tzafrir Cohen
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#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--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


Re: [asterisk-users] s-${DIALSTATUS} extensions

2007-02-07 Thread Gordon Henderson

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
___
--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


Re: [asterisk-users] s-${DIALSTATUS} extensions

2007-02-07 Thread Eric \ManxPower\ Wieling

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)

___
--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


Re: [asterisk-users] s-${DIALSTATUS} extensions

2007-02-07 Thread Yuan LIU
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 postingwrong code - was Goto(${DIALSTATUS},1). Probablythevery extensiondidn'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.

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


Re: [asterisk-users] s-${DIALSTATUS} extensions

2007-02-07 Thread Eric \ManxPower\ Wieling

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


[asterisk-users] s-${DIALSTATUS} extensions

2007-02-06 Thread Yuan LIU
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