[asterisk-users] Gotoif changed in 1.8?

Danny Nicholas danny at debsinc.com
Thu Nov 4 11:36:28 CDT 2010


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




More information about the asterisk-users mailing list