Re: [SR-Users] multihomed Kamailio and enable_double_rr

2013-08-21 Thread Steve Davies
On 20 August 2013 18:49, Daniel-Constantin Mierla wrote: > I wanted to add such logic in default config for kamailio as well (not > mangle contact if not first proxy), but forgot about it, I'll do it soon. > There is a new function is_first_hop() in devel version, for older version > the solution

Re: [SR-Users] multihomed Kamailio and enable_double_rr

2013-08-21 Thread Daniel-Constantin Mierla
Hello, On 8/21/13 10:36 AM, Steve Davies wrote: On 20 August 2013 18:49, Daniel-Constantin Mierla > wrote: I wanted to add such logic in default config for kamailio as well (not mangle contact if not first proxy), but forgot about it, I'll do it soon. T

[SR-Users] bad cseq attack

2013-08-21 Thread Juha Heinanen
i have noticed lots of these kind of attacks in my syslog: /var/log/syslog.1:Aug 21 04:23:46 host /usr/sbin/sip-proxy[13490]: ERROR: [parser/parse_cseq.c:95]: parse_cseq(): ERROR: CSeq EoL expected /var/log/syslog.1:Aug 21 04:23:46 host /usr/sbin/sip-proxy[13490]: ERROR: [parser/parse_cseq.c:9

Re: [SR-Users] multihomed Kamailio and enable_double_rr

2013-08-21 Thread Steve Davies
Hi, On 20 August 2013 23:37, Daniel-Constantin Mierla wrote: > I would use also the tags - something like: > - save for invite: > $sht(x=>$ci::$ft) = $sel(contact.uri); > - save for 200ok of invite > $sht(x=>$ci::$tt) = $sel(contact.uri); > > For bye, if uri==myself, then if $sht(x=>$ci::$tt)!=

[SR-Users] Presence: Get number of active_watchers

2013-08-21 Thread Jan Gaida
Hello, I need to obtain the number of subscribed watchers for a given presentity-uri. I can get it with a SQL Query like "select count(*) from kamailio.active_watchers where presentity_uri = 'test@domain';". But I think there should be a way to get it from within the configuration script. Regard

[SR-Users] Is Kamailio's presence modules support pidf-diff+xml format?

2013-08-21 Thread Evgeny Vinnik
Is Kamailio's presence module support pidf-diff+xml (RFC 5262 aka Partial PIDF) format? Did anyone tried to implement parsing of such format? It just I have an issue with an RCS client, which updates presence information in the Partial PIDF format. __

Re: [SR-Users] Presence: Get number of active_watchers

2013-08-21 Thread Charles Chance
Hi Jan, Why not use sqlops to query the database from within your config script? Best regards, Charles On 21 August 2013 13:36, Jan Gaida wrote: > Hello, > > I need to obtain the number of subscribed watchers for a given > presentity-uri. > > I can get it with a SQL Query like "select count

[SR-Users] AVPops clarification

2013-08-21 Thread Daniel W. Graham
I am using avp_db_load to read certain values from usr_preferences table. Since sqlops is more efficient / preferred over avp_db_query, I was wondering if this would also apply to avp_db_load ? -dan ___ SIP Express Router (SER) and Kamailio (OpenSER)

Re: [SR-Users] AVPops clarification

2013-08-21 Thread Alex Balashov
It's not really a question of efficiency, just of which one is better-suited to generic database operations. On 08/21/2013 02:12 PM, Daniel W. Graham wrote: I am using avp_db_load to read certain values from usr_preferences table. Since sqlops is more efficient / preferred over avp_db_query,

Re: [SR-Users] tls.so: mod_register failed on fedora 18 x86_64

2013-08-21 Thread Daniel-Constantin Mierla
Hello, On 8/20/13 4:24 PM, Roberto Fichera wrote: [...] Mmmhhh!!! Looks like this particular version has problem, see: http://bugs.python.org/msg191610 I can confirm that the bug is present in both Fedora 18 & 19. The openssl has a bug which prevent the tls module to work due to allow_custo

Re: [SR-Users] bad cseq attack

2013-08-21 Thread Daniel-Constantin Mierla
On 8/21/13 12:53 PM, Juha Heinanen wrote: i have noticed lots of these kind of attacks in my syslog: /var/log/syslog.1:Aug 21 04:23:46 host /usr/sbin/sip-proxy[13490]: ERROR: [parser/parse_cseq.c:95]: parse_cseq(): ERROR: CSeq EoL expected /var/log/syslog.1:Aug 21 04:23:46 host /usr/sbin/sip-

Re: [SR-Users] bad cseq attack

2013-08-21 Thread Sergey Okhapkin
Actually nothing needs to be done in kamailio core. I's a simple scripting logic. if(!sanity_check("whatever_you wan't_check")) { xlog("L_INFO","Malformed message from $proto:$si:$sp\n$mb\n"); break; } On Thursday 22 August 2013 00:07:56 Daniel-Con

Re: [SR-Users] bad cseq attack

2013-08-21 Thread Daniel-Constantin Mierla
The problem is that in some cases, it doesn't get to execute the config file at all. The core does some basic parsing to detect the type of message (request or reply) and looks for mandatory headers (CSeq is one of them). When its a failure in this process, the config file is not executed, beca

[SR-Users] CARRIERROUTE + LCR

2013-08-21 Thread Lucky Santiago
I've installed Kamailio v4.0.x packages on my Ubuntu 12.04.1 LTS I would like to configure LCR and CARRIERROUTE modules but I don't find sufficient guide to do it properly. Though i am looking to http://kamailio.org/docs/modules/4.0.x/modules/ for the said modules but it's a bit scattered for

Re: [SR-Users] bad cseq attack

2013-08-21 Thread Juha Heinanen
Sergey Okhapkin writes: > Actually nothing needs to be done in kamailio core. I's a simple scripting > logic. > > if(!sanity_check("whatever_you wan't_check")) { > xlog("L_INFO","Malformed message from $proto:$si:$sp\n$mb\n"); > break; > } in this

Re: [SR-Users] bad cseq attack

2013-08-21 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > We can add an event_route for it as well as print the src ip in the log > message for quick fix (this one can be backported easy). thanks for the quick fix. please backport to 4.0. for the next release, event_route would be nice to have so that the error mess

[SR-Users] CARRIERROUTE + LCR

2013-08-21 Thread Juha Heinanen
Lucky Santiago writes: > Can anyone give me resources or guide where I can found : > - required modparam for LCR and CARRIERROUTE module params are described in README. > - SQL examples datas for both modules see lcr-create.sql script usually stored in /usr/share/kamailio dir. > -