-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Bob Beers
Sent: Wednesday, November 03, 2010 3:47 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Gotoif changed in 1.8?

On Wed, Nov 3, 2010 at 4:32 PM, Danny Nicholas <[email protected]> wrote:
> TAM, Bob! Guess I've got to go through now and "unquote" my literals...

Hi Danny,

 Glad that helped. But on second thought, maybe the better fix is to
 remove the double quotes in the Gotoif()'s, like this:

exten => s,n,Gotoif($[${TEST_RETURN} = OK]?tb-account-balance,s,ok)
exten => s,n,Gotoif($[${TEST_RETURN} = NONE]?tbstart,s,play-main)
exten => s,n,Gotoif($[${TEST_RETURN} = INVACCT]?tbstart,s,readacct)

I have noticed that the double-quotes in comparisons are literally included
 in the comparison, not 'escaped out', if that is the right expression.

Great suggestion, Bob.  The only exception I have found so far is that
"Boolean checks" (where right side of A=B is TRUE or FALSE) apparently have
to remain quoted to work correctly. 


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