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

Klaus Darilion klaus.mailinglists at pernau.at
Tue Jun 1 19:40:53 CEST 2010



Am 01.06.2010 19:02, schrieb Iñaki Baz Castillo:
> 2010/6/1 Klaus Darilion<klaus.mailinglists at pernau.at>:
>>> Shouldn't it use strncmp()?
>>
>> Probably it should.
>>
>> regards
>> Klaus
>>
>> btw: how is "if ($au!=$tU)" compared?
>
> The problem is that more SIP username related stuff is also case
> insensitive in Kamailio, i.e. the database columns. For example a user
> "TEST" with a location entry with username "test" woudl be retrieved
> because the location.username column is case insensitive.

IIRC that depends on the DB backend: MySQL is by default case 
insensitive, Postgresql is by default case sensitive.

regards
Klaus



More information about the sr-users mailing list