If you’re dealing with any interface or protocol that presents case-insensitive
strings, you should always normalize those strings you receive (e.g. lowercase
it) before dealing with it.
That's one way to deal with this. Another way is to enumerate all keys using a case insensitive
hash table. This avoids any string comparisons in the rest of the program.
jg
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users