Re: [OpenSIPS-Users] siptrace issue

2013-12-06 Thread Mickael Hubert
Hi, you can try this: 1) activate modpram trace_on_database 1 2) use sip_trace command instead of trace_dialog 3) if method INVITE && ! has_totag 2013/12/6 Alexander Mustafin > Hello! > > I need to save initial INVITE - but in-dialog messages only in sip_trace > table. Is it possible? > > Bes

Re: [OpenSIPS-Users] siptrace issue

2013-12-06 Thread Mickael Hubert
Hi, it's OK ;) indeed, enable trace_flag it's good. thanks 2013/12/6 Bogdan-Andrei Iancu > Hi Mickael, > > I see you commented the "trace_flag" parameter in your modparm section - > please enable it back. Even if you do not use it from script, it is > internally used by the module. > > Best r

Re: [OpenSIPS-Users] siptrace issue

2013-12-06 Thread Alexander Mustafin
Hello! I need to save initial INVITE - but in-dialog messages only in sip_trace table. Is it possible? Best regards, Alexander Mustafin mustafin.aleksa...@gmail.com 06 дек. 2013 г., в 15:25, Bogdan-Andrei Iancu написал(а): > Hi Mickael, > > I see you commented the "trace_flag" parameter i

Re: [OpenSIPS-Users] siptrace issue

2013-12-06 Thread Bogdan-Andrei Iancu
Hi Mickael, I see you commented the "trace_flag" parameter in your modparm section - please enable it back. Even if you do not use it from script, it is internally used by the module. Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 06.12

Re: [OpenSIPS-Users] siptrace issue

