Re: [OpenSIPS-Users] CANCEL & INVITE

2019-06-19 Thread Richard Revels
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.


[image: 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 
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


Re: [OpenSIPS-Users] segfault in opensips30

2019-06-19 Thread johan de clercq
Sorry, I overlooked that.  Anyway here is the output, please let me know if 
this is sufficient. 

 

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Core was generated by `./opensips -f /data/opensips/etc/opensips/opensips.cfg 
-w /tmp'.

Program terminated with signal SIGSEGV, Segmentation fault.

#0  _remove (msg=, udomain=0x7f70323e5fb0, aor_uri=, match_ct=, match_next_hop=0x0, 

match_sin=) at save.c:1006

1006if (match_next_hop->s)

(gdb) bt full

#0  _remove (msg=, udomain=0x7f70323e5fb0, aor_uri=, match_ct=, match_next_hop=0x0, 

match_sin=) at save.c:1006

delete_nh_he = {h_name = 0x7f7033fc78c0 "\001", h_aliases = 
0x7ffdede87800, h_addrtype = 0, h_length = 0, 

  h_addr_list = 0x55cc89463f54 }

he = 

record = 0x0

contact = 

it = 

aor_user = {s = 0x7f702e8da280  "32478720105", len = 11}

ret = 1

delete_port = 0

__FUNCTION__ = "_remove"

#1  0x55cc894b326a in do_action (a=a@entry=0x7f7033f092d8, 
msg=msg@entry=0x7f7033fc78c0) at action.c:1979

increment = 

decrement = 

j = 

num_rows = -1965494148

val_s = {s = 0x7ffdede87dc0 "", len = -1989512731}

cdb_reply = 0x7ffdede87a00

num_cols = 

aux = {s = 0x7ffdede87dc0 "", len = -1989512731}

i = 

it = 

---Type  to continue, or q  to quit--- 

avp_val = 

avp_name = {n = -303530560, s = {s = 0x7ffdede87dc0 "", len = 
-1989512731}}

avp_type = 24496

ret = 0

v = 

sec = 

usec = 

to = 

p = 

tmp = 

new_uri = 

end = 

crt = 

len = 

i = 

user = 0

expires = 0

vals = {{s = 0x55cc8ad8f07c "", len = 8180}, {s = 0x6 , len = 889497490}, {

s = 0x7ffdede87c20 "\300\352\341\212\314U", len = -303531552}, {s = 
0x7f703527dce0 "-\250\004\065p\177", len = -303531105}, {

s = 0x55cc8ad8f0a0 "UTC", len = -303531520}}

result = {s = 0x7ffdede87f00 "\200", len = -303530432}

uri = {user = {s = 0x0, len = 0}, passwd = {s = 0xfbad8001 , len = -1965494148}, 

  host = {s = 0x55cc8ad8 , len = 0}, port = {s = 0x55cc8ad8f07b "0", 

---Type  to continue, or q  to quit---

len = -1965494149}, params = {s = 0x , len = 0}, 

  headers = {s = 0x55cc8ad8f07c "", len = 0}, port_no = 65535, proto = 
65535, type = ERROR_URI_T, transport = {

s = 0x7f7034f9723e 
"L\211\361L\213\\$\020\351\376\360\377\377\017\037D", len = 0}, ttl = {

s = 0x1ff4 , len = 
6}, user_param = {

s = 0x3ede87cff , len = -303530592}, maddr = {

s = 0x7ffdede87b60 "\030|\350\355\375\177", len = 891804896}, 
method = {s = 0x7ffdede87d1f "", len = -1965494112}, lr = {

s = 0x7ffdede87b80 "8|\350\355\375\177", len = -303530992}, r2 = {

s = 0x300010 , len = -303530976}, gr = {

s = 0x7ffdede87b60 "\030|\350\355\375\177", len = -303530984}, 
transport_val = {

s = 0x1ff4 , len = 
-303530954}, ttl_val = {s = 0x7ffdede87c3c "", 

len = -303530952}, user_param_val = {s = 0x7ffdede87c3c "", len = 
891804896}, maddr_val = {s = 0x7ffdede87d8f "", 

len = -1965494112}, method_val = {s = 0x7ffdede87bf0 "", len = 
-1964913972}, lr_val = {

s = 0x300010 , len = -303530864}, r2_val = {

s = 0x55cc8ae1cacc "15:39:47 ./opensips[520]: 
DBG:core:restore_segv_handler: successfully restored system SIGSEGV handler\n", 

len = -1964913972}, gr_val = {s = 0x7f703504a792 "T ", len = 
891811872}, u_name = {{

  s = 0x8 , len = 0}, {

  s = 0x7f7034f95ede 
"Ic\307L\213\\$`D\213|$\020H\001\303M\001\363E\205\377\017\204V\023", len = 
16}, {

  s = 0x1ffb , len = 
0}, {s = 0x55cc8ae1cab0 "", len = -1964905792}, {

  s = 0x7f7035280b00 "", len = 0}, {s = 0x60 , len = 77}, {

  s = 0x7f7034f61114 "\351%\376\377\377\017\037\200", len = 
889489931}, {

  s = 0x300018 , len = -303530704}, {s = 0x55cc8ae1cac0 "", 

  len = -1964914000}, {s = 0x7f703527d080 "", len = 891816704}}, 
