Brian J. Murrell
2011-Apr-25 16:36 UTC
[asterisk-users] FILTER function and multiple ranges?
I am trying to use the FILTER() function to strip out "/" from a CID name. I have the following in my extensions.conf where I want to perform the filtering: exten => s,n,Set(NAME=${FILTER(\x20-\x2e\x30-\7d,${DIAL_NAME})}) However, when ${DIAL_NAME} is, say, "J & J DOE" the string resulting from the FILTER() is " & ". It would appear that only the first range is being considered. Do I have the syntax for FILTER() correct? If so, is the result that I am seeing the intended behavior or a bug? Cheers, b. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110425/c63342d4/attachment.pgp>