Re: [SR-Users] rtpproxy 2.0

2015-05-22 Thread Øyvind Kolbu
no longer running continuously at 100% CPU. -- Øyvind Kolbu ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2015-01-28 Thread Øyvind Kolbu
probably slow ... Daniel On 09/01/15 16:02, Øyvind Kolbu wrote: On 07.01.2015 14:27, Daniel-Constantin Mierla wrote: So it complains that the ssl lib is not initialized completely. Can you try the following: - edit modules/tls/tls_init.c and add at the beginning of function 'int init_tls_h

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2015-01-09 Thread Øyvind Kolbu
On 07.01.2015 14:27, Daniel-Constantin Mierla wrote: So it complains that the ssl lib is not initialized completely. Can you try the following: - edit modules/tls/tls_init.c and add at the beginning of function 'int init_tls_h(void)': if(tls_mod_initialized > 0) return 0; - in modules/db_pos

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2015-01-07 Thread Øyvind Kolbu
On 07.01.2015 11:49, Daniel-Constantin Mierla wrote: Searching on google about libpq and tls I found the notes about SSL Initialization at: - http://www.postgresql.org/docs/9.3/static/libpq-ssl.html Scroll down the page. Can you try adding: PQinitSSL(0); inside function: struct pg_con* db

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2015-01-06 Thread Øyvind Kolbu
On 19.12.2014 19:17, James Cloos wrote: FATAL: no pg_hba.conf entry for host "129.240.1.1", user "foo_test_user", database " foo_test", SSL off there is an extra space, " foo_test" vs "foo_test". That might turn out to be the entire issue. Sorry for the late reply, been gone on vacation. T

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2014-12-16 Thread Øyvind Kolbu
On 16.12.2014 13:03, Daniel-Constantin Mierla wrote: Then, to clarify properly, have you ever got it started with higher debug level and memory operations printed to syslog? The first time I tried it managed, but not the five last times. Even with children=1. Øyvind __

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2014-12-16 Thread Øyvind Kolbu
On 16.12.2014 12:23, Daniel-Constantin Mierla wrote: Those parameters are not about number of children, but how fast to do some operations. I had troubles with selinux, because it has some obscure limits on how fast new connections can be opened. TLS is using quite some memory, I wonder if sel

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2014-12-16 Thread Øyvind Kolbu
On 16.12.2014 11:51, Daniel-Constantin Mierla wrote: TLS module initializes libssl when it is loaded. db_postgress creates connections at mod init, so it is later and inside same process (no fork at that moment). Based on the new details, I understand that some connections succeed, some no

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2014-12-16 Thread Øyvind Kolbu
On 16.12.2014 10:44, Daniel-Constantin Mierla wrote: The question would be more specific to the error message printed from postgres client library: FATAL: no pg_hba.conf entry for host "129.240.1.1", user "foo_test_user", database " foo_test", SSL off The issue here is why suddenly SSL when

Re: [SR-Users] Can't start Kamailio with both db_postgres and tls

2014-12-16 Thread Øyvind Kolbu
ule is initializing the libssl instance, because it needs to set the shared memory manager for handling tls connections. It was working fine so far. Can you get more from the above log message related to postgres? TLS module initializes ok. Cheers, Daniel On 15/12/14 14:03, Øyvind Kolbu wrote: Hi,

[SR-Users] Can't start Kamailio with both db_postgres and tls

