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

Eric Cooper ecc at cmu.edu
Fri Jul 4 12:30:14 CDT 2014


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.

-- 
Eric Cooper             e c c @ c m u . e d u



More information about the asterisk-users mailing list