[SR-Users] check_from and check_to: case sensitive?

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 1 19:40:20 CEST 2010



Hello,

On 6/1/10 7:03 PM, Iñaki Baz Castillo wrote:
> 2010/6/1 Iñaki Baz Castillo<ibc at aliax.net>:
>
>    
>>> btw: how is "if ($au!=$tU)" compared?
>>>        
> All the comparisons in kamailio are case insensitive. The only way
> would be using avopos to perform a case sensitive comparison.
>    
the latest versions have dedicateds fucntion for str comparisons:
http://kamailio.org/docs/modules/stable/modules_k/textops.html#id2748954

You can use them to compare $au and $fU/$tU.

On the other hand, if RFC says so, check_to/check_from must be fixed as 
well.

Cheers,
Daniel

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/




More information about the sr-users mailing list