2014-12-15 Thread Øyvind Kolbu
Hi, I'm trying to add tls to our services, but seem hindered by "something". When enabling the tls module it seems to turn off the SSL setting in postgresql, and since we require SSL on our postgres servers Kamailio can't connect and it fails to start. If I disable WITH_TLS it will start. If

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-30 Thread Øyvind Kolbu
On 30.09.2013 11:20, Daniel-Constantin Mierla wrote: Hello, I applied the patch, thanks. For the future, please use tabs to indent the code, it is the format we use. Thank you for committing it! I'll use tabs next time. Is there any issue left from what you found? It was not clear after look

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-30 Thread Øyvind Kolbu
On 30.09.2013 10:37, Olle E. Johansson wrote: Öyvind, As you are digging into the SRV code - can you try to come up with a description how it works? I am particularly interested in how it handles IPv6 addresses and multiple A/ records for one name. OK, I'll write a small description. I'v

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-30 Thread Øyvind Kolbu
On 30.09.2013 10:30, Daniel-Constantin Mierla wrote: Hello, I'll check this one as well. Is this patch in addition to the previous one or combined? Combined. The only new is adding: /* fallback all the way down to A/ */ if (he==0) { he=dns_get_he(name,dns_flags); } -- Øyvind ___

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-30 Thread Øyvind Kolbu
tt.no. (41) 22158 1/5/9 A sip-services.uninett.no (358) -- Øyvind Kolbu diff --git a/dns_cache.c b/dns_cache.c index 1243c92..3ee8e59 100644 --- a/dns_cache.c +++ b/dns_cache.c @@ -2857,8 +2857,10 @@ struct hostent* dns_naptr_sip_resolvehost(str* name, unsigned short* port, naptr_bmp_t tried_bmp;

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-29 Thread Øyvind Kolbu
On 2013-09-27 at 13:42, Øyvind Kolbu wrote: > On 2013-09-27 at 11:49, Daniel-Constantin Mierla wrote: > > Haven't got time to get back to it -- hope to happen soon. > > I've taken a small peak and think I at least found some of the problem, but > also got quit

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-27 Thread Øyvind Kolbu
it to 0. In resolve.c:no_naptr_srv_sip_resolvehost() a proper SRV lookup function is defined, but not used at least for the t_relay() case. Perhaps change both functions in dns_cache.c to use no_naptr_srv_sip_resolvehost? -- Øyvind Kolbu ___ SIP E

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-24 Thread Øyvind Kolbu
On 18.09.2013 12:17, Daniel-Constantin Mierla wrote: On 9/18/13 12:04 PM, Øyvind Kolbu wrote: Correct, no NAPTR. Only SRV, but until yesterday, no _sip._udp and then it immediately tried an A lookup instead of attempting _sip._tcp. I have also tried to set those prefs, but it did not help. I

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-18 Thread Øyvind Kolbu
On 18.09.2013 11:32, Olle E. Johansson wrote: 18 sep 2013 kl. 10:55 skrev Daniel-Constantin Mierla mailto:mico...@gmail.com>>: Hello, to set the preference order for queries, see: http://www.kamailio.org/wiki/cookbooks/devel/core#dns_sctp_pref_dns_tcp_pref_dns_tls_pref_dns_udp_pref By defau

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-18 Thread Øyvind Kolbu
On 17.09.2013 23:01, Daniel-Constantin Mierla wrote: DEBUG: [dns_cache.c:3007]: dns_a_resolve(): dns_a_resolve(seevia.no, 0) returning 0 Which it should not have done before trying to resolve at least _sip._tcp.seevia.no. I have not configured tls, not sure it will attempt to lookup _sips._tcp

Re: [SR-Users] DNS SRV when no NAPTR

2013-09-17 Thread Øyvind Kolbu
On 17.09.2013 14:08, Daniel-Constantin Mierla wrote: Hello, can you make a test with debug=3 and send the logs to me? Sent, thanks! -- Øyvind Kolbu ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip

[SR-Users] DNS SRV when no NAPTR

2013-09-17 Thread Øyvind Kolbu
n 11:30:24 Sep 17 2013 with gcc 4.1.2 -- Øyvind Kolbu ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] memcached and usrloc

2013-05-21 Thread Øyvind Kolbu
On 21.05.2013 11:50, Victor V. Kustov wrote: Or, you can even have two registrars and use SIP-level message replication between them: http://kamailio.org/docs/modules/4.0.x/modules/tm.html#t_replicate In my case i think carp better :) carp requires the hosts to be on the same layer 2 net

Re: [SR-Users] FreeBSD build from git: i use that patch

2013-03-15 Thread Øyvind Kolbu
n the > scscf_list > > extern struct tm_binds tmb; //Structure with pointers to tm funcs This should be simply fixed by using INT_MAX instead of the deprecated MAXINT definition from values.h on Linux. Patch attached uses INT_MAX consistently in the module and removes the need fo

[SR-Users] sipcapture + db_postgres gives lots of warnings on PostgreSQL server

