Name

KEYPADHASH — Converts letters into numbers

Synopsis

KEYPADHASH(string)

Hashes the letters in string into the equivalent keypad numbers.

; Calculate the hashes of the authors' last names.  So, the
; corresponding values would be 623736, 76484, and 82663443536.
exten => 123,1,Set(lastname1=${KEYPADHASH(Madsen)})
exten => 123,n,Set(lastname2=${KEYPADHASH(Smith)})
exten => 123,n,Set(lastname3=${KEYPADHASH(VanMeggelen)})

See Also

Directory()

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.