#546 opensips crash with TLS

1.7.x
closed-fixed
core (110)
5
2012-10-30
2012-07-31
Dragos Oancea
No

Hi all,

opensips 1.7.2 crashes when using TLS with create_dialog("Pp") in the routing script - that would send OPTIONS (nat ping) both to caller and callee during a dialog .

The TLS-related relevant lines in the routing script are:

tls_verify_server = 1
tls_verify_client = 0
tls_require_client_certificate = 0
tls_method = TLSv1
tls_certificate = "/etc/pki/CA/certs/x.crt"
tls_private_key = "/etc/pki/CA/private/x.key"
tls_ca_list = "/etc/pki/CA/certs/ca.crt"

listen = tls:X.X.X.X:5061
listen = tcp:X.X.X.X:5060

syslog:
http://pastebin.com/Kkdns7Cr

backtrace:

http://pastebin.com/7P4ADL9y

Apparently it crashes just after trying to send an OPTIONS or BYE to a device that is not there anymore (it's not on the socket opensips expects it to be - opensips
usually generates a "477 SendFailed" reply in situations like this) .

and interesting enough, if I add an udp port to listen to with "listen=udp:X.X.X.X:5060" does not crash anymore.

Regards,
Dragos

Discussion

<< < 1 2 (Page 2 of 2)
  • OK, let's consider this fixed for the moment, if it does not crash anymore - if the problem pops up again, just open a new ticket.

    Regards,
    Bogdan

     
<< < 1 2 (Page 2 of 2)