2013-01-24 Thread Øyvind Kolbu
\012Content-Length: 0\\015\\012User-Agent: kamailio (3.3.3 (i386/linux))\\015\\012\\015\\012') Kamailio as of latest git on the 3.3 branc + 3e580e1ee24f9b9ec4b1fa151b23ebc84f3db1cb. Same warnings when linked with both PostgreSQL 8.4.13 and 9.1.1. According to Alexandr Dubovikov MySQL stores '\r\n' as '\r\n'. -- Øyvind Kolbu ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-30 Thread Øyvind Kolbu
ed via db api and propagated to db_cluster. This would be great. > You have to do cross replication at database layer and use db_cluster as > read/write for failover access (e.g., try read/write on db1 and if > fails, try the other one). Yes, this is what we'll probably end

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-30 Thread Øyvind Kolbu
On 2012-08-30 at 11:32, Daniel-Constantin Mierla wrote: > On 8/30/12 10:29 AM, Øyvind Kolbu wrote: > > Yes, I actually want both, HA + replication, by using db_cluster as the > > replicator. And as I've demonstrated the location-table on non-primary > > servers will l

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-30 Thread Øyvind Kolbu
On 2012-08-30 at 10:09, Daniel-Constantin Mierla wrote: > On 8/29/12 9:15 PM, Øyvind Kolbu wrote: > > On 2012-08-29 at 20:16, Daniel-Constantin Mierla wrote: > >> is usrloc module configured in db only mode? > > Yes, db_mode is 3. > > this might not be very suitable

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-29 Thread Øyvind Kolbu
ind insert ]] DEBUG: [db_res.c:118]: allocate 28 bytes for result set at 0xb7d076b8 DEBUG: db_postgres [km_dbase.c:494]: 0xb7d03fd0 PQresultStatus(PGRES_COMMAND_OK) PQgetResult(0x933fe78) DEBUG: db_postgres [km_dbase.c:393]: PQclear(0x933fe78) result set DEBUG: [db_res.c:81]: freeing 0 columns DE

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-29 Thread Øyvind Kolbu
-edge1 /nett/kamailio/current/sbin/kamailio[31068]: DEBUG: [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list 0xb5d23220 Aug 29 13:19:11 voipt1-edge1 /nett/kamailio/current/sbin/kamailio[31068]: DEBUG: [usr_avp.c:644]: DEBUG:destroy_avp_list: destroying list (nil) Aug 29 13:19:11 voipt

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-28 Thread Øyvind Kolbu
On 2012-08-28 at 21:56, Daniel-Constantin Mierla wrote: > On 8/28/12 6:34 PM, Øyvind Kolbu wrote: > > > > Tried setting > > > > modparam("usrloc", "db_check_update", 1) > > > > but to no avail. > > what do you mean by the la

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-28 Thread Øyvind Kolbu
On 2012-08-24 at 10:48, Øyvind Kolbu wrote: > First impression is that everything is working now, thanks! At least > registrations are getting populated in both databases from both servers. As > I'm out traveling I havn't yet tested calling and whether or not the > failove

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-24 Thread Øyvind Kolbu
"cluster","data2=>voip2_data2=9s9p;voip1_data2=8s9p") The same configuration created coredumps on both machines previously. -- Øyvind Kolbu ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] db_cluster together with the registrar module = signal 11

2012-08-22 Thread Øyvind Kolbu
On 2012-08-22 at 15:32, Øyvind Kolbu wrote: [...] Some more details: # kamailio -V version: kamailio 3.3.1 (i386/linux) aae4e4 flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, USE_FUTEX

[SR-Users] db_cluster together with the registrar module = signal 11

2012-08-22 Thread Øyvind Kolbu
Hi, I upgraded our system to Kamailio 3.3 to take advantage of the new db_cluster module. Currently we have two registration/location servers each with their own sql-server. Authenticated REGISTER messages are forwarded to the other server, which uses the 0x02 flag to save() in order to store it w

Re: [SR-Users] Validate domains, expose sip_hostport2su or similar

2012-05-29 Thread Øyvind Kolbu
On 29.05.2012 14:41, Daniel-Constantin Mierla wrote: that function is not exported in config, maybe with the next major release (3.4). At this moment the options are using embedded languages, such as Lua, or exec module. ok, will do. Thanks for the quick reply. -- Øyvind

[SR-Users] Validate domains, expose sip_hostport2su or similar