2013-12-05 Thread Mickael Hubert
Hi Bigdan, thanks for your answer. I have modify my opensips code: *my conf:* setdebug(6); trace_dialog(); setdebug(); *see below my opensips.log* *Dec 6 08:38:22 core-sip-2 /usr/local/sbin/opensips[2054]: DBG:dialog:build_new_dlg: new dialog 0x806aee888 (c=11043

Re: [OpenSIPS-Users] siptrace issue

2013-12-05 Thread Bogdan-Andrei Iancu
Hello Mickael, Try to place the trace_dialog() between a set_debug(6) and set_debug(), to see what is going on inside the function. Maybe the debug logs will give you an idea. Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 05.12.2013 09

[OpenSIPS-Users] siptrace issue

2013-12-04 Thread Mickael Hubert
Hi list, I have an issue with my siptrace module. see below my extract of opensips.cfg. I want duplicate dialogs's messages to the other server (10.84.8.201), no DB. But, it doesn't work... no sip message in my wireshark trace. Have you an idea ? Thanks in advance *# --

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-08 Thread Seth Schultz
: [OpenSIPS-Users] Siptrace Issue Bogdan, The patch did solve the error I was receiving, however, now I am receiving a new error "ERROR:siptrace:pipport2su: invalid port number; must be in [1024,65536]". I captured some information from the branch route and I also modified the error

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-08 Thread Bogdan-Andrei Iancu
- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Seth Schultz Sent: Thursday, February 07, 2013 7:40 PM To: Bogdan-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Bogdan, The patch did solve the error I

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-08 Thread Seth Schultz
-Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Seth Schultz Sent: Thursday, February 07, 2013 7:40 PM To: Bogdan-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Bogdan, The patch did

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-08 Thread Bogdan-Andrei Iancu
-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Bogdan, The patch did solve the error I was receiving, however, now I am receiving a new error "ERROR:siptrace:pipport2su: invalid port number; must be in [1024,65536]". I captured some informatio

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-08 Thread Seth Schultz
, 2013 7:40 PM To: Bogdan-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Bogdan, The patch did solve the error I was receiving, however, now I am receiving a new error "ERROR:siptrace:pipport2su: invalid port number; must be in [1024,65536]".

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-08 Thread Bogdan-Andrei Iancu
high. Wbr, Alexandr -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Seth Schultz Sent: Thursday, February 07, 2013 7:40 PM To: Bogdan-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Seth Schultz
-Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Seth Schultz Sent: Thursday, February 07, 2013 7:40 PM To: Bogdan-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Bogdan, The patch did

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Alexandr Dubovikov
, February 07, 2013 7:40 PM To: Bogdan-Andrei Iancu Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Bogdan, The patch did solve the error I was receiving, however, now I am receiving a new error "ERROR:siptrace:pipport2su: invalid port number; must be in [1024,65536]

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Seth Schultz
Bogdan, The patch did solve the error I was receiving, however, now I am receiving a new error "ERROR:siptrace:pipport2su: invalid port number; must be in [1024,65536]". I captured some information from the branch route and I also modified the error message to display the port number. I als

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Bogdan-Andrei Iancu
Hi Seth, Thanks a lot for your help - I found and hopefully fixed the bug - I made the commit on SVN trunk only and I would ask you to test it first (see the attached patch). Let me know if works fine for you and i will do the backport . Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Dev

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Bogdan-Andrei Iancu
On Behalf Of Seth Schultz Sent: Wednesday, February 06, 2013 12:09 AM To: OpenSIPS users mailling list Subject: [OpenSIPS-Users] Siptrace Issue Hello, Could someone please help me resolve the following error message "ERROR:siptrace:pipport2su: no port specified". This error only happen

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Bogdan-Andrei Iancu
ginal Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Wednesday, February 06, 2013 9:24 PM To: Seth Schultz Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Thanks ! Looks like the a

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Alexandr Dubovikov
xandr -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Wednesday, February 06, 2013 9:24 PM To: Seth Schultz Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue Thanks ! Looks lik

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Alexandr Dubovikov
Sent: Wednesday, February 06, 2013 12:09 AM To: OpenSIPS users mailling list Subject: [OpenSIPS-Users] Siptrace Issue Hello, Could someone please help me resolve the following error message "ERROR:siptrace:pipport2su: no port specified". This error only happens on some of the sip pack

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-07 Thread Alexandr Dubovikov
mailling list Subject: Re: [OpenSIPS-Users] Siptrace Issue That's because you need to have "root" permissions to write into /proc/sys/kernel/core_pattern (used for forcing the core file pattern). You should comment in the init.d file the line for writting into that file. Regards, Bogd

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Seth Schultz
loadmodule "db_mysql.so" loadmodule "cfgutils.so" loadmodule "avpops.so" loadmodule "mi_fifo.so" loadmodule "maxfwd.so" loadmodule "nathelper.so" loadmodule "tm.so" loadmodule "dialplan.so" loadmodule "sl.so" loadmodule "rr.so" loadmodule "dialog.so" loadmodule "uri.so" loadmodule "textops.so" loa

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Bogdan-Andrei Iancu
I see...Could you send me the list of modules you are using ? Thanks! Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 02/06/2013 10:29 PM, Seth Schultz wrote: I have seen this error occur on both 1.8.2 and 1.9.0. Below is the output from opensips -V on

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Seth Schultz
I have seen this error occur on both 1.8.2 and 1.9.0. Below is the output from opensips -V on both versions I am running. The trace I provided came from 1.9.0-rc-notls. Thanks, Seth (My development environment) version: opensips 1.9.0-rc-notls (x86_64/linux) flags: STATS: Off, USE_IPV6, USE_

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Bogdan-Andrei Iancu
Thanks ! Looks like the actual socket structure is altered : sock_str = {s = 0x7f4818da11b8 "udp:172.16.1.115", len = 21} length is 21, while only 16 chars are printed -> 5 are missing ( ':' + 4 for port) . What exact opensips revision are you using ? I need to figure out a way to see w

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Seth Schultz
Here is the output: #0 0x7f4820da1425 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) f 5 #5 0x7f4815ef8a61 in trace_msg_out (msg=0x7f4817464340, sbuf=, send_sock=, proto=1, to=out>) at siptrace.c:1053 1053if (save_siptrace(msg,avp,&avp_value,db_keys,db_vals) < 0) {

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Bogdan-Andrei Iancu
Cool :) In gdb, please do : f 5 p trace_local_ip p send_sock p to f 6 p ((struct dest_info*)ps->extra2)->send_sock p *((struct dest_info*)ps->extra2)->send_sock Thanks, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 02/06/2013 09:48 PM, Seth Schultz w

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Seth Schultz
Thanks for all your help. I was finally able to get the system to dump a core file. Here is the output from the backtrace. #0 0x7f4820da1425 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x7f4820da4b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x7f4815ee2d30 in p

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Bogdan-Andrei Iancu
That's because you need to have "root" permissions to write into /proc/sys/kernel/core_pattern (used for forcing the core file pattern). You should comment in the init.d file the line for writting into that file. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-s

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Seth Schultz
Unfortunately I am having trouble getting the system to dump a core file. Here is the error message I am getting once I enable core dumps. /etc/init.d/opensips: 103: /etc/init.d/opensips: cannot create /proc/sys/kernel/core_pattern: Permission denied I have also tried starting opensips as th

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Bogdan-Andrei Iancu
yes, you have to, if using the debian init.d files. The core will be dumped into the opensips working directory - if not configured one, it will be in root file system "/". Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 02/06/2013 07:02 PM,

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Seth Schultz
I assume I also need to set the following variable in /etc/default/opensips. change DUMP_CORE=no to DUMP_CORE=yes This may be a silly question, but where will it dump the core file to? Thanks, Seth Seth Schultz E-Mail: sschu...@scholarchip.com Phone: 212.255.8005 x 124 Fax: 212.255.8091 On 2/

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Bogdan-Andrei Iancu
Where you changed the LM_ERR() in code, after it, simply put : abort(); . Recompile and run again -> when you get the error, opensips should stop by itself with a core dump. Once you get the core file, use gdb to get a backtrace (run "bt" on gdb). Regards, Bogdan-Andrei Iancu OpenSIPS Founde

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Seth Schultz
Bogdan-Andrei, Thank you for the reply. I have seen this error occur in both 1.8.2 and 1.9.0. Would you please explain exactly how I can catch the error and call abort()? Also, is there anything else I can enable which would help us track down the cause? Thanks, Seth Seth Schultz E-Mail:

Re: [OpenSIPS-Users] Siptrace Issue

2013-02-06 Thread Bogdan-Andrei Iancu
Hi Seth, That is really strange - using 1.9 or 1.8 ? Do make it short, could you put an "abort()" when the error is triggered ? -> we could look into backtrace to see where the faulty string comes from. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions

[OpenSIPS-Users] Siptrace Issue

2013-02-05 Thread Seth Schultz
Hello, Could someone please help me resolve the following error message "ERROR:siptrace:pipport2su: no port specified". This error only happens on some of the sip packets, but I can't determine why. When this error occurs, the trace for those packets never make it to my homer capture server