Answer the question
In order to leave comments, you need to log in
How to correctly compose a logical expression in an asterisk?
Good afternoon
, there is such a macro:
exten => s,n,GotoIf($[$["${ARG1}" != "exten"]|$["${ARG1}" != "out"]]?return)
exten => s,n,...................
exten => s,n,...................
exten => s,n,...................
exten => s,n(return),Return()
exten => s,n,GotoIf($["${ARG1}" != "exten"]?return)
exten => s,n,...................
exten => s,n,...................
exten => s,n,...................
exten => s,n(return),Return()
Answer the question
In order to leave comments, you need to log in
As the official manual says, it is correct to do this:
But, if you can’t do this, then you can always do just two conditions:
exten => s,n,GotoIf($["${ARG1}" != "exten"]?return)
exten => s,n,GotoIf($["${ARG1}" != "out"]?return)
exten => s,n,...................
exten => s,n,...................
exten => s,n,...................
exten => s,n(return),Return()
exten => s,n,GotoIf($["${ARG1}" != "exten" | "${ARG1}" != "out"]?return)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question