[asterisk-users] quoting arguments to System command in dialplan

John Novack jnovack at stromberg-carlson.org
Fri Jul 4 13:20:47 CDT 2014


Eric Cooper wrote:
> On Wed, Jul 02, 2014 at 05:00:47PM -0700, John Kiniston wrote:
>> How about using the FILTER function to strip out anything you don't like from
>> the CALLERID variables?
>> Set(CIDNAME=${FILTER(A-Z,${CALLERID(NAME)})})
>> Set(CIDNUM=${FILTER(0-9,${CALLERID(NUM)})})
> Thanks for the suggestion; I'll try it.  I'm still bothered that I
> can't figure out how to reliably quote the characters rather than just
> stripping them out.
>
I have found that this varies from version to version
The parser in 1.4 is quite different than in 1.8 or 11
I ran into this with MSQL commands within the dialplan
Escapes (\) single and double quotes are not uniform from 1.4 through 11.
YMMV

John Novack

-- 

Dog is my Co-pilot




More information about the asterisk-users mailing list