Re: [OpenSIPS-Users] segfault in opensips30

2019-06-21 Thread Bogdan-Andrei Iancu

Hi Johan,

Thank you for the backtrace - I just pushed a fix for this crash. Please 
updated from GIT and give it another try.


Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/20/2019 12:13 PM, Johan De Clercq wrote:

Hello bogdan, do you have everything you need?

Br,

On Wed, 19 Jun 2019, 17:43 Bogdan-Andrei Iancu, > wrote:


Do "gdb /path/to/opensips /path/to/corefile"

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/19/2019 06:41 PM, johan de clercq wrote:


Bogdan, see below output : what am I doing wrong ?

root@hendrix:/tmp# gdb /tmp/core

GNU gdb (Debian 7.12-6) 7.12.0.20161007-git

Copyright (C) 2016 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later
 

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type "show
copying"

and "show warranty" for details.

This GDB was configured as "x86_64-linux-gnu".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:


.

Find the GDB manual and other documentation resources online at:


.

For help, type "help".

Type "apropos word" to search for commands related to "word"...

"/tmp/core": not in executable format: File format not recognized

*From:*Bogdan-Andrei Iancu 

*Sent:* Wednesday, June 19, 2019 5:25 PM
*To:* OpenSIPS users mailling list 
; johan de clercq
 
*Subject:* Re: [OpenSIPS-Users] segfault in opensips30

Hi Johan,

Can you extract the full backtrace from the core file ?

Regards,

Bogdan-Andrei Iancu
  
OpenSIPS Founder and Developer

   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/19/2019 06:11 PM, johan de clercq wrote:

un 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
DBG:db_mysql:db_mysql_convert_rows: no rows returned from the
query

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
DBG:usrloc:db_load_urecord: aor 32478720105 not found in
table location

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
DBG:core:db_free_columns: freeing result columns at
0x7f0d8fa8c7f8

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
DBG:core:db_free_rows: freeing 0 rows

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
DBG:core:db_free_result: freeing result set at 0x7f0d8fa8b320

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
DBG:registrar:_remove: no record '32478720105' found!

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]:
CRITICAL:core:sig_usr: segfault in process pid: 31541, id: 5

*From:* johan de clercq 

*Sent:* Wednesday, June 19, 2019 4:53 PM
*To:* 'OpenSIPS users mailling list'
 
*Subject:* segfault in opensips30

When trying to register an unknown user,  I have a segfault.

I can easily reproduce, so please tell me what I need to do
to give you a dump.

cid:F3100D46-F00D-4610-87ED-3E91DA790A82

Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke

Tel +3256980990 – GSM +32478720104




___

Users mailing list

Users@lists.opensips.org 

http://lists.opensips.org/cgi-bin/mailman/listinfo/users





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Latest opensips crashed after start. During loading drouting tables.

2019-06-21 Thread Liviu Chircu

Done[1], thanks for the report!

[1]: https://github.com/OpenSIPS/opensips/commit/cba99632f1

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 21.06.2019 17:01, Liviu Chircu wrote:


Good news!  I managed to reproduce this crash -- will push a fix soon.

Cheers,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 21.06.2019 16:39, Kirill Galinurov wrote:




opensips -D -f /etc/opensips/opensips.cfg -a Q_MALLOC_DBG -m 4096 -M 4096

Jun 21 09:30:27 [22590] ERROR:core:new_db_id: error while parsing 
database URL: 'postgres://opensips:8T2yJe7tqzolPdn171SO@master.naudb.

service.consul'
Jun 21 09:30:27 [22590] CRITICAL:core:qm_debug_frag: qm_*: fragm. 
0x7f3eef53caf0 (address 0x7f3eef53cb20) end overwritten(0, 0)!


So it's looks like my mistake in db_url field in dr_partitions tabel.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] How to pass in-dialog data with topology_hiding?

2019-06-21 Thread Bogdan-Andrei Iancu

Hi Alexey,

MAybe you should try to add some kind of parameter to the Contact URI - 
TH is replacing the hostport parts, not the full URI (double check it 
please :D). The Contact URI will be received back as RURI.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/21/2019 02:37 PM, Alexey Vasilyev wrote:

Hello team,

I'm using transaction statefull proxy with topology_hiding. Without dialog
module.

