[asterisk-users] [1.4] Forcing Asterisk/Zaptel to wait untilcalleeanswers?

Tilghman Lesher tilghman at meg.abyt.es
Mon Mar 7 11:46:52 CST 2011


On Monday 07 March 2011 08:20:26 Danny Nicholas wrote:
> On Monday 07 March 2011 08:14:27 Gilles wrote:
> > 1. Why use ">" instead of "=" to compare the extension with "SIP"?
> > 
> > exten => s,n,Gotoif($["${EXTEN}" > "SIP"]?start)
>
> #1 is "Lazy notation" to say ${EXTEN} starts with SIP (as opposed to
> Local or DAHDI)

Then you probably want ${CHANNEL}, not ${EXTEN}.  ${EXTEN} is always
going to be "s", which is always greater than "SIP".

-- 
Tilghman



More information about the asterisk-users mailing list