u_val = {{

  s = 0x2010 , len = 
77}, {s = 0x7f7034f62719  "I\211ă=\335/2", 

---Type  to continue, or q  to quit---

  len = -1}, {s = 0x5d0a5743 , len = 1}, {s = 0x55cc8adbd930 "X\v(5p\177", 

  len = -303530672}, {s = 0x7f703527d080 "", len = -1965303504}, {s 
= 0x55cc8adbd930 "X\v(5p\177", len = 0}, {

  s = 0x7f703527d080 "", len = -1965303504}, {s = 0x1 , len = -1}, {

  s = 0xb , len = 
-1965303504}, {s = 0x7ffdede87e28 "0", len = 21}}, 

  u_params_no = 44889}

next_hop = {user = {s = 0x7ffdede87dc0 "", len = -1989512731}, passwd = 
{s = 

Re: [OpenSIPS-Users] segfault in opensips30

2019-06-19 Thread Bogdan-Andrei Iancu

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] segfault in opensips30

2019-06-19 Thread johan de clercq
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. 

 



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] segfault in opensips30

2019-06-19 Thread Bogdan-Andrei Iancu

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] segfault in opensips30

2019-06-19 Thread johan de clercq
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. 

 



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


Re: [OpenSIPS-Users] segfault in opensips30

2019-06-19 Thread Joseph Jackson
You should be able to follow these steps - 
https://www.opensips.org/Documentation/TroubleShooting-Crash


From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of johan de 
clercq
Sent: Wednesday, June 19, 2019 9:57 AM
To: 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] segfault in opensips30

I forgot to insert the error :

Jun 19 14:55:29 hendrix /data/opensips/sbin/opensips[30968]: 
CRITICAL:core:sig_usr: segfault in process pid: 30968, id: 5
Jun 19 14:55:29 hendrix kernel: [673177.336262] opensips[30968]: segfault at 0 
ip 7fef8de1e969 sp 7fff0c4baa70 error 4 in 
registrar.so[7fef8de0e000+22000]

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


Re: [OpenSIPS-Users] segfault in opensips30

2019-06-19 Thread johan de clercq
I forgot to insert the error : 

 

Jun 19 14:55:29 hendrix /data/opensips/sbin/opensips[30968]:
CRITICAL:core:sig_usr: segfault in process pid: 30968, id: 5

Jun 19 14:55:29 hendrix kernel: [673177.336262] opensips[30968]: segfault at
0 ip 7fef8de1e969 sp 7fff0c4baa70 error 4 in
registrar.so[7fef8de0e000+22000]

 

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. 

 



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


[OpenSIPS-Users] segfault in opensips30

2019-06-19 Thread johan de clercq
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. 

 



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


[OpenSIPS-Users] opensips-cp 30

2019-06-19 Thread johan de clercq
When can the control panel be expected for opensips 30 ?

 

BR, 

 



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