[Kamailio-Devel] new comparison functions in config

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 19 21:55:42 CET 2009


Hello,

following discussions on the mailing lists and tracker related to string 
and URI/AoR comparison, textops and siputils introduce new dedicated 
functions:
- cmp_str(str1, str2) - compare two strings case sensitive
- cmp_istr(str1, str2) - compare two strings case insensitive
- cmp_uri(str1, str2) - compare two URIs as per RFC3261(up to parameters 
comparison rules)
- cmp_aor(str1, str2) - compare two address of records

http://kamailio.org/docs/modules/devel/textops.html
http://kamailio.org/docs/modules/devel/siputils.html

Just to refresh, the string comparison using config operators (==, <=, 
...) are case insensitive (== is equivalent to cmp_istr(...)).

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list