#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

Changelog:

Modified by Jun 05 2010 * 15:54
  • Assigned user: set to mjagdis
  • Status: changed from Open to Fixed
  • Milestone: set to 2.0

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