Name

FILTER — Strips string of illegal characters

Synopsis

FILTER(allowed-chars|string)

Filters the string to include only the characters shown in allowed-chars:

; Ensure that the Caller*ID number contains only digits
exten => Set(CALLERID(num)=${FILTER(0123456789,${CALLERID(num)})})

This function may only be read, not set.

See Also

QUOTE()

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.