And I use rtpengine for part of calls. Decision, to use it or not, is made
during initial INVITE. Without topology_hiding I can keep this decision in
some param in RR and use on re-Invite:
1) add_rr_param(";rtpengine=yes");
...
2) After loose_route()
if (check_route_param("rtpengine=yes")) {
route(rtpengine);
exit;
}
With topology_hiding I have no RR and VIA headers. But instead of
loose_route() I use topology_hiding_match() and it should restore RR
headers. But it seems, that function topology_hiding()
encodes only RR headers from original UAC request, not those ones that were
added by OpenSIPS.

So the question - how to pass this in-dialog data?
Should we add functions add_th_param/get_th_param for this purpose?
Thanks.



-
---
Alexey Vasilyev
--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] CANCEL & INVITE

2019-06-21 Thread Bogdan-Andrei Iancu

Ww - we have a record here :) - resuming a discussion over 8 years !

AFAIK, there was no intentional change (when comes to canceling branches 
with no reply) - do you have a pcap + logs to show such behavior ?


And in regards to the sequence of CANCEL (on timeout) + forking, I think 
this was fixed starting 1.7 - first the CANCEL is sent out and then the 
new potential branches.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/20/2019 01:06 AM, Richard Revels wrote:
I'm going to resurrect this as I've noticed that opensips 2.4.6 sends 
CANCEL for branches it never got a provisional response for.  Was this 
changed intentionally?


Also, it looks like the discussion I am responding on was about 
opensips 1.5 but if any testing is needed around fail-over scenarios I 
expect to be doing some of that over the next few days.  Just let me 
know what still needs to be looked at and I'll try to get it in.



BandwidthMaroon.png



Richard Revels•System Architect II

900 Main Campus Drive, Suite 100, Raleigh, NC 27606

m:919-578-3421 • o: 919-727-4614

e: rrev...@bandwidth.com 



On Tue, Apr 5, 2011 at 3:33 PM Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi guys,

Actually it will be great to have that patch tested to know for
sure if
the problem is solved. I never got a 100% confirmation from
Andrew, but
maybe Piotr can test and confirm.

Thanks and regards,
Bogdan

On 04/05/2011 04:58 PM, Andrew Pogrebennyk wrote:
> Hi Piotr,
> This sounds familiar to the problem I experienced some time ago
- make
> sure to check comments here:
>

https://sourceforge.net/tracker/?func=detail=1086410=2940556_id=232389
>
> I haven't been able to replicate that setup to confirm that the
> attached patch works. You are welcome to try it though :) Note RFC
> states it clearly that if no response has been received from the
UAS
> at all, we should not attempt to send a CANCEL there.
>
> But it seems that in your case you received some provisional
response
> so the issue has to do with the order in which CANCEL is fired -
> exactly what the patch is intended to fix.
>
> On 05.04.2011 15:56, Piotr Sobolewski wrote:
>> I'm having problem with specific gateway to which OpenSIPS sends
>> INVITE and then another INVITE (CallForward on no Aswer).
>> The  problem is when after sending first INVITE to gateway (without
>> getting final response), OpenSIPS hits failure route and then sends
>> another INVITE (with different RURI) toward gateway before
CANCEL is
>> sent, so the gateway responds to second INVITE with "482 Request
>> merged" (and gateway does not attempt to make second connection).
>> Is there a way to send CANCEL before sending second INVITE ?
>


-- 
Bogdan-Andrei Iancu

OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"


___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips-cp 30

2019-06-21 Thread Bogdan-Andrei Iancu

Hey Johan,

I'm currently working in re-aligning the MI interface in CP with 
OpenSIPS 3.0 - I estimate 1-2 weeks to get it done.


Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/19/2019 05:48 PM, johan de clercq wrote:


When can the control panel be expected for opensips 30 ?

BR,

cid:F3100D46-F00D-4610-87ED-3E91DA790A82

Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke

Tel +3256980990– GSM +32478720104



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Latest opensips crashed after start. During loading drouting tables.

2019-06-21 Thread Liviu Chircu

Good news!  I managed to reproduce this crash -- will push a fix soon.

Cheers,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 21.06.2019 16:39, Kirill Galinurov wrote:




