search for: prepend_cod

Displaying 1 result from an estimated 1 matches for "prepend_cod".

Did you mean: prepend_code
2006 Oct 26
0
question about IF
...exten => s,n,Set(TRUNK=${IF($[${CALLERIDNUM} = 1234567890]?Zap/g1:SIP/LDPROVIDER)}) ; use PRI instead of SIP That works. The TRUNK variable is set properly. But the SIP LD provider requires a prepended code, so I say if the TRUNK var is the SIP/LDPROVIDER set another variable called PREPEND_CODE to the passed argument, otherwise use nothing if it's the Zap channel since I will just be sending the digits as is. exten => s,n,Set(PREPEND_CODE=${IF($[ ${TRUNK} = SIP/LDPROVIDER]?${ARG2}:)}) However this always sets the PREPEND_CODE variable even if TRUNK is set to Zap/g1. If I...