-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tilghman
Lesher
Sent: Monday, March 07, 2011 11:47 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] [1.4] Forcing Asterisk/Zaptel to
waituntilcalleeanswers?

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

I said it was Lazy, and I did this back on 1.4.21 under Zaptel. The ${EXTEN}
was sufficient for my purposes, though looking back I see it is not
"syntactically" correct.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to