Asterisk func keypadhash

Synopsis:

Hash the letters in the string into the equivalent keypad numbers.

Description:

KEYPADHASH(characterstring)


Notes

  • *CLI> show function KEYPADHASH

Return value

Returns the string input, with the characters a, b, or c mapped to "2"; the characters d, e, or f mapped to "3"; etc.

Example

exten => s,1,Set(foo=${KEYPADHASH(MURPHY)})

should set foo to the value "687749".


See also


Synopsis:

Hash the letters in the string into the equivalent keypad numbers.

Description:

KEYPADHASH(characterstring)


Notes

  • *CLI> show function KEYPADHASH

Return value

Returns the string input, with the characters a, b, or c mapped to "2"; the characters d, e, or f mapped to "3"; etc.

Example

exten => s,1,Set(foo=${KEYPADHASH(MURPHY)})

should set foo to the value "687749".


See also


Created by: murf, Last modification: Fri 05 of Nov, 2010 (09:46 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+