I am not sure about the correct syntax of an “or” condition in a GotoIF statement, in particular the use of square brackets.

Which of below four possibilities is correct?

exten => s,1,GotoIf($["${CALLERID(num)}" = “1000” | “${CALLERID(num)}” = “2000”]?2:3)

exten => s,1,GotoIf($[$["${CALLERID(num)}" = “1000”] | $["${CALLERID(num)}" = “2000”]]?2:3)

exten => s,1,GotoIf($["${CALLERID(num)}" = “1000”] | $["${CALLERID(num)}" = “2000”]?2:3)

exten => s,1,GotoIf($["${CALLERID(num)}" = “1000” | $["${CALLERID(num)}" = “2000”]?2:3)