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

2010-06-03 Thread Iñaki Baz Castillo
2010/6/2 Iñaki Baz Castillo i...@aliax.net: - check_from / check_to should b fixed to use case sensitive comparison. A workaround for this would be using: if ! avp_check($tU,eq/$au) instead of: if ! check_to() -- Iñaki Baz Castillo i...@aliax.net

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

2010-06-03 Thread Daniel-Constantin Mierla
On 6/3/10 12:52 PM, Iñaki Baz Castillo wrote: 2010/6/2 Iñaki Baz Castilloi...@aliax.net: - check_from / check_to should b fixed to use case sensitive comparison. A workaround for this would be using: if ! avp_check($tU,eq/$au) instead of: if ! check_to() note that

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

2010-06-02 Thread Henning Westerholt
On Wednesday 02 June 2010, Iñaki Baz Castillo wrote: 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

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

2010-06-02 Thread Iñaki Baz Castillo
2010/6/2 Henning Westerholt henning.westerh...@1und1.de: Yes, this is correct. Then: - check_from / check_to should b fixed to use case sensitive comparison. Hi Iñaki, this should be properly documented, as it has the potential of breaking some configurations. - MySQL database schema

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

2010-06-01 Thread Iñaki Baz Castillo
Hi, when using check_from or check_to, is the username part of the uri checked in mode case sensitive or insensitive? It should be case sensitive as per SIP grammar. But in the code (uri_db/checks.c) I see the opposite: /* URI table not used, simply compare digest username and

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

2010-06-01 Thread Iñaki Baz Castillo
2010/6/1 Iñaki Baz Castillo i...@aliax.net: Hi, when using check_from or check_to, is the username part of the uri checked in mode case sensitive or insensitive? It should be case sensitive as per SIP grammar. But in the code (uri_db/checks.c) I see the opposite:               /* URI table

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

2010-06-01 Thread Iñaki Baz Castillo
2010/6/1 Iñaki Baz Castillo i...@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. -- Iñaki Baz Castillo i...@aliax.net

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

2010-06-01 Thread Klaus Darilion
Am 01.06.2010 19:02, schrieb Iñaki Baz Castillo: 2010/6/1 Klaus Darilionklaus.mailingli...@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