opensips -D -f /etc/opensips/opensips.cfg -a Q_MALLOC_DBG -m 4096 -M 4096

Jun 21 09:30:27 [22590] ERROR:core:new_db_id: error while parsing 
database URL: 'postgres://opensips:8T2yJe7tqzolPdn171SO@master.naudb.

service.consul'
Jun 21 09:30:27 [22590] CRITICAL:core:qm_debug_frag: qm_*: fragm. 
0x7f3eef53caf0 (address 0x7f3eef53cb20) end overwritten(0, 0)!


So it's looks like my mistake in db_url field in dr_partitions tabel.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Latest opensips crashed after start. During loading drouting tables.

2019-06-21 Thread Kirill Galinurov
opensips -D -f /etc/opensips/opensips.cfg -a Q_MALLOC_DBG -m 4096 -M 4096

Jun 21 09:30:27 [22590] ERROR:core:new_db_id: error while parsing database
URL: 'postgres://opensips:8T2yJe7tqzolPdn171SO@master.naudb.
service.consul'
Jun 21 09:30:27 [22590] CRITICAL:core:qm_debug_frag: qm_*: fragm.
0x7f3eef53caf0 (address 0x7f3eef53cb20) end overwritten(0, 0)!

So it's looks like my mistake in db_url field in dr_partitions tabel.

>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Latest opensips crashed after start. During loading drouting tables.

2019-06-21 Thread Liviu Chircu

Hi Kirill,

Can you restart your OpenSIPS using the "-a Q_MALLOC_DBG" command-line 
option and
see if we can get that CRITICAL log to include the missing information?  
Thanks!


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 21.06.2019 16:17, Kirill Galinurov wrote:
Hi all. I try latest opensips. And it's crashed  during loading 
drouting tables.

version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, 
Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535

poll method support: poll, epoll, sigio_rt, select.
git revision: bfd80ccde
main.c compiled on 02:37:48 Jun 21 2019 with gcc 4.8.5

opensips -D -f /etc/opensips/opensips.cfg -m 4096 -M 4096
CRITICAL:core:fm_free: freeing already freed pkg pointer 
(0x7f9869850b98), first free: (null): (null)(0) - aborting!


bt full
(gdb) bt full
#0  0x7f9969862207 in ?? ()
No symbol table info available.
#1  0x7f99698638f8 in ?? ()
No symbol table info available.
#2  0x0020 in ?? ()
No symbol table info available.
#3  0x in ?? ()
No symbol table info available.




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Latest opensips crashed after start. During loading drouting tables.

2019-06-21 Thread Kirill Galinurov
Hi all. I try latest opensips. And it's crashed   during loading drouting
tables.
version: opensips 3.0.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: bfd80ccde
main.c compiled on 02:37:48 Jun 21 2019 with gcc 4.8.5

opensips -D -f /etc/opensips/opensips.cfg -m 4096 -M 4096
CRITICAL:core:fm_free: freeing already freed pkg pointer (0x7f9869850b98),
first free: (null): (null)(0) - aborting!

bt full
(gdb) bt full
#0  0x7f9969862207 in ?? ()
No symbol table info available.
#1  0x7f99698638f8 in ?? ()
No symbol table info available.
#2  0x0020 in ?? ()
No symbol table info available.
#3  0x in ?? ()
No symbol table info available.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] How to pass in-dialog data with topology_hiding?

2019-06-21 Thread Alexey Vasilyev
Hello team,

I'm using transaction statefull proxy with topology_hiding. Without dialog
module.

And I use rtpengine for part of calls. Decision, to use it or not, is made
during initial INVITE. Without topology_hiding I can keep this decision in
some param in RR and use on re-Invite:
1) add_rr_param(";rtpengine=yes");
...
2) After loose_route()
if (check_route_param("rtpengine=yes")) {
route(rtpengine);
exit;
}
With topology_hiding I have no RR and VIA headers. But instead of
loose_route() I use topology_hiding_match() and it should restore RR
headers. But it seems, that function topology_hiding()
encodes only RR headers from original UAC request, not those ones that were
added by OpenSIPS.

So the question - how to pass this in-dialog data?
Should we add functions add_th_param/get_th_param for this purpose?
Thanks.



-
---
Alexey Vasilyev
--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users