Summary:ASTERISK-06278: [patch] KEYPADHASH
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2006-02-07 21:57:04.000-0600Date Closed:2008-01-15 16:47:28.000-0600
Versions:Frequency of
Environment:Attachments:( 0) 20060207__keypadhash.diff.txt
Description:Builds an equivalent string to an arbitrary string, by translating respective letters into the representative number on the keypad.

Useful for comparing DTMF input to possible entries in a database.
Comments:By: Jason Parker (jparker) 2006-02-09 18:48:17.000-0600

Are * and # not needed here?

By: Tilghman Lesher (tilghman) 2006-02-10 22:26:27.000-0600

They could possibly be included, but typically they aren't used when spelling out a name.  # is usually used to end the entry.

By: Tilghman Lesher (tilghman) 2006-02-10 22:31:04.000-0600

Basically if we say that only letters and numbers are supported, then someone may use # and * for other things, like end entry and help (or go back), without having to worry about whether the function will hash out a string for comparison that contains one of those two special characters.

By: Kevin P. Fleming (kpfleming) 2006-02-14 17:59:05.000-0600

Committed to trunk, thanks!

By: Digium Subversion (svnbot) 2008-01-15 16:47:28.000-0600

Repository: asterisk
Revision: 10113

U   trunk/funcs/func_strings.c

r10113 | kpfleming | 2008-01-15 16:47:27 -0600 (Tue, 15 Jan 2008) | 2 lines

add KEYPADHASH dialplan function (issue ASTERISK-6278)