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

2014-12-16 Thread Øyvind Kolbu
This is the last lines before the SYSCALL error: /usr/sbin/kamailio[30073]: DEBUG: db_postgres [km_pg_con.c:78]: db_postgres_new_connection(): PQsetdbLogin(0xbfe360) /usr/sbin/kamailio[30071]: DEBUG: [mem/q_malloc.c:369]: qm_malloc(): qm_malloc(0x7f0e07395000, 100) called from tls: tls_init.c:

[SR-Users] New reminder: about private emails

2014-12-16 Thread Daniel-Constantin Mierla
Given that I noticed still a lot of emails sent directly after a discussion started on public mailing lists (subject with mailing lists prefix, but the sender header is not the mailing list daemon), I would like to remind that, at least in my case, writing emails directly without cc-ing the mailin

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

2014-12-16 Thread Daniel-Constantin Mierla
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 Is it something that is documented somewhere or maybe some web search can indicate the reasons wh

Re: [SR-Users] R: Dialog update timeout

2014-12-16 Thread Daniel-Constantin Mierla
Try using onreply_route[abc] set with t_on_reply("abc") and eventually with avp -- the onreply_route without a name is executed from core and the avps for transaction (used by tm and dialog) are not available yet. Cheers, Daniel On 16/12/14 08:48, pars3c wrote: > > Also with dlg_manage() i’ve the

Re: [SR-Users] Kamailio AVPs Radius

2014-12-16 Thread Kalala Alexander
Please forgive me for my english ... "side effect of authentication" What is it? Most billing system using RADIUS do not know what SIP_AVP The parameter "Session-Timeout" or "h323-credit-time" come only in response Access-Accept, When requesting Access-Request (with Digest data for authentic

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 Daniel-Constantin Mierla
On 16/12/14 11:38, Øyvind Kolbu wrote: > > 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_te

Re: [SR-Users] Wrong dialog selected in on_reply/failure route in case of spirals.

2014-12-16 Thread Daniel-Constantin Mierla
Hello, looking again at your diagram, it seems that the Call-Id is the same, but there is a different dialog structure. If you dump the dialogs with kamctl, can you see the two structure listed? Are they with same dialog attributes (From/To/...)? Dialog module has a parameter for detecting spira

Re: [SR-Users] sr-users Digest, Vol 115, Issue 15

2014-12-16 Thread Kees Meijs - SIGNET B.V.
Hi Daniel, Thank you very much for your prompt response. The output mentioned is generated by ngrep and can be seen by tcpdump as well. It seems a "space" and the bogus part ends up after the port used in the socket opened. For example "5060" becomes "5060 yadieyaboguspartdrdfg5r3245234". Obvious

Re: [SR-Users] IPv6 socket issues

2014-12-16 Thread Daniel-Constantin Mierla
Hello, did you get a core dump file? If yes, send the full backtrace taken with gdb. Cheers, Daniel On 15/12/14 23:10, Kees Meijs - SIGNET B.V. wrote: > Hi there, > > Another follow-up, I suspect there's something wrong in the mt.so module: > >> Dec 15 19:31:36 somehost kernel: [8146926.603262]

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 Daniel-Constantin Mierla
On 16/12/14 12:12, Øyvind Kolbu wrote: > > 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

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

[SR-Users] kamailio dispatcher module stops processing REGISTER

2014-12-16 Thread José Seabra
Hello there, I'm doing stress testing against kamailio (sip load balancer role) sending sip registrar, my stress test software is sending 50 registrations per second, after 30 seconds and 1000 registers processed the function ds_select_dst (I'm using algorithm 4) returns null for all registers sen

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

2014-12-16 Thread Daniel-Constantin Mierla
On 16/12/14 12:43, Øyvind Kolbu wrote: > > 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.

Re: [SR-Users] kamailio dispatcher module stops processing REGISTER

2014-12-16 Thread Daniel-Constantin Mierla
Hello, what do you mean starts returning null? Does it enter inside a condition like: if(!ds_select_dst(...)) Are there any error messages in syslog? Daniel On 16/12/14 12:51, José Seabra wrote: > Hello there, > > I'm doing stress testing against kamailio (sip load balancer role) > sending si

Re: [SR-Users] kamailio dispatcher module stops processing REGISTER

2014-12-16 Thread José Seabra
Hello Daniel, Yes it enter inside a condition. my code is: if(!ds_select_dst("9", "0")) { xlog("L_ERR", "Failed to select proxy - R=$ru ID=$ci\n"); sl_send_reply("503", "No proxy available, try again later"); exit; } and all sip registrers sent receives a sip reply 503 "No proxy available, try a

Re: [SR-Users] kamailio dispatcher module stops processing REGISTER

2014-12-16 Thread José Seabra
Update: My last email has the wrong example, the correct code is: if(!ds_select_dst("9", "4")) { xlog("L_ERR", "Failed to select proxy - R=$ru ID=$ci\n"); sl_send_reply("503", "No proxy available, try again later"); exit; } I'm using algorithm 4. 2014-12-16 12:14 GMT+00:00 José Seabra : > > Hel

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] What is raw 0.0.0.0:255 pn netstat??

2014-12-16 Thread Luis Jimenez
Sure, here it is: root@ivr:~# netstat -anp | grep raw raw0 0 0.0.0.0:255 0.0.0.0:* 7 12495/kamailio root@ivr:~# On Fri, Dec 12, 2014 at 5:39 AM, Daniel-Constantin Mierla wrote: > > Hello, > > can you give -p parameter to netstat to see the process which creat

Re: [SR-Users] Wrong dialog selected in on_reply/failure route in case of spirals.

2014-12-16 Thread Julia Boudniatsky
Hello Daniel, Thank you for your reply. We set module dialog with: modparam("dialog", "detect_spirals", 1) and modparam("dialog", "dlg_match_mode", 1) I analyze log and found that "parse_to_param(): DEBUG: add_param: tag=" is missing in case of wrong dialog allocation correct dialog ===

[SR-Users] How to Fix the RTP Engine SDP Rewriting direction.

2014-12-16 Thread Mahmoud Ramadan Ali
Hi Dears, I'm working on integrating the rtpengine to work with Kamailio as RTP proxy and i have successfully configured the rtpengine in multi home mode to proxy the media and rewrite the SDP message whenever it passes trough the Kamailio internal interface to the external interface and vice versa

Re: [SR-Users] How to Fix the RTP Engine SDP Rewriting direction.

2014-12-16 Thread Richard Fuchs
On 12/16/14 10:04, Mahmoud Ramadan Ali wrote: > Hi Dears, > I'm working on integrating the rtpengine to work with Kamailio as RTP > proxy and i have successfully configured the rtpengine in multi home > mode to proxy the media and rewrite the SDP message whenever it passes > trough the Kamailio int

Re: [SR-Users] Dialog update timeout

2014-12-16 Thread Pars3c
Hi , i try it with onreply_route[abc] but i have the same results ".. Bogus dialog..." Il martedì 16 dicembre 2014, Daniel-Constantin Mierla ha scritto: > Try using onreply_route[abc] set with t_on_reply("abc") and eventually > with avp -- the onreply_route without a name is executed from core

[SR-Users] Pseudo-Variables Digest

2014-12-16 Thread Kalala Alexander
Hi,How to set these Pseudo-Variables ?? Auth nonce - the nonce from Authorization or Proxy-Authorization headerAuth response - the authentication response from Authorization or Proxy-Authorization header   -- С уважениемИнженер по телекоммуникациям Калала Александр vel: 375291146285life: 3752568199