2012-05-29 Thread Øyvind Kolbu
n see a function named sip_hostport2su does some validation, but it seems to be a c-function only. From the log: ERROR: [resolve.c:1540]: ERROR: sip_hostport2su: could not resolve hostname: "example.org" ERROR: tm [ut.h:327]: failed to resolve "example.or

Re: [SR-Users] Rtpproxy and UPDATEs

2012-05-22 Thread Øyvind Kolbu
On 2012-05-22 at 12:40, Daniel-Constantin Mierla wrote: > ok, done few time ago -- I kind of forgot about it. Thanks! -- Øyvind Kolbu pgp27x2xYmzrC.pgp Description: PGP signature ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mail

Re: [SR-Users] Rtpproxy and UPDATEs

2012-05-22 Thread Øyvind Kolbu
On 17.05.2012 18:16, Spencer Thomason wrote: I just tested the patch and it works perfectly. Daniel, can you backport to 3.2? -- Øyvind ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://

Re: [SR-Users] Dispatcher and round-robin ignoring priorities?

2012-03-20 Thread Øyvind Kolbu
ieve what you want by chaining dispatching over > two groups of addresses, first round-robin over the group with 'higher > priority from your point of view', then do to the second if none from > first group routes it. Thanks, this works fine. -- Øyvind Kolbu ___

[SR-Users] Dispatcher and round-robin ignoring priorities?

2012-03-19 Thread Øyvind Kolbu
VE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 31

Re: [SR-Users] Dialogs not removed from memory, and occasionally persistent in DB as well

2012-02-14 Thread Øyvind Kolbu
ng to upgrade to a later git, if needed. -- Øyvind Kolbu pgp86zP22jXp6.pgp Description: PGP signature ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Dialogs not removed from memory, and occasionally persistent in DB as well

2012-02-14 Thread Øyvind Kolbu
On 2012-01-31 at 14:15, Øyvind Kolbu wrote: > On 2012-01-31 at 14:06, Timo Reimann wrote: > > I'm currently in the process of investigating a dialog-related issue > > together with Uri (see CC). It may be related to your problem, so let's > > see if I can find somet

Re: [SR-Users] Dialogs not removed from memory, and occasionally persistent in DB as well

2012-01-31 Thread Øyvind Kolbu
y running with full debugging enabled, so don't hesitate to contact if you need some data. -- Øyvind Kolbu pgpb54rVBChuS.pgp Description: PGP signature ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@list

Re: [SR-Users] Dialogs not removed from memory, and occasionally persistent in DB as well

2012-01-31 Thread Øyvind Kolbu
ime for the same call and in this case there seem to be a race within Kamailio. The call is properly setup and termitated, but the entry is still in the dialog table. Any ideas how to cope with the double INVITEs? We do btw use dlg_match_mode = 1, as we used that in Kamailio 1.5 and that worked like a c

Re: [SR-Users] Dialogs not removed from memory, and occasionally persistent in DB as well

2012-01-18 Thread Øyvind Kolbu
On 2012-01-17 at 23:47, Timo Reimann wrote: > Hey Øyvind, > Am 17.01.2012 um 13:41 schrieb Øyvind Kolbu: > > > > Then in the main route: > > > >if !allow_trusted() { > >route(AUTH); > >} > > > >

[SR-Users] Dialogs not removed from memory, and occasionally persistent in DB as well

2012-01-17 Thread Øyvind Kolbu
: 1" | cut -d\ -f8- |sort | uniq -c 1 BUSY: f_uid: 2367449, dlg_busy: 2 3 BUSY: f_uid: 2367453, dlg_busy: 2 1 BUSY: f_uid: 2367453, dlg_busy: 3 1 BUSY: f_uid: 2367453, dlg_busy: 4 1 BUSY: f_uid: 2574912, dlg_busy: 2 1 BUSY: f_uid: 2582270, dlg_busy: 2 1 BUSY: f_uid: ahmedma, dlg_busy: 2 1 BUSY: f_uid: josephim, dlg_busy: 2 1 BUSY: f_uid: perla, dlg_busy: 2 1 BUSY: f_uid: rosalinm, dlg_busy: 2 1 BUSY: f_uid: suresha, dlg_busy: 2 1 BUSY: f_uid: sveinb, dlg_busy: 2 I've full debugging logs available, if needed. -- Øyvind Kolbu pgpbswAdFqBlq.pgp Description: PGP signature ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users