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

Danny Nicholas danny at debsinc.com
Mon Mar 7 11:59:04 CST 2011


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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.




More information about the asterisk-users mailing list