login | register
Wed 03 of Dec, 2008 [23:47 UTC]

voip-info.org

Discuss [2] History

Asterisk func filter

Created by: murf,Last modification on Sat 14 of Jan, 2006 [06:06 UTC]

Synopsis:

 Filter the string to include only the allowed characters

Description:

 FILTER(<allowed-chars>,<string>)
 


Notes

  • *CLI> show function FILTER

Return value

Returns the resulting string.

Example

exten => s,1,Set(foo=${FILTER(0123456789,${cdrnum})})


See also



Comments

Comments Filter
222

333

by moy, Tuesday 03 of April, 2007 [04:43:31 UTC]
I just uploaded the backport to 1.2 in asterisk-backports.org, it was as easy as copy-paste, enjoy!
222

333Possible to get a patch for the 1.2 branch?

by rushowr, Monday 26 of June, 2006 [12:02:40 UTC]
Hey all, was wondering if maybe someone's already done the legwork on putting together a patch to implement the filter function in 1.2?