#381: New syntax of IF has a problem with quotation marks (Fixed)
May 02 2008 * 10:57
| Reported by: | Release: | ||
|---|---|---|---|
| Priority: | Normal | Milestone: | 2.0 |
| Component: | core | Assigned to: | mjagdis |
New syntax of IF has a problem with quotation mark
Hello,
I used in revision 4571 the following line:
exten => s,n,Set(CALLERID(all)=${IF($["${CALLERID(num)}"=""]?${ARG2}:${CALLERID(all)})})
Now I change to new syntax, because IF is DEPRECATED:
exten => s,n,Set(CALLERID(all)=$[$["${CALLERID(num)}"=""]?"${ARG2}"::"${CALLERID(all)}"])
Now I have problems, because there are quotation marks in callerid.
${CALLERID(all)}="Testphone" <1010>
Kind Regards
Fabian
![Home ticket #381 [home]](/images/logo.png?1180520111)

RSS Feeds
The whole dialplan evaluation code has been rewritten in trunk so that quotes (among other things) behave as all right-minded people expect.