Re: [asterisk-users] if function when the true value has a colon in it?

2019-02-20 Thread Stefan Tichy
On Wed, Feb 20, 2019 at 12:08:14PM -0500, Brian J. Murrell wrote: > exten => > s,n,Set(EXT=${IF($[${SIP}=PJSIP]?${PJSIP_DIAL_CONTACTS(${STRREPLACE(ARG2,PJSIP/,)})}:${ARG2})}) > > But that ${IF expression?tval:fval} doesn't work because tval has a : > in it which the if function is taking as the

[asterisk-users] if function when the true value has a colon in it?

2019-02-20 Thread Brian J. Murrell
Following up on my previously asked question if I rewrite the branching example (not that it negates the more general branching question) I was using as such: exten => s,n,Set(EXT=${IF($[${SIP}=PJSIP]?${PJSIP_DIAL_CONTACTS(${STRREPLACE(ARG2,PJSIP/,)})}:${ARG2})}) exten =>