4 thoughts on - Gotoif changed in 1.8?

  • 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.