Code Monkey home page Code Monkey logo

opensips / opensips Goto Github PK

View Code? Open in Web Editor NEW
1.2K 1.2K 564.0 159.55 MB

OpenSIPS is a GPL implementation of a multi-functionality SIP Server that targets to deliver a high-level technical solution (performance, security and quality) to be used in professional SIP server platforms.

Home Page: https://opensips.org

License: Other

C 96.88% Makefile 0.72% Shell 0.20% C++ 0.22% PHP 0.09% Perl 0.42% XS 0.18% Python 0.37% Lex 0.18% Yacc 0.46% M4 0.19% Roff 0.06% CMake 0.01% Vim Script 0.03%

opensips's Introduction

Build Status Unit Tests OSS-Fuzz Cross Platform Builds Coverity Scan Build Status Code Quality: Cpp Total Alerts

Welcome to OpenSIPS Project

About

OpenSIPS is a GPL licensed SIP server implementation. It started as a fork of Fokus Fraunhofer SIP Express Router (SER) project. OpenSIPS wants to be a more open project, not only from license point of view, but more open as project management, especially for external contributions.

OpenSIPS wants to overcome the development latency of current SER project, to ensure a shorter path into a release for new added features. OpenSIPS is a project maintained by OpenSIPS Solutions http://www.opensips-solutions.com/ by a team including core and main developers of SER project.

Info

For information regarding the OpenSIPS installation, please see the INSTALL file.

For current developers/contributors of this project, see the CREDITS and AUTHORS file. For complete license information, please see the COPYING file. For an overview of OpenSIPS modules, a modules listing is available on the opensips.org website.

Docs

Documentation about each module can be found in the README file in each module directory. For online documentation, please see https://opensips.org/Resources/Documentation

For additional documentation, tutorials and examples please see also https://opensips.org/Resources/DocsTutorials

Questions

For any question related to the OpenSIPS usage, please use the [email protected] public mailing list.

For questions regarding the development of OpenSIPS - like contributions, bug reports, etc - please use the [email protected] public mailing list.

For questions regarding businesses around OpenSIPS - like products,· consultancy, trainings, etc - please use the [email protected] public mailing list.

Also there is a generic news mailing list where you can learn about what is· new or important for the OpenSIPS project, about alerts and updates regarding relaces and about events around the project. [email protected]

opensips's People

Contributors

2017397902 avatar andrei-datcu avatar bogdan-iancu avatar carstenbock avatar danpascu avatar eseanucristian avatar henningw avatar ionel-cerghit avatar ionutrazvanionita avatar ironmissy avatar jblache avatar john08burke avatar juha-h avatar l2dy avatar lemenkov avatar liviuchircu avatar nikbyte avatar normb avatar opensips-github avatar ovidiusas avatar razvancrainea avatar rrb3942 avatar rvlad-patrascu avatar saghul avatar sgutierb avatar sobomax avatar tallicamike avatar victor-ciurel avatar vladpaiu avatar wdoekes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opensips's Issues

Crash in pua_dialoginfo

pua_dialoginfo crashes on dialog_publish.c too quick on line 77 (1.9 branch).
And I think all other branches because code (and line) is the same.
#0 0x00007f9b2463f122 in memcpy () from /lib64/libc.so.6

No symbol table info available.
#1 0x00007f9b19f089c9 in memcpy (state=0x7f9b19f0d7d3 "terminated",

entity=0x7fffa95f1900, peer=0x7fffa95f1690, callid=0x7f9b11d58b88,
initiator=1, localtag=0x0, remotetag=0x0) at /usr/include/bits/string3.h:52

No locals.
#2 build_dialoginfo (state=0x7f9b19f0d7d3 "terminated",

entity=0x7fffa95f1900, peer=0x7fffa95f1690, callid=0x7f9b11d58b88,
initiator=1, localtag=0x0, remotetag=0x0) at dialog_publish.c:77
    doc = 0x0
    root_node = 0x0
    dialog_node = 0x0
    state_node = 0x0
    remote_node = 0x0
    local_node = 0x0
    tag_node = 0x0
    id_node = 0x0
    body = 0x0
    buf = "ʿp$\260\375\377\377\377\377\377\377\377\377\377\377\003\000\000\000\000\000\000\000\350\320%\037\233\177\000\000`\372\236\033\233\177\000\000`\372\236\033\233\177\000\000`\372\236\033\233\177\000\000\230\037_\251\377\177\000\000\234\037_\251\377\177\000\000\340\060A\000\000\000\000\000\200\065\224$\000\000\000\000\300\321%\037\233\177\000\000\230\322%\037\233\177\000\000\000\000\00---Type <return> to continue, or q <return> to quit---

0\000\000\000\000\000`\372\236\033\233\177\000\000\215\064A\000\000\000\000\000\000\000\000\000\260\375\377\377\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\200N\224$\233\177\000\000\000\000\000\000\000\000\000\000\003", '\000' <repeats 15 times>, "\004\000\000\000\000\000\000\000\240\311D\002", '\000' <repeats 12 times>, "P\023_\251\377\177\000\000\247\320g$\233\177\000\000\002\000\000\000\000\000\000\000n^I\000\000\000\000\000\000\000\000\000\377\177\000\000$\000\000\000\000\000\000\000\300\227B\037\233\177\000\000\003", '\000' <repeats 11 times>...
FUNCTION = «build_dialoginfo"
or
#0 0x00007f41cec45122 in memcpy () from /lib64/libc.so.6

No symbol table info available.
#1 0x00007f41c450e9c9 in memcpy (state=0x7f41c45137de "early",

entity=0x7fffa2243690, peer=0x7fffa2243420, callid=0x7f41bbf576f8,
initiator=1, localtag=0x0, remotetag=0x0) at /usr/include/bits/string3.h:52

No locals.
#2 build_dialoginfo (state=0x7f41c45137de "early", entity=0x7fffa2243690,

peer=0x7fffa2243420, callid=0x7f41bbf576f8, initiator=1, localtag=0x0,
remotetag=0x0) at dialog_publish.c:77
    doc = 0x0
    root_node = 0x0
    dialog_node = 0x0
    state_node = 0x0
    remote_node = 0x0
    local_node = 0x0
    tag_node = 0x0
    id_node = 0x0
    body = 0x0
    buf = "\200(\377Ű\375\377\377\377\377\377\377\377\377\377\377", '\000' <repeats 16 times>, " \000\000\000\000\000\000\000\315\033\000\000\001\000\000\000\002\000\000\000\377\177", '\000' <repeats 18 times>"\304, \324\307\316A\177\000\000\200\225\364\316", '\000' <repeats 28 times>, "H\005\000\000\377\177\000\000\221\032\321\316A\177\000\000\220\060$\242\377\177\000\000\000\000\000\000\000---Type <return> to continue, or q <return> to quit---

\000\000\000\004\000\000\000\000\000\000\000\200\256\364\316A\177", '\000' <repeats 34 times>"\240, Yt\002", '\000' <repeats 12 times>"\340, \060$\242\377\177\000\000\247\060\310\316A\177\000\000\002\000\000\000\000\000\000\000n^I\000\000\000\000\000a.137810$\000\000\000\000\000\000\000\230n\210\311A\177\000\000\003", '\000' <repeats 11 times>, "\004\000\000\000\000\000\000\000A\177\000\000\350\061$\242\377\177\000\000\000\061$\242\377\177\000\000\000\000\000\000A"...
FUNCTION = «build_dialoginfo"

because

(gdb) p entity->uri
$5 = {s = 0x0, len = 36}

or

(gdb) p entity->uri
$1 = {s = 0x0, len = 39}

cache_counter_fetch inadvertently creates timer in cache with no expiration

Depending on how it is implemented in the underlying cachedb module cache_counter_fetch may create the counter if it does not exist with no expiration set.

This can be surprising behavior, especially if you later us cache_add and the supplied expiration does not appear to be honored.

Doing a quick review I believe this only affects the couchbase and memcached modules where cache_counter_fetch is implemented as a call to their corresponding cache_add functions with a 0 increment and 0 expiration.

Lumps bug in latest 1.10

If I have something like

remove_hf("To");
append_hf("To: <$du>\r\n", "From");

in my script, packets after opensips looks like

OPTIONS sip:8.8.8.8:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 8.8.8.8:5060;branch=z9hG4bK42e3.ce41a6c7.0
From: sip:[email protected];tag=0a8fdab7
Call-ID: 2045e661-8ac5e035-e71d2
CSeq: 1 OPTIONS
Max-Forwards: 69
Content-Length: 0

\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00\0x00[|sip]

(not only OPTIONS, every requests or replies).

If I change
remove_hf("To");
append_hf("To: <$du>\r\n", "From");
to
remove_hf("To");
append_hf("To: <$du>\r\n");

everything works as expected.

Opensips 1.9.1 with TLS fails to start on Fedora 18

It exits with the following message:

Jul 20 00:08:08 sip opensips: ERROR:core:init_tls: unable to set the memory allocation functions
Jul 20 00:08:08 sip opensips: CRITICAL:core:main: could not initialize tls, exiting...

Searched the web to reveal this bit of info from another FC18 user:

I was'nt able to start Opensips with TLS because it seems that openssl was compiled in FIPS mode.

It seems that with FIPS openssl 1.0.1e disable malloc and free that opensips use.

I recompile openssl 1.0.1e without FIPS and replace the libraries in /lib but I got a strange message from opensips when I restart.

localhost opensips: WARNING:core:fm_free: free(0) called
localhost opensips: ERROR:core:init_tls: compiled agaist an openssl with no kerberos, but run with one with no kerberos
localhost opensips: CRITICAL:core:main: could not initialize tls, exiting...

I did check the code in "tls_init.c" in opensips and it seems a little bit messy at line 535...
Like it compare something that is fix but seems to print the message anyway with a dynamic variable that is get from openssl ciphers suites and the double inversions seems to get the output a little fuzzy...

In anycase, I try to compile openssl libraries without kerberos and it did'nt work, I retry to compile it with Kerberos MIT flavor and it work.

I just hope I will help someone else.

I don't know if it's possible to try to get a patch for opensips in Fedora 18 that could use openssl with FIPS.

Flag based lookup fails in dlist.c get_all_db_ucontacts()

After the change to the string based flags, the get_all_db_ucontacts() fails in dlist.c because it still uses the bitmask flags.

Two possible solutions:

  1. Use a compound AND OR in the where clause to match all occurances of the flag within the string based database flags.
  2. Break the flags out into a different table that has a key back to the entry in the location table. This would allow for discrete selecting of a user location entry based on any set of flags.

db_http module doesn't match its documentation

Well, more precisely, the module changed its behavior with 4584e60, which breaks existing server-side code, and doesn't match the documentation.

I don't understand why the column delimiter that is used to send the queries (e.g. , in c=a,b) must match the delimiter used to send the responses (e.g. | in 0|1). Moreover some values are going to break the queries (because they are special characters in URL encoding: %, &, or because they are illegal characters -- \t) so it seems rather silly to move away from , as the delimiter for queries.

In any case this breaks backward-compatibility with 1.8, 1.9, and isn't documented. My suggestions would be either to revert that commit, or to use a separate variable for the query delimiter (defaults to , in order to be backward-compatible) and the (response) column delimiter.

Opensips TLS support / no DH or DHE ciphers allowed

We tested with OpenSSL 1.0.1e compiled with elliptic curves and Diffie Hellman Ephermerals. OpenSIPS up to 1.10 is not supporting (EC)DH or (EC)DHE ciphers. There is no possibility to set DH params like

http://www.openssl.org/docs/ssl/SSL_CTX_set_tmp_dh_callback.html

should do.

init_ssl_ctx_behavior (of tls_init.c) should initialize those DH params too, but it doesn't anyway.

We've tested with this ciphers list:

DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:AES128-SHA

Checking with sslscan, it'll reject all ciphers from above, only

AES256-SHA AES128-SHA

are accepted.

TLS v1.2 with elliptic curves will enable those ciphers:

ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA256:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:AES256-GCM-SHA384:AES256-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:DHE-DSS-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-DSS-AES128-SHA256:ECDH-RSA-AES128-GCM-SHA256:ECDH-ECDSA-AES128-GCM-SHA256:ECDH-RSA-AES128-SHA256:ECDH-ECDSA-AES128-SHA256:AES128-GCM-SHA256:AES128-SHA256

Most of them are DH based. This will broke support for TLS v1.2.

Crash in Ratelimit module - Opensips 1.10 - Memdebug on - Centos 6

BT Pasted:

(gdb) bt full
#0  0x0000003b172328a5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000003b17234085 in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x00000000004dcbe5 in qm_free (qm=<value optimized out>, p=0x3039343430303434, file=0x7fa1e15bb8ed "ratelimit_helper.c", func=<value optimized out>, 
    line=<value optimized out>) at mem/q_malloc.c:450
        f = <value optimized out>
        size = <value optimized out>
        __FUNCTION__ = "qm_free"
#3  0x00007fa1e15b8232 in rl_timer (ticks=<value optimized out>, param=<value optimized out>) at ratelimit_helper.c:473
        i = <value optimized out>
        it = {node = 0x0, map = 0x7f9fe0966d90}
        del = {node = 0x0, map = 0x7f9fe0966d90}
        pipe = 0x7f9fe113f940
        key = <value optimized out>
        now = 1380284763
        __FUNCTION__ = "rl_timer"
#4  0x00000000004b9d0e in timer_ticker () at timer.c:384
        t = 0x7fa1e56b6478
        j = 41115
        ij = 41115270000
        ij_marker = 41115270000
#5  run_timer_process () at timer.c:471
        multiple = 1
        cnt = <value optimized out>
        tv = {tv_sec = 0, tv_usec = 0}
        drift = 0
        uinterval = 1000000
        wait = <value optimized out>
#6  start_timer_processes () at timer.c:610
        tpl = 0x7fa1e56b6820
        pid = <value optimized out>
        __FUNCTION__ = "start_timer_processes"
#7  0x0000000000434158 in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:991
        i = <value optimized out>
        pid = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        si = 0x0
        startup_done = 0x7f9fe0b10c80
        chd_rank = 32
        rc = <value optimized out>
        load_p = 0x7f9fe0b120e8
#8  main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1598
        cfg_log_stderr = <value optimized out>
        cfg_stream = <value optimized out>
        c = <value optimized out>
        r = <value optimized out>
        tmp = 0x7fff1480368e ""
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        options = 0x5519a8 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
        ret = -1
        seed = 3729286111
        rfd = <value optimized out>
        __FUNCTION__ = "main"

Accompanying opensips.log


Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[27045]: CRITICAL:core:receive_fd: EOF on 53
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[26986]: INFO:core:handle_sigs: child process 27026 exited by a signal 6
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[26986]: INFO:core:handle_sigs: core was generated
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[26986]: INFO:core:handle_sigs: terminating due to SIGCHLD
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[27045]: INFO:core:sig_usr: signal 15 received
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[27045]: Memory status (pkg):
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[27043]: INFO:core:sig_usr: signal 15 received
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[27042]: INFO:core:sig_usr: signal 15 received
Sep 27 12:26:27 server7-node3 /usr/sbin/opensips[26986]: INFO:core:handle_sigs: child process 27026 exited by a signal 6

websocket support in events please

It would be great to support web sockets as a transport protocol for events. I want it to be able to send a message to a websocket server which would then relay it to relevant browser clients.

opensips-xmlrpc-module package at atp.opensips.org depends on libxmlrpc-c3 but should now depend on libxmlrpc-core-c3

The package name has changed and there is a bit of a bug in the way it was renamed, which means xmlrpc support package isn't installable on debian/ubuntu at the moment.
I have filed a bug on the ubuntu side, libxmlrpc-core-c3 should provide libxmlrpc-c3 so it should be a backwards compatible name change, however the opensips package should be updated to depend on the new package name.
https://bugs.launchpad.net/ubuntu/+source/xmlrpc-c/+bug/1232015

Opensips Fmalloc crash 1.10

(gdb) bt full
#0  0x00000000004d9dd7 in fm_remove_free (qm=0x7fd1d4fb7000, size=1352) at mem/f_malloc.c:172
        pf = 0x0
        hash = 169
#1  fm_malloc (qm=0x7fd1d4fb7000, size=1352) at mem/f_malloc.c:383
        frag = 0x7fd1d7bb5cf0
        n = <value optimized out>
        hash = <value optimized out>
        __FUNCTION__ = "fm_malloc"
#2  0x00000000004d48d9 in shm_malloc_unsafe (flags=2, id=183, val=...) at evi/../mem/shm_mem.h:248
        p = <value optimized out>
#3  shm_malloc (flags=2, id=183, val=...) at evi/../mem/shm_mem.h:258
        p = <value optimized out>
#4  new_avp (flags=2, id=183, val=...) at usr_avp.c:119
        avp = <value optimized out>
        s = <value optimized out>
        len = <value optimized out>
        __PRETTY_FUNCTION__ = "new_avp"
        __FUNCTION__ = "new_avp"
#5  0x00000000004d4e64 in add_avp (flags=<value optimized out>, name=<value optimized out>, val=...) at usr_avp.c:148
        avp = <value optimized out>
        __FUNCTION__ = "add_avp"
#6  0x0000000000467c6b in pv_set_avp (msg=0x7fd3d9a7b088, param=0x7fd3d99fc918, op=53, val=0x7fff4ad8be90) at pvar.c:2230
        avp_name = 183
        avp_val = {n = -643318512, s = {
            s = 0x7fd3d9a7bd10 "{ \"leg\": \"A\", \"subscriber\": \"XXX
\", \"method\": \"INVITE\", \"from_tag\": \"sansay1350538227rdb48823\", \"to_tag\": \"PECS.306.503\", \"callid\": \"[email protected]\", \"sip_code\": \"2"..., len = 1318}}
        flags = <value optimized out>
        name_type = 0
        idx = <value optimized out>
        idxf = 0
        __FUNCTION__ = "pv_set_avp"
#7  0x0000000000410956 in do_assign (msg=0x7fd3d9a7b088, a=0x7fd3d99fcb20) at action.c:279
        ret = <value optimized out>
        val = {rs = {
            s = 0x7fd3d9a7bd10 "{ \"leg\": \"A\", \"subscriber\": \"XXX\", \"method\": \"INVITE\", \"from_tag\": \"sansay1350538227rdb48823\", \"to_tag\": \"PECS.306.503\", \"callid\": \"[email protected]\", \"sip_code\": \"2"..., len = 1318}, ri = 0, flags = 36}
---Type <return> to continue, or q <return> to quit---
        dspec = 0x7fd3d99fc900
        __FUNCTION__ = "do_assign"
#8  0x000000000041229b in do_action (a=0x7fd3d99fcb20, msg=0x7fd3d9a7b088) at action.c:1839
        val_s = {s = 0x0, len = 18043888}
        aux_counter = <value optimized out>
        i = <value optimized out>
        avp_val = {n = 1936485473, s = {s = 0xa0d3120736c6c61 <Address 0xa0d3120736c6c61 out of bounds>, len = -123678897}}
        j = <value optimized out>
        key_number = <value optimized out>
        cdb_res = <value optimized out>
        adv_addr = {s = 0x3000000010 <Address 0x3000000010 out of bounds>, len = 1255720112}
        increment = <value optimized out>
        decrement = <value optimized out>
        avp_type = <value optimized out>
        aux = {s = 0x0, len = 1255720056}
        cdb_reply = <value optimized out>
        val_number = <value optimized out>
        it = <value optimized out>
        avp_name = {n = 1255720152, s = {s = 0x7fff4ad8c4d8 "\377\377\377\377\377\377\377\377", len = 1076737281}}
        ret = -5
        v = <value optimized out>
        sec = <value optimized out>
        usec = <value optimized out>
        to = <value optimized out>
        p = <value optimized out>
        tmp = <value optimized out>
        new_uri = <value optimized out>
        end = <value optimized out>
        crt = <value optimized out>
        len = <value optimized out>
        i = <value optimized out>
        user = 0
        expires = 0
        vals = {{s = 0x0, len = 0}, {s = 0x34 <Address 0x34 out of bounds>, len = -687000636}, {s = 0x7fd1ffffffff "", len = 0}, {s = 0x7fd1d5de9d60 "", len = 1079560000}, {
            s = 0x0, len = 0}}
        result = {s = 0x0, len = -123700437}
---Type <return> to continue, or q <return> to quit---
        uri = {user = {s = 0x0, len = 496}, passwd = {s = 0x0, len = 0}, host = {s = 0x5241d0fd <Address 0x5241d0fd out of bounds>, len = 787865}, port = {
            s = 0x7c0000005b <Address 0x7c0000005b out of bounds>, len = 119}, params = {s = 0x31007fd3d6449580 <Address 0x31007fd3d6449580 out of bounds>, len = 1716560567}, 
          headers = {s = 0x0, len = 0}, port_no = 17792, proto = 16422, type = 57, transport = {s = 0x7fff4ad8c2b0 "\001\200\255", <incomplete sequence \373>, len = 0}, ttl = {
            s = 0x0, len = 1255720032}, user_param = {s = 0x7fd3d99e9e40 "M", len = -643321720}, maddr = {s = 0x7fff4ad8c208 "`\312\330J\377\177", len = 24}, method = {
            s = 0x7fff4ad8c4b0 "\210\260\247\331\323\177", len = 1255719920}, lr = {s = 0x4674ba "H\211\305H\205\300\017\204\224", len = 1}, r2 = {s = 0x7fff4ad8ca60 "", 
            len = -704414546}, gr = {s = 0x2 <Address 0x2 out of bounds>, len = 0}, transport_val = {s = 0x7fd3d99e9e40 "M", len = 1}, ttl_val = {s = 0x7fd3d9895a44 "llss8", 
            len = -645294640}, user_param_val = {s = 0x7fff4ad8be04 "", len = 1343}, maddr_val = {s = 0x7fff4ad8c310 "", len = 0}, method_val = {
            s = 0x7fff4ad8c2b0 "\001\200\255", <incomplete sequence \373>, len = 1255720304}, lr_val = {s = 0x11353f0 "", len = 1255719888}, r2_val = {
            s = 0x7fff4ad8c570 "\270)C\325\321\177", len = 0}, gr_val = {s = 0x0, len = -123678596}, u_name = {{s = 0x3940269945 "H\213\234$", <incomplete sequence \370>, 
              len = -72515583}, {s = 0x7fff4ad8c574 "\321\177", len = 1255720333}, {s = 0x7fff4ad8c570 "\270)C\325\321\177", len = 1255720304}, {
              s = 0x7fff4ad8c570 "\270)C\325\321\177", len = 1255720304}, {s = 0x7fff4ad8c570 "\270)C\325\321\177", len = 1255720333}}, u_val = {{s = 0x0, len = 0}, {s = 0x0, 
              len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = -684657248}}, u_params_no = 63280}
        next_hop = {user = {s = 0x1171a70 "\006", len = 4}, passwd = {s = 0x1171a70 "\006", len = 12}, host = {s = 0x803a74 "3", len = 1}, port = {
            s = 0x7fff4ad8c10b "\326\001", len = 1255719616}, params = {s = 0x7fd3d98f00e0 "", len = 1255719200}, headers = {s = 0x394035662e ".", len = 1255718992}, 
          port_no = 0, proto = 0, type = SIP_URI_T, transport = {s = 0x7fff4ad8c4d0 "\005", len = 0}, ttl = {s = 0xe8a3c0 "`\213", <incomplete sequence \350>, len = 0}, 
          user_param = {s = 0x7fd300000000 "", len = 0}, maddr = {s = 0x0, len = 1255727628}, method = {s = 0x0, len = -660448832}, lr = {s = 0x0, len = 0}, r2 = {
            s = 0x100000002 <Address 0x100000002 out of bounds>, len = 1255719888}, gr = {s = 0x0, len = 0}, transport_val = {s = 0xd8a259c0 <Address 0xd8a259c0 out of bounds>, 
            len = 1079563648}, ttl_val = {s = 0x0, len = 3}, user_param_val = {s = 0x0, len = 10}, maddr_val = {s = 0x34f8a0d080 "", len = 1}, method_val = {
            s = 0x394029c95a "=\001\360\377\377s\005H\203\304\b\303H\213\r3\006/", len = 1255720568}, lr_val = {s = 0x41136d "L\213\244$\350\004", len = 65}, r2_val = {s = 0x0, 
            len = 10}, gr_val = {s = 0x0, len = -704414481}, u_name = {{s = 0x0, len = 0}, {s = 0xb4ad8c200 <Address 0xb4ad8c200 out of bounds>, len = 0}, {
              s = 0xb00e8a3c0 <Address 0xb00e8a3c0 out of bounds>, len = 0}, {s = 0x7fff4ad8c250 "?\005", len = 0}, {s = 0x0, len = 1380045053}}, u_val = {{
              s = 0xc05a7 <Address 0xc05a7 out of bounds>, len = -704414720}, {s = 0x0, len = 0}, {s = 0x1d6037b3d <Address 0x1d6037b3d out of bounds>, len = 1255720160}, {
              s = 0x7fff00000000 <Address 0x7fff00000000 out of bounds>, len = 1255719269}, {s = 0xb4027ba30 <Address 0xb4027ba30 out of bounds>, len = 29}}, u_params_no = 7}
        u = <value optimized out>
        port = <value optimized out>
        cmatch = <value optimized out>
        aitem = <value optimized out>
        adefault = <value optimized out>
        spec = <value optimized out>
        model = <value optimized out>
        val = {rs = {s = 0x7fd3d6037cab "%ld", len = 18043888}, ri = 17993632, flags = 0}
        pve = <value optimized out>
        name_s = {s = 0x15e <Address 0x15e out of bounds>, len = 1255720056}
        start = {tv_sec = 1380045053, tv_usec = 951005}
        end_time = -643321720
        route_params_bak = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        route_params_number_bak = <value optimized out>
        __FUNCTION__ = "do_action"
#9  0x0000000000410e74 in run_action_list (a=<value optimized out>, msg=0x7fd3d9a7b088) at action.c:171
        ret = <value optimized out>
        t = 0x7fd3d99fcb20
#10 0x000000000041864d in run_actions (a=0x7fd3d99e9e40, msg=0x7fd3d9a7b088) at action.c:136
No locals.
#11 run_top_route (a=0x7fd3d99e9e40, msg=0x7fd3d9a7b088) at action.c:211
        bl_last_msg_id = 0
        bk_action_flags = 0
        bk_rec_lev = 1
        ret = <value optimized out>
#12 0x00007fd3d5a1b00f in scriptroute_raise (msg=<value optimized out>, ev_name=0x7fd1d4fc50a8, sock=<value optimized out>, params=<value optimized out>) at event_route.c:262
        backup_params = 0x0
        backup_name = 0x7fd1d4fc50a8
        __FUNCTION__ = "scriptroute_raise"
#13 0x000000000052f466 in evi_raise_event_msg (msg=0x7fd3d9a7b088, id=<value optimized out>, params=0x7fd3d98995d0) at evi/event_interface.c:203
        subs = 0x7fd1d54329b8
        prev = <value optimized out>
        now = 1380045053
        flags = 67109394
        pflags = 0
        ret = <value optimized out>
        __FUNCTION__ = "evi_raise_event_msg"
#14 0x000000000052ff90 in evi_raise_event (id=5, params=0x7fd3d98995d0) at evi/event_interface.c:122
        status = <value optimized out>
        req = 0x7fd3d9a7b088
        event_avps = 0x7fd1d845ee10
        bak_avps = 0x7e0420
        __FUNCTION__ = "evi_raise_event"
#15 0x00007fd3d70d706a in acc_evi_cdrs (dlg=<value optimized out>, msg=<value optimized out>) at acc.c:1579
        nr_vals = 0
        i = <value optimized out>
        ret = 54
        res = -1
        nr_bye_vals = 0
---Type <return> to continue, or q <return> to quit---
        j = <value optimized out>
        aux_time = 13
        created = 1380045023
        start_time = <value optimized out>
        core_s = {s = 0x7fd3d9a6f950 "\006", len = 106}
        leg_s = {s = 0x7fd3d9a199e8 "", len = 4}
        extra_s = {s = 0x7fd3d9a73c90 ".", len = 313}
        nr_legs = <value optimized out>
        __FUNCTION__ = "acc_evi_cdrs"
#16 0x00007fd3d70e3467 in acc_dlg_callback (dlg=0x7fd1d7622560, type=<value optimized out>, _params=0x7fd3d87cc240) at acc_logic.c:644
        flags = 7
        __FUNCTION__ = "acc_dlg_callback"
#17 0x00007fd3d857e068 in run_dlg_callbacks (type=32, dlg=0x7fd1d7622560, msg=<value optimized out>, dir=<value optimized out>, dlg_data=<value optimized out>) at dlg_cb.c:253
        cb = <value optimized out>
        __FUNCTION__ = "run_dlg_callbacks"
#18 0x00007fd3d85941f3 in dlg_onroute (req=<value optimized out>, route_params=<value optimized out>, param=<value optimized out>) at dlg_handlers.c:1216
        dlg = 0x7fd1d7622560
        val = {
          s = 0x7d056b "bc71.0cff28d5>,<sip:10.0.0.11;r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]:5060;lr;transport=udp>\r\nMax-Forwar"..., len = 13}
        callid = {
          s = 0x7d0509 "[email protected]\r\nRoute: <sip:10.0.0.17;lr;ftag=sansay1350538227rdb48823;did=bc71.0cff28d5>,<sip:10.0.0.11;r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay"..., len = 37}
        ftag = {
          s = 0x7d04e5 "PECS.306.503\r\nCSeq: 2 BYE\r\nCall-ID: [email protected]\r\nRoute: <sip:10.0.0.17;lr;ftag=sansay1350538227rdb48823;did=bc71.0cff28d5>,<sip:10.0.0.11;r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;"..., len = 12}
        ttag = {
          s = 0x7d0494 "sansay1350538227rdb48823\r\nFrom: \"15105226868\" <sip:[email protected]>;tag=PECS.306.503\r\nCSeq: 2 BYE\r\nCall-ID: [email protected]\r\nRoute: <sip:10.0.0.17;lr;ftag=sansay13505382"..., len = 24}
        h_entry = <value optimized out>
        h_id = <value optimized out>
        new_state = 5
        old_state = 4
        unref = 2
        event = <value optimized out>
        timeout = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        update_val = <value optimized out>
        dir = 2
        dst_leg = 0
        src_leg = <value optimized out>
        ret = <value optimized out>
        ok = 1
        d_entry = <value optimized out>
        msg_cseq = <value optimized out>
        final_cseq = <value optimized out>
        __FUNCTION__ = "dlg_onroute"
#19 0x00007fd3d836b117 in run_rr_callbacks (req=0x7fd3d9a6c310, rr_params=0x7fd3d856ec10) at rr_cb.c:99
        l_param = {
          s = 0x7d0546 "lr;ftag=sansay1350538227rdb48823;did=bc71.0cff28d5>,<sip:10.0.0.11;r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]."..., len = 50}
        cbp = 0x7fd3d9a11198
        __FUNCTION__ = "run_rr_callbacks"
#20 0x00007fd3d8365dbf in after_loose (_m=<value optimized out>, preloaded=<value optimized out>) at loose.c:850
        hdr = 0x7fd3d9a6f0a8
        puri = {user = {s = 0x0, len = 0}, passwd = {s = 0x0, len = 0}, host = {
            s = 0x7d057f "10.0.0.11;r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]:5060;lr;transport=udp>\r\nMax-Forwards: 69\r\nContent-Leng"..., len = 9}, port = {s = 0x0, len = 0}, params = {
            s = 0x7d0589 "r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]:5060;lr;transport=udp>\r\nMax-Forwards: 69\r\nContent-Length: 0\r\nUse"..., len = 8}, headers = {s = 0x0, len = 0}, port_no = 0, proto = 0, type = SIP_URI_T, transport = {s = 0x0, len = 0}, 
          ttl = {s = 0x0, len = 0}, user_param = {s = 0x0, len = 0}, maddr = {s = 0x0, len = 0}, method = {s = 0x0, len = 0}, lr = {
            s = 0x7d058f "lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]:5060;lr;transport=udp>\r\nMax-Forwards: 69\r\nContent-Length: 0\r\nUser-Agen"..., len = 2}, r2 = {
            s = 0x7d0589 "r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]:5060;lr;transport=udp>\r\nMax-Forwards: 69\r\nContent-Length: 0\r\nUse"..., len = 5}, gr = {s = 0x0, len = 0}, transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0, len = 0}, 
          user_param_val = {s = 0x0, len = 0}, maddr_val = {s = 0x0, len = 0}, method_val = {s = 0x0, len = 0}, lr_val = {s = 0x0, len = 0}, r2_val = {
            s = 0x7d058c "on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]:5060;lr;transport=udp>\r\nMax-Forwards: 69\r\nContent-Length: 0\r\nUser-A"..., len = 2}, gr_val = {s = 0x0, len = 0}, u_name = {{s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {
              s = 0x0, len = 0}, {s = 0x0, len = 0}}, u_val = {{s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}}, 
          u_params_no = 0}
        rt = <value optimized out>
        res = <value optimized out>
        status = 1
---Type <return> to continue, or q <return> to quit---
        uri = {
          s = 0x7d057b "sip:10.0.0.11;r2=on;lr>,<sip:xxx.xxx.xxx.xxx;r2=on;lr>,<sip:74.121.83.14;lr;ftag=sansay1350538227rdb48823>,<sip:[email protected]:5060;lr;transport=udp>\r\nMax-Forwards: 69\r\nContent-"..., len = 22}
        si = <value optimized out>
        __FUNCTION__ = "after_loose"
#21 0x00007fd3d8366cc6 in loose_route (_m=0x7fd3d9a6c310, _s1=<value optimized out>, _s2=<value optimized out>) at loose.c:889
        __FUNCTION__ = "loose_route"
#22 0x0000000000413415 in do_action (a=0x7fd3d98a2c20, msg=0x7fd3d9a6c310) at action.c:1715
        val_s = {s = 0x1129140 "", len = 24}
        aux_counter = <value optimized out>
        i = <value optimized out>
        avp_val = {n = 16560, s = {s = 0x40b0 <Address 0x40b0 out of bounds>, len = 1}}
        j = <value optimized out>
        key_number = <value optimized out>
        cdb_res = <value optimized out>
        adv_addr = {s = 0x0, len = -643372968}
        increment = <value optimized out>
        decrement = <value optimized out>
        avp_type = <value optimized out>
        aux = {s = 0x0, len = 0}
        cdb_reply = <value optimized out>
        val_number = <value optimized out>
        it = <value optimized out>
        avp_name = {n = 8193742, s = {s = 0x7d06ce "", len = 5109841}}
        ret = -5
        v = <value optimized out>
        sec = <value optimized out>
        usec = <value optimized out>
        to = <value optimized out>
        p = <value optimized out>
        tmp = <value optimized out>
        new_uri = <value optimized out>
        end = <value optimized out>
        crt = <value optimized out>
        len = <value optimized out>
        i = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        user = 0
        expires = 0
        vals = {{s = 0x7d06ce "", len = 8193273}, {s = 0x7d06ce "", len = -643372872}, {s = 0x7fd3d9a6cfc0 "\001", len = 5106359}, {
            s = 0x300000000 <Address 0x300000000 out of bounds>, len = 2479}, {s = 0x7fd3d996e5a0 "\017", len = -643382512}}
        result = {s = 0xa <Address 0xa out of bounds>, len = 1255725368}
        uri = {user = {s = 0x7fd3d9a733c0 "[email protected]", len = 39}, passwd = {s = 0x0, len = -645263696}, host = {s = 0x7fff4ad8d030 "", 
            len = -643382512}, port = {s = 0x35 <Address 0x35 out of bounds>, len = -643985336}, params = {s = 0xffffffff <Address 0xffffffff out of bounds>, len = 2}, 
          headers = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 1255723000}, port_no = 0, proto = 0, type = ERROR_URI_T, transport = {
            s = 0x410e74 "\211Ņ\300u\a\203\r\247\311\070", len = -643353664}, ttl = {s = 0x27 <Address 0x27 out of bounds>, len = 0}, user_param = {
            s = 0x45cd3d "\213C\024\351\017\377\377\377I;\b}\256\353\244AWAVAUATUSH\203\354\bI\211\375H\211\365H\205\377\017\204\332\001", len = -645262528}, maddr = {
            s = 0x7fd3d98a14b0 "\006", len = 1}, method = {s = 0x2 <Address 0x2 out of bounds>, len = 0}, lr = {s = 0x10 <Address 0x10 out of bounds>, len = 0}, r2 = {
            s = 0x100411181 <Address 0x100411181 out of bounds>, len = -645262160}, gr = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 0}, transport_val = {
            s = 0x10 <Address 0x10 out of bounds>, len = 1}, ttl_val = {s = 0x394029c95a "=\001\360\377\377s\005H\203\304\b\303H\213\r3\006/", len = 0}, user_param_val = {
            s = 0x41136d "L\213\244$\350\004", len = 0}, maddr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 0}, method_val = {s = 0x0, len = 1}, lr_val = {s = 0x0, 
            len = -1}, r2_val = {s = 0x0, len = 0}, gr_val = {s = 0x4d9f07 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = 1255724608}, u_name = {{s = 0x0, 
              len = 29}, {
              s = 0x7d048f ";tag=sansay1350538227rdb48823\r\nFrom: \"15105226868\" <sip:[email protected]>;tag=PECS.306.503\r\nCSeq: 2 BYE\r\nCall-ID: [email protected]\r\nRoute: <sip:10.0.0.17;lr;ftag=sansay135"..., len = 29}, {s = 0x4f7c59 "I\211\306H\205\300L\213T$(D\213\\$0\017\204\220\a", len = 17108272}, {
              s = 0x7fff4ad8d1b0 "", len = 8193032}, {s = 0x1 <Address 0x1 out of bounds>, len = 7973272}}, u_val = {{s = 0x7d06ce "", len = 8193167}, {s = 0x7fff4ad8d1b0 "", 
              len = 0}, {s = 0x7fd3d9a7c9c0 "\224\004}", len = 8193167}, {s = 0x3 <Address 0x3 out of bounds>, len = 8193278}, {s = 0x4e51d4 "H\205\300\017\204\273\001", 
              len = 7973272}}, u_params_no = 40711}
        next_hop = {user = {s = 0x394058d580 "\300\243", <incomplete sequence \350>, len = 0}, passwd = {s = 0x7fff00000003 <Address 0x7fff00000003 out of bounds>, len = 0}, 
          host = {s = 0xa <Address 0xa out of bounds>, len = -123678592}, port = {s = 0x1051220 "\020\023\005\001", len = 1255722476}, params = {
            s = 0x3000000ad <Address 0x3000000ad out of bounds>, len = 1255723008}, headers = {s = 0x300000003 <Address 0x300000003 out of bounds>, len = 1255722792}, 
          port_no = 52688, proto = 19160, type = 32767, transport = {s = 0x7fff4ad8cde0 "\001", len = 0}, ttl = {
            s = 0xfffffffe00000001 <Address 0xfffffffe00000001 out of bounds>, len = 1}, user_param = {s = 0x7fff4ad8cf10 "(\325\330J\377\177", len = 0}, maddr = {
            s = 0x7fff4ad8cfe0 "\300\063\247\331\323\177", len = 3}, method = {s = 0x3 <Address 0x3 out of bounds>, len = 0}, lr = {s = 0x0, len = 51}, r2 = {
            s = 0x39402c17c8 "\205\300u\t\307C8", len = 8403572}, gr = {s = 0x6 <Address 0x6 out of bounds>, len = 1255723240}, transport_val = {s = 0x7fd300000004 "", 
            len = 18452144}, ttl_val = {s = 0x7fd3d996d200 "\002", len = -643382512}, user_param_val = {s = 0x0, len = 4}, maddr_val = {s = 0x394058ee80 "", len = 16}, 
          method_val = {s = 0x4 <Address 0x4 out of bounds>, len = 0}, lr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 17108272}, r2_val = {
            s = 0x3 <Address 0x3 out of bounds>, len = 1255722976}, gr_val = {s = 0x39402c7897 "\213D$8H\201\304\070\002", len = -644427104}, u_name = {{
              s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 1380045053}, {s = 0xe7c44 <Address 0xe7c44 out of bounds>, len = -644423768}, {
              s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 14}, {s = 0x7fff00000001 <Address 0x7fff00000001 out of bounds>, len = 1255723240}, {
              s = 0x394029c95a "=\001\360\377\377s\005H\203\304\b\303H\213\r3\006/", len = 1255724328}}, u_val = {{s = 0x10041136d <Address 0x10041136d out of bounds>, 
              len = 17108272}, {s = 0x4d9f07 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = 1255723312}, {s = 0x1050c20 "", len = 1024}, {
              s = 0x1 <Address 0x1 out of bounds>, len = 1380045053}, {s = 0xe7c43 <Address 0xe7c43 out of bounds>, len = 0}}, u_params_no = 72}
---Type <return> to continue, or q <return> to quit---
        u = <value optimized out>
        port = <value optimized out>
        cmatch = <value optimized out>
        aitem = <value optimized out>
        adefault = <value optimized out>
        spec = <value optimized out>
        model = <value optimized out>
        val = {rs = {s = 0xf <Address 0xf out of bounds>, len = 1255725064}, ri = -1, flags = 0}
        pve = <value optimized out>
        name_s = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = -643382512}
        start = {tv_sec = 1380045053, tv_usec = 949317}
        end_time = -643382512
        route_params_bak = <value optimized out>
        route_params_number_bak = <value optimized out>
        __FUNCTION__ = "do_action"
#23 0x0000000000410e74 in run_action_list (a=<value optimized out>, msg=0x7fd3d9a6c310) at action.c:171
        ret = <value optimized out>
        t = 0x7fd3d98a2c20
#24 0x0000000000488750 in eval_elem (e=0x7fd3d98a2cf8, msg=0x7fd3d9a6c310, val=0x0) at route.c:1499
        uri = {user = {s = 0xfffffffffffffffc <Address 0xfffffffffffffffc out of bounds>, len = 1}, passwd = {s = 0x7fff4ad8e20c "", len = 1255725184}, host = {
            s = 0x7fff4ad8d870 "\377\377\377\377\323\177", len = 1255723984}, port = {s = 0xffffffff <Address 0xffffffff out of bounds>, len = 8}, params = {
            s = 0x7fff4ad8d3d0 "0.035800", len = 1076194490}, headers = {s = 0x3030383533302e30 <Address 0x3030383533302e30 out of bounds>, len = 1255724032}, port_no = 54496, 
          proto = 19160, type = 32767, transport = {s = 0x4674ba "H\211\305H\205\300\017\204\224", len = 0}, ttl = {s = 0x7fd3d99d9d60 "\002", len = 1380045053}, user_param = {
            s = 0xe464f <Address 0xe464f out of bounds>, len = -680016960}, maddr = {s = 0x4d9f07 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = 0}, method = {
            s = 0x1 <Address 0x1 out of bounds>, len = 1024}, lr = {s = 0x6b <Address 0x6b out of bounds>, len = 1}, r2 = {s = 0x4d48d9 "I\211\304H\213\r\235\273\060", 
            len = 0}, gr = {s = 0x18 <Address 0x18 out of bounds>, len = 200}, transport_val = {s = 0x2 <Address 0x2 out of bounds>, len = 1}, ttl_val = {s = 0x7fd3d996e208 "", 
            len = 1255724320}, user_param_val = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 53}, maddr_val = {s = 0x35 <Address 0x35 out of bounds>, 
            len = 7973272}, method_val = {s = 0x4d4e64 "H\205\300t\031H\213\065\230\204,", len = 200}, lr_val = {s = 0x7fd300000002 "", len = -644423160}, r2_val = {
            s = 0x467c6b "\205\300\017\210B\001", len = 200}, gr_val = {s = 0x2 <Address 0x2 out of bounds>, len = 0}, u_name = {{s = 0x6b <Address 0x6b out of bounds>, 
              len = -644422976}, {s = 0x7fd3d996e2c0 "5", len = 1}, {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = -644423184}, {s = 0x410966 "\270\001", 
              len = 0}, {s = 0x100000000 <Address 0x100000000 out of bounds>, len = -644422976}}, u_val = {{s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 53}, {
              s = 0x7fff4ad8db78 "\001", len = 1}, {s = 0x394029c95a "=\001\360\377\377s\005H\203\304\b\303H\213\r3\006/", len = 1380045053}, {
              s = 0xe7c44 <Address 0xe7c44 out of bounds>, len = 0}, {s = 0xe8a3c0 "`\213", <incomplete sequence \350>, len = 0}}, u_params_no = 54736}
        ret = -5
        ival = <value optimized out>
        lval = {rs = {s = 0x394058d580 "\300\243", <incomplete sequence \350>, len = 0}, ri = 1, flags = 4}
---Type <return> to continue, or q <return> to quit---
        rval = {rs = {s = 0x7fff4ad8d9a0 "", len = 0}, ri = 1380045053, flags = 0}
        p = <value optimized out>
        i = <value optimized out>
        n = <value optimized out>
        __FUNCTION__ = "eval_elem"
#25 0x000000000048a0de in eval_expr (e=0x7fd3d98a2cf8, msg=0x7fd3d9a6c310, val=0x0) at route.c:1844
        rec_lev = 2
        ret = <value optimized out>
        __FUNCTION__ = "eval_expr"
#26 0x000000000048a0a4 in eval_expr (e=0x7fd3d98a2d48, msg=0x7fd3d9a6c310, val=0x0) at route.c:1865
        rec_lev = 2
        ret = <value optimized out>
        __FUNCTION__ = "eval_expr"
#27 0x00000000004131b3 in do_action (a=0x7fd3d98a67d0, msg=0x7fd3d9a6c310) at action.c:993
        val_s = {s = 0x3 <Address 0x3 out of bounds>, len = -704141325}
        aux_counter = <value optimized out>
        i = <value optimized out>
        avp_val = {n = 30, s = {s = 0x1e <Address 0x1e out of bounds>, len = -704141355}}
        j = <value optimized out>
        key_number = <value optimized out>
        cdb_res = <value optimized out>
        adv_addr = {
          s = 0x7fd1d607a802 "To: \"512418436725035\" <sip:[email protected]>\r\nCall-ID: ae2d1fc0-9fe4-1231-afb3-639b1710d1b9\r\nCSeq: 49686458 INVITE\r\nContact: <sip:[email protected]:6020>\r\nContent-Type: applicatio"..., len = 5205424}
        increment = <value optimized out>
        decrement = <value optimized out>
        avp_type = <value optimized out>
        aux = {s = 0x18 <Address 0x18 out of bounds>, len = -704141360}
        cdb_reply = <value optimized out>
        val_number = <value optimized out>
        it = <value optimized out>
        avp_name = {n = 1, s = {s = 0x1 <Address 0x1 out of bounds>, len = -704141360}}
        ret = -5
        v = <value optimized out>
        sec = <value optimized out>
        usec = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        to = <value optimized out>
        p = <value optimized out>
        tmp = <value optimized out>
        new_uri = <value optimized out>
        end = <value optimized out>
        crt = <value optimized out>
        len = <value optimized out>
        i = <value optimized out>
        user = 0
        expires = 0
        vals = {{s = 0x2 <Address 0x2 out of bounds>, len = 2}, {s = 0x79a998 "\230\064\374\324\321\177", len = 4759774}, {s = 0x7fd3d996e6c8 "\001", len = -704141310}, {
            s = 0xd607a7ee <Address 0xd607a7ee out of bounds>, len = 1}, {s = 0x7fd3d996fa88 "\016", len = 1255726120}}
        result = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 8193740}
        uri = {user = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 1255725416}, passwd = {s = 0x0, len = 4263540}, host = {
            s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 13}, port = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = -645268464}, params = {
            s = 0x0, len = 0}, headers = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 13}, port_no = 49936, proto = 55718, type = 32723, transport = {
            s = 0x7fd3d98a0ab8 "\002", len = 0}, ttl = {s = 0x488750 "H\205\333t\n\307C\024\030", len = 0}, user_param = {s = 0x0, len = 0}, maddr = {
            s = 0x3000000002 <Address 0x3000000002 out of bounds>, len = 91}, method = {s = 0x6e00000077 <Address 0x6e00000077 out of bounds>, len = 103472}, lr = {
            s = 0x115ff40 "Outbound\240\337\031\001", len = 10}, r2 = {s = 0x394058ee80 "", len = -704414008}, gr = {s = 0x7fff4ad8dadf "", len = 1}, transport_val = {
            s = 0x394027a911 "H\205\300H\211\303t7\203=P}1", len = 18218816}, ttl_val = {s = 0xa <Address 0xa out of bounds>, len = 18197008}, user_param_val = {
            s = 0x3940281042 "H\205\300t!H\211\352H\211\336H\213l$\020H\213\\$\bH\211\307H\203\304\030齇", len = 1}, maddr_val = {s = 0x115f990 "\330\362X@9", 
            len = 1380045053}, method_val = {s = 0xe4651 <Address 0xe4651 out of bounds>, len = -704414008}, lr_val = {s = 0x115f990 "\330\362X@9", len = 8194156}, r2_val = {
            s = 0x7d099c "", len = -643335752}, gr_val = {s = 0x4defce "H\211\303H\205\300\017\204q\005", len = 1255725791}, u_name = {{s = 0x115aa10 "\003", len = 1255725768}, 
            {
              s = 0x11549a0 "ode\": \"200\", \"sip_reason\": \"OK\", \"time\": 1380045036, \"from_did\": \"19499882504\", \"to_did\": \"15105226868\", \"lrn_did\": \"\", \"direction\": \"Outbound\", \"src_ip\": \"74.121.83.14\", \"dst_ip\": \"68.68.124.62\", \"te"..., len = 18175632}, {s = 0x0, len = 18175632}, {s = 0x11a7d40 "\004", len = 1380045053}, {
              s = 0xe4650 <Address 0xe4650 out of bounds>, len = -644435240}}, u_val = {{s = 0x7fd3d9a74428 "+", len = -643382512}, {
              s = 0x7d0871 "\r\nv=0\r\no=tghs_21 212504847 212504847 IN IP4 154.50.206.75\r\ns=tghs\r\nc=IN IP4 154.50.206.75\r\nt=0 0\r\nm=audio 17602 RTP/AVP 18 0 101\r\na=rtpmap:18 G729/8000\r\na=fmtp:18 annexb=no\r\na=rtpmap:0 PCMU/8000\r\na=rt"..., len = -1}, {s = 0x4d9f07 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = 8194460}, {
              s = 0x4dff72 "\351\315\371\377\377H\213\205\230\001", len = 29}, {
              s = 0x7fd1d607a7ee ";tag=aFUHeF56gcF3H\r\nTo: \"512418436725035\" <sip:[email protected]>\r\nCall-ID: ae2d1fc0-9fe4-1231-afb3-639b1710d1b9\r\nCSeq: 49686458 INVITE\r\nContact: <sip:[email protected]:6020>\r\nCont"..., len = 29}}, u_params_no = 31833}
        next_hop = {user = {s = 0x7fff4ad8d9d0 "[", len = 1255725136}, passwd = {s = 0x1 <Address 0x1 out of bounds>, len = 1255725264}, host = {
            s = 0x63 <Address 0x63 out of bounds>, len = -704414549}, port = {s = 0x7fff4ad8d9d0 "[", len = 1076886144}, params = {
            s = 0x5241d0fd <Address 0x5241d0fd out of bounds>, len = 935505}, headers = {s = 0x7fff4ad8d9d0 "[", len = 1255725520}, port_no = 55760, proto = 19160, 
          type = 32767, transport = {s = 0x7fff4ad8d9d1 "", len = 1255725619}, ttl = {s = 0x7fff4ad8d9d0 "[", len = 1255725619}, user_param = {s = 0x0, len = 0}, maddr = {
---Type <return> to continue, or q <return> to quit---
            s = 0x7fd3d996e5a0 "\017", len = -1}, method = {s = 0xd <Address 0xd out of bounds>, len = -643382512}, lr = {s = 0x7fff4ad8d808 "", len = 7973272}, r2 = {
            s = 0x410e74 "\211Ņ\300u\a\203\r\247\311\070", len = 18190577}, gr = {s = 0x0, len = 0}, transport_val = {s = 0x0, len = 1380045053}, ttl_val = {
            s = 0xe7c3a <Address 0xe7c3a out of bounds>, len = -643382512}, user_param_val = {s = 0xd <Address 0xd out of bounds>, len = -643382512}, maddr_val = {
            s = 0x7fd3d996e678 "\002", len = 1380045053}, method_val = {s = 0xe7c3e <Address 0xe7c3e out of bounds>, len = 1255725472}, lr_val = {s = 0x0, len = 1255725791}, 
          r2_val = {
            s = 0x7fd3d9a7db2e ", \"pp_ok\": 0, \"effective_date\": \"2013-08-19 00:00:00\", \"min_duration\": 6, \"increment\": 6, \"surcharge\": 0, \"priority_position\": 0, \"effective_jurisdiction\": \"E\" } ]", len = -1}, gr_val = {s = 0x3940269945 "H\213\234$", <incomplete sequence \370>, len = -72515583}, u_name = {{s = 0x394058c740 "", 
              len = 1380045053}, {s = 0xe7c34 <Address 0xe7c34 out of bounds>, len = 1255725776}, {s = 0x7fd3db88f6a8 "\v", len = 0}, {
              s = 0x7fd3db88f6b0 "\214\346\363\316\321\177", len = 1380045053}, {s = 0xe7c3e <Address 0xe7c3e out of bounds>, len = 48}}, u_val = {{s = 0x7fff4ad8d9b0 "", 
              len = 1255725296}, {s = 0x7fd3d989fb38 "\017", len = -1}, {s = 0xd <Address 0xd out of bounds>, len = -643382512}, {s = 0x7fff4ad8d938 "h\331\330J\377\177", 
              len = 0}, {s = 0x7fd3d98a09e0 "\017", len = -1}}, u_params_no = 13}
        u = <value optimized out>
        port = <value optimized out>
        cmatch = <value optimized out>
        aitem = <value optimized out>
        adefault = <value optimized out>
        spec = <value optimized out>
        model = <value optimized out>
        val = {rs = {
            s = 0x7fd1d607a7ee ";tag=aFUHeF56gcF3H\r\nTo: \"512418436725035\" <sip:[email protected]>\r\nCall-ID: ae2d1fc0-9fe4-1231-afb3-639b1710d1b9\r\nCSeq: 49686458 INVITE\r\nContact: <sip:[email protected]:6020>\r\nCont"..., len = 1255727560}, ri = 1, flags = 0}
        pve = <value optimized out>
        name_s = {s = 0x0, len = -643337784}
        start = {tv_sec = 1380045053, tv_usec = 949317}
        end_time = -643382512
        route_params_bak = <value optimized out>
        route_params_number_bak = <value optimized out>
        __FUNCTION__ = "do_action"
#28 0x0000000000410e74 in run_action_list (a=<value optimized out>, msg=0x7fd3d9a6c310) at action.c:171
        ret = <value optimized out>
        t = 0x7fd3d98a67d0
#29 0x00000000004163b5 in do_action (a=0x7fd3d98a6980, msg=0x7fd3d9a6c310) at action.c:1010
        val_s = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 8193024}
        aux_counter = <value optimized out>
        i = <value optimized out>
        avp_val = {n = -643347888, s = {s = 0x7fd3d9a74a50 "\001", len = 1}}
---Type <return> to continue, or q <return> to quit---
        j = <value optimized out>
        key_number = <value optimized out>
        cdb_res = <value optimized out>
        adv_addr = {s = 0x10007d058f <Address 0x10007d058f out of bounds>, len = -689236360}
        increment = <value optimized out>
        decrement = <value optimized out>
        avp_type = <value optimized out>
        aux = {s = 0x7d06ce "", len = 5107201}
        cdb_reply = <value optimized out>
        val_number = <value optimized out>
        it = <value optimized out>
        avp_name = {n = 8193742, s = {s = 0x7d06ce "", len = -643335752}}
        ret = 1
        v = 1
        sec = <value optimized out>
        usec = <value optimized out>
        to = <value optimized out>
        p = <value optimized out>
        tmp = <value optimized out>
        new_uri = <value optimized out>
        end = <value optimized out>
        crt = <value optimized out>
        len = <value optimized out>
        i = <value optimized out>
        user = 0
        expires = 0
        vals = {{s = 0x7fd3d9a74a50 "\001", len = 5264013}, {s = 0x79a998 "\230\064\374\324\321\177", len = 4263540}, {s = 0x200a6c300 <Address 0x200a6c300 out of bounds>, 
            len = 7973272}, {s = 0x7fd1d6eb1c68 "\350<\274\326\321\177", len = -662747191}, {
            s = 0x7fd3d9a7bd10 "{ \"leg\": \"A\", \"subscriber\": \"XXX\", \"method\": \"INVITE\", \"from_tag\": \"sansay1350538227rdb48823\", \"to_tag\": \"PECS.306.503\", \"callid\": \"[email protected]\", \"sip_code\": \"2"..., len = 1367}}
        result = {s = 0x7e0420 "P0k\325\321\177", len = 8193249}
        uri = {user = {s = 0x7fd1d8cef168 "\337", <incomplete sequence \371>, len = -665214813}, passwd = {s = 0x7fff4ad8e040 "\210\340\330J\377\177", len = -684644506}, 
          host = {s = 0x0, len = -651567192}, port = {s = 0x0, len = 0}, params = {s = 0x0, len = -657526424}, headers = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, 
            len = 128}, port_no = 5752, proto = 55019, type = 32721, transport = {s = 0x7fd1d8cef168 "\337", <incomplete sequence \371>, len = -714256936}, ttl = {
            s = 0x80 <Address 0x80 out of bounds>, len = -689236360}, user_param = {s = 0x7fff4ad8e050 "h\361\316\330\321\177", len = -689236360}, maddr = {
            s = 0x7fd3d87f3715 "H\203\304x[]A\\A]A^A_\303AWAVAUATUSH\203\354HH\211\363H\203~p", len = 41}, method = {s = 0x2d800000000 <Address 0x2d800000000 out of bounds>, 
---Type <return> to continue, or q <return> to quit---
            len = -643760632}, lr = {s = 0x7fd3d9a0fe08 "\330\003\241\331\323\177", len = 1255727240}, r2 = {s = 0x7e0420 "P0k\325\321\177", len = -657526424}, gr = {
            s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 183}, transport_val = {s = 0x7fd1d56d4de8 "", len = 1255727568}, ttl_val = {s = 0x7fd1d6eb1790 "\001", 
            len = -689236360}, user_param_val = {s = 0x7fff4ad8e0d0 "h\361\316\330\321\177", len = -689236360}, maddr_val = {s = 0x7fd1d6eb1678 "", len = -689230144}, 
          method_val = {s = 0x400 <Address 0x400 out of bounds>, len = 1}, lr_val = {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 183}, r2_val = {
            s = 0x7fd3d87f37ad "L\213\253", <incomplete sequence \360>, len = -657526424}, gr_val = {
            s = 0x7fd3d9a7bd10 "{ \"leg\": \"A\", \"subscriber\": \"XXX\", \"method\": \"INVITE\", \"from_tag\": \"sansay1350538227rdb48823\", \"to_tag\": \"PECS.306.503\", \"callid\": \"[email protected]\", \"sip_code\": \"2"..., len = 1367}, u_name = {{s = 0x7fd1d6eb1798 "\002", len = 1}, {
              s = 0x7fff4ad8e108 "\024\343~\330\323\177", len = 183}, {s = 0x7fd3d87ee314 "\211Ã\370\377\017\204J\001", len = 183}, {
              s = 0x7fd3d8a36910 "\370^\374\324\321\177", len = -689236360}, {s = 0x557 <Address 0x557 out of bounds>, len = 20}}, u_val = {{
              s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = 183}, {s = 0x7fd3d8811185 "\351\323\376\377\377L\213\005\317\001!", len = -643382512}, {
              s = 0x79a998 "\230\064\374\324\321\177", len = -643382512}, {s = 0x4d9f07 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = 8193134}, {
              s = 0x7fd3d9a74a50 "\001", len = 8193076}}, u_params_no = 1742}
        next_hop = {user = {s = 0x0, len = 0}, passwd = {s = 0x0, len = 2}, host = {s = 0x7fd3d87cc460 "է\a\326\321\177", len = -682291720}, port = {
            s = 0x79a998 "\230\064\374\324\321\177", len = -662911920}, params = {s = 0x7fff4ad8de50 "", len = -665230711}, headers = {s = 0x7fd3d87cc460 "է\a\326\321\177", 
            len = -662911920}, port_no = 0, proto = 0, type = ERROR_URI_T, transport = {s = 0x0, len = 0}, ttl = {s = 0x0, len = 0}, user_param = {s = 0x0, len = 0}, maddr = {
            s = 0x0, len = 0}, method = {s = 0x0, len = 0}, lr = {s = 0x7fff4ad8df40 "\022\a}", len = -662911904}, r2 = {s = 0x0, len = 0}, gr = {s = 0x0, len = 0}, 
          transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x7fd100000000 <Address 0x7fd100000000 out of bounds>, len = -710504152}, user_param_val = {
            s = 0x8 <Address 0x8 out of bounds>, len = -651651944}, maddr_val = {s = 0x7fd3d85bc989 "H\211\303H\213=\025\340 ", len = -643382512}, method_val = {
            s = 0x2 <Address 0x2 out of bounds>, len = -662911920}, lr_val = {s = 0x7fd1d7e78c98 "", len = 0}, r2_val = {s = 0x7fff4ad8dfd4 "\323\177", len = 12}, gr_val = {
            s = 0x7fd3d8597f65 "\205\300\017\205d\003", len = -662911888}, u_name = {{s = 0x4d9f07 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = 1024}, {
              s = 0x7fd1d7550df8 "\003", len = 2}, {s = 0x7fd3d9a6c310 "\254", <incomplete sequence \373>, len = -657526424}, {s = 0x7fff4ad8e050 "h\361\316\330\321\177", 
              len = -689236360}, {s = 0x7fd3d859899d "\213\204$\274", len = 0}}, u_val = {{s = 0x0, len = 0}, {s = 0x7fff4ad8e040 "\210\340\330J\377\177", len = 8193810}, {
              s = 0xc <Address 0xc out of bounds>, len = -684803936}, {s = 0x7fd3d730f700 ")\342W\330\323\177", len = 200}, {s = 0x7fd1d7550df8 "\003", len = -689236360}}, 
          u_params_no = 49936}
        u = <value optimized out>
        port = <value optimized out>
        cmatch = <value optimized out>
        aitem = <value optimized out>
        adefault = <value optimized out>
        spec = <value optimized out>
        model = <value optimized out>
        val = {rs = {s = 0x7fd1d6eb1600 "tion\":6,\"increment\":6,\"surcharge\":0,\"priority_position\":0,\"effective_jurisdiction\":\"E\"}]", len = 1255727648}, ri = 960, 
          flags = 0}
        pve = <value optimized out>
        name_s = {s = 0x0, len = -660450752}
        start = {tv_sec = 1380045053, tv_usec = 949310}
---Type <return> to continue, or q <return> to quit---
        end_time = -643382512
        route_params_bak = <value optimized out>
        route_params_number_bak = <value optimized out>
        __FUNCTION__ = "do_action"
#30 0x0000000000410e74 in run_action_list (a=<value optimized out>, msg=0x7fd3d9a6c310) at action.c:171
        ret = <value optimized out>
        t = 0x7fd3d98a6980
#31 0x000000000041864d in run_actions (a=0x7fd3d98a0700, msg=0x7fd3d9a6c310) at action.c:136
No locals.
#32 run_top_route (a=0x7fd3d98a0700, msg=0x7fd3d9a6c310) at action.c:211
        bl_last_msg_id = 0
        bk_action_flags = 0
        bk_rec_lev = 0
        ret = <value optimized out>
#33 0x0000000000474a55 in receive_msg (buf=<value optimized out>, len=<value optimized out>, rcv_info=0x7fff4ad8e4a0) at receive.c:169
        msg = 0x7fd3d9a6c310
        start = {tv_sec = 1380045053, tv_usec = 949296}
        __FUNCTION__ = "receive_msg"
#34 0x00000000004d3640 in udp_rcv_loop () at udp_server.c:424
        len = <value optimized out>
        buf = "BYE sip:[email protected]:5060 SIP/2.0\r\nVia: SIP/2.0/UDP 10.0.0.17:5061;branch=z9hG4bKff75.f5ef6004.0\r\nTo: \"\" <sip:[email protected]>;tag=sansay1350538227rdb48823\r\nFrom: \"15105226868\" <sip:1"...
        tmp = <value optimized out>
        from = 0x7fd3d9a21630
        fromlen = 16
        ri = {src_ip = {af = 2, len = 4, u = {addrl = {245098348554, 0}, addr32 = {285212682, 57, 0, 0}, addr16 = {10, 4352, 57, 0, 0, 0, 0, 0}, 
              addr = "\n\000\000\021\071\000\000\000\000\000\000\000\000\000\000"}}, dst_ip = {af = 2, len = 4, u = {addrl = {285212682, 0}, addr32 = {285212682, 0, 0, 0}, 
              addr16 = {10, 4352, 0, 0, 0, 0, 0, 0}, addr = "\n\000\000\021", '\000' <repeats 11 times>}}, src_port = 5061, dst_port = 5060, proto = 1, proto_reserved1 = 0, 
          proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\023\305\n\000\000\021\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50451, 
              sin_addr = {s_addr = 285212682}, sin_zero = "\000\000\000\000\000\000\000"}}, bind_address = 0x7fd3d9a0fdc0}
        p = <value optimized out>
        msg = {
          s = 0x7d0400 "BYE sip:[email protected]:5060 SIP/2.0\r\nVia: SIP/2.0/UDP 10.0.0.17:5061;branch=z9hG4bKff75.f5ef6004.0\r\nTo: \"\" <sip:[email protected]>;tag=sansay1350538227rdb48823\r\nFrom: \"15105226868\" <sip:1"..., len = 718}
        __FUNCTION__ = "udp_rcv_loop"
#35 0x00000000004338e0 in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:917
---Type <return> to continue, or q <return> to quit---
        i = 2
        pid = <value optimized out>
        si = <value optimized out>
        startup_done = 0x7fd1d5432680
        chd_rank = 19
        rc = <value optimized out>
        load_p = 0x7fd1d5433018
#36 main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1598
        cfg_log_stderr = <value optimized out>
        cfg_stream = <value optimized out>
        c = <value optimized out>
        r = <value optimized out>
        tmp = 0x7fff4ad8f611 ""
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        options = 0x54d310 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
        ret = -1
        seed = 439456342
        rfd = <value optimized out>
        __FUNCTION__ = "main"

Segfault on DROUTING

We got two similar segfaults on sept 26th and 28th.

version: opensips 1.8.3-notls (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_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_lt, epoll_et, sigio_rt, select.
svnrevision: 2:10021M
@(#) $Id: main.c 9791 2013-02-15 10:15:25Z bogdan_iancu $
main.c compiled on 22:07:28 Jul 2 2013 with gcc 4.4.5

Analyzing the core dump, the error ocurred when selecting the next gateway. The gateway 36 (print *gw) selected seemed to be previously deleted (it was not present in the table). Anyway, all tables were reloaded after the gw deletion.
#1 0x00007fdb58ce017c in get_gw_by_id (gw=0x7fdb14bac5d0, id=0x7fffc3cfaa00) at prefix_tree.c:211

No locals.
#2 0x00007fdb58cdf626 in use_next_gw (msg=0x7fdb5ac1fe00) at drouting.c:1037

    avp = <value optimized out>
    avp_ru = 0x7fdb15648da0
    wl_list = {type = 0, v = {ival = 0, sval = {s = 0x0, len = 1546919296}, pvs = 0x0, pve = 0x0}}
    grp = {type = 344683528, u = {grp_id = 32731, avp_id = {name = 32731, type = 25008}}}
    val = {n = 142539450, s = {s = 0x7fdb087efaba <Address 0x7fdb087efaba out of bounds>, len = 2}}
    ruri = {s = 0x7fdb15648dc0 "sip:[email protected]", len = 35}
    __FUNCTION__ = "use_next_gw"

#0 0x00007f3d387823ec in ?? () from /lib/libc.so.6

No symbol table info available.
#1 0x00007f3d349dc17c in get_gw_by_id (gw=0x7f3cf28dc718, id=0x7fffe4b6b360) at prefix_tree.c:211

No locals.
#2 0x00007f3d349db626 in use_next_gw (msg=0x7f3d3691be00) at drouting.c:1037

    avp = <value optimized out>
    avp_ru = 0x7f3cf3476d80
    wl_list = {type = 0, v = {ival = 0, sval = {s = 0x0, len = -262458360}, pvs = 0x0, pve = 0x0}}
    grp = {type = -262458360, u = {grp_id = 32572, avp_id = {name = 32572, type = 25576}}}
    val = {n = 0, s = {s = 0x0, len = 3}}
    ruri = {s = 0x7f3cf3476da0 "sip:[email protected]", len = 30}
    __FUNCTION__ = "use_next_gw"

(gdb) print *gw
$1 = {_id = 36, id = {s = 0x7f3cf28dcac8 "101186.226.87.16200255inbound=routing; gwuser=agitel_fixo; gwdomain=otimatelecom.com.br", len = 3}, type = 0, ip_str = {
s = 0x7f3cf28dcacb "186.226.87.16200255inbound=routing; gwuser=agitel_fixo; gwdomain=otimatelecom.com.br", len = 13}, pri = {
s = 0x7f3cf28dcad8 "200255inbound=routing; gwuser=agitel_fixo; gwdomain=otimatelecom.com.br", len = 6}, strip = 6, attrs = {
s = 0x7f3cf28dcade "inbound=routing; gwuser=agitel_fixo; gwdomain=otimatelecom.com.br", len = 65}, ips = {{af = 2, len = 4, u = {addrl = {274195130, 0}, addr32 = {274195130, 0, 0,
0}, addr16 = {58042, 4183, 0, 0, 0, 0, 0, 0}, addr = "\272\342W\020", '\000' <repeats 11 times>}}, {af = 0, len = 0, u = {addrl = {0, 0}, addr32 = {0, 0, 0, 0}, addr16 = {0,
0, 0, 0, 0, 0, 0, 0}, addr = '\000' <repeats 15 times>}} <repeats 31 times>}, ports = {5060, 0 <repeats 31 times>}, ips_no = 1, next = 0x7f3cf41db238, flags = 0}

NOTIFications can only be done on existing TCP connections

If the TCP connection is down, or if the NOTIFY comes from a redundant server, then it will not work. The phone will not be notified of this, and its subscriptions will have to expire leaving it in an unconsistant state for a while. This looks dramatic to us.

See:
#17

Reporting it here so that everyone knows there is a problem. I suppose that the new async TCP code will allow reverting that commit.

opensips 1.8.1-tls crash issue

hi,all

I found some crash issue with opensips 1.8.1

core file 1:

(gdb) bt full
#0  0x0000003d9d8bb7f1 in EVP_MD_CTX_cleanup () from /usr/lib64/libcrypto.so.10
No symbol table info available.
#1  0x0000003d9d86c05d in HMAC_CTX_cleanup () from /usr/lib64/libcrypto.so.10
No symbol table info available.
#2  0x0000003d9d86cb3e in ?? () from /usr/lib64/libcrypto.so.10
No symbol table info available.
#3  0x0000003d9d8c777c in EVP_PKEY_CTX_free () from /usr/lib64/libcrypto.so.10
No symbol table info available.
#4  0x0000003d9d8c7a74 in EVP_PKEY_CTX_dup () from /usr/lib64/libcrypto.so.10
No symbol table info available.
#5  0x0000003d9d8bb9bd in EVP_MD_CTX_copy_ex () from /usr/lib64/libcrypto.so.10
No symbol table info available.
#6  0x0000003311e2b9a0 in tls1_mac () from /usr/lib64/libssl.so.10
No symbol table info available.
#7  0x0000003311e25bbe in ssl3_read_bytes () from /usr/lib64/libssl.so.10
No symbol table info available.
#8  0x0000003311e22270 in ?? () from /usr/lib64/libssl.so.10
No symbol table info available.
#9  0x000000000054c10a in _tls_read (c=0x7f12bd8e48e0) at tls/tls_server.c:509
        ret = <value optimized out>
        err = <value optimized out>
        ssl = 0x7f12bd96d910
#10 tls_read (c=0x7f12bd8e48e0) at tls/tls_server.c:854
        bytes_free = 65535
        r = 0x7f12bd8e4958
        fd = 31
        read = 65535
        __FUNCTION__ = "tls_read"
#11 0x00000000004b2704 in tcp_read_headers (c=0x7f12bd8e48e0) at tcp_read.c:191
        remaining = <value optimized out>
        bytes = <value optimized out>
        p = <value optimized out>
        r = 0x7f12bd8e4958
        __FUNCTION__ = "tcp_read_headers"
#12 0x00000000004b2b61 in tcp_read_req (con=0x7f12bd8e48e0, bytes_read=0x7fffa7cc444c) at tcp_read.c:462
        bytes = <value optimized out>
        total_bytes = <value optimized out>
---Type <return> to continue, or q <return> to quit--- 
        resp = 0
        size = <value optimized out>
        req = 0x7f12bd8e4958
        c = <value optimized out>
        __FUNCTION__ = "tcp_read_req"
#13 0x00000000004b32e0 in handle_io (fm=0x7f12c2ac3980, idx=-1) at tcp_read.c:817
        ret = <value optimized out>
        n = <value optimized out>
        con = 0x7f12bd8e48e0
        s = <value optimized out>
        resp = <value optimized out>
        __FUNCTION__ = "handle_io"
#14 0x00000000004b5294 in io_wait_loop_epoll (unix_sock=<value optimized out>) at io_wait.h:728
        n = 1
        r = <value optimized out>
#15 tcp_receive_loop (unix_sock=<value optimized out>) at tcp_read.c:922
        __FUNCTION__ = "tcp_receive_loop"
#16 0x00000000004a4d64 in tcp_init_children (chd_rank=0x7b0808, startup_done=0x0) at tcp_main.c:1846
        r = <value optimized out>
        reader_fd = {26, 28}
        pid = <value optimized out>
        si = <value optimized out>
        load_p = 0x7f12bd6ccbd0
        __FUNCTION__ = "tcp_init_children"
#17 0x0000000000432b99 in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:953
        i = <value optimized out>
        pid = <value optimized out>
        si = 0x0
        startup_done = 0x0
        chd_rank = 10
        rc = <value optimized out>
        load_p = 0x7f12bd6ccac0
#18 main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1541
        cfg_log_stderr = <value optimized out>
        cfg_stream = <value optimized out>
        c = <value optimized out>
        r = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        tmp = 0xff <Address 0xff out of bounds>
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        options = 0x55add8 "f:cCm:M:b:l:n:N:rRvdDETSVhw:t:u:g:P:G:W:o:"
        ret = -1
        seed = 1633377465
        rfd = <value optimized out>
        __FUNCTION__ = "main"

core file 2:

(gdb) bt full
#0  0x0000000000000000 in ?? ()
No symbol table info available.
#1  0x0000003311e2b98b in tls1_mac () from /usr/lib64/libssl.so.10
No symbol table info available.
#2  0x0000003311e250d6 in ?? () from /usr/lib64/libssl.so.10
No symbol table info available.
#3  0x0000003311e251e3 in ssl3_dispatch_alert () from /usr/lib64/libssl.so.10
No symbol table info available.
#4  0x0000003311e224c3 in ssl3_shutdown () from /usr/lib64/libssl.so.10
No symbol table info available.
#5  0x000000000054a2c0 in tls_shutdown (c=0x7fdfbce57760, fd=<value optimized out>) at tls/tls_server.c:410
        ret = <value optimized out>
        err = <value optimized out>
        ssl = 0x7fdfbce520c8
#6  tls_close (c=0x7fdfbce57760, fd=<value optimized out>) at tls/tls_server.c:682
        __FUNCTION__ = "tls_close"
#7  0x00000000004a9a5b in tcpconn_destroy (tcpconn=0x7fdfbce57760) at tcp_main.c:1104
        fd = 38
        __FUNCTION__ = "tcpconn_destroy"
#8  0x00000000004ae058 in handle_tcp_child (tcp_c=0x7fdfc218ed54, fd_i=<value optimized out>) at tcp_main.c:1302
        tcpconn = 0x7fdfbce57760
        response = {140598923589472, -2}
        cmd = -2
        bytes = 16
        __FUNCTION__ = "handle_tcp_child"
#9  0x00000000004af8c8 in io_wait_loop_epoll () at io_wait.h:728
        n = 1
#10 tcp_main_loop () at tcp_main.c:1616
        si = <value optimized out>
        r = <value optimized out>
        __FUNCTION__ = "tcp_main_loop"
#11 0x0000000000432d7e in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:982
        i = <value optimized out>
        pid = <value optimized out>
        si = <value optimized out>
        startup_done = 0x0
        chd_rank = 12
---Type <return> to continue, or q <return> to quit--- 
        rc = <value optimized out>
        load_p = 0x7fdfbcda2ac0
#12 main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1541
        cfg_log_stderr = <value optimized out>
        cfg_stream = <value optimized out>
        c = <value optimized out>
        r = <value optimized out>
        tmp = 0xff <Address 0xff out of bounds>
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        options = 0x55add8 "f:cCm:M:b:l:n:N:rRvdDETSVhw:t:u:g:P:G:W:o:"
        ret = -1
        seed = 2123405531
        rfd = <value optimized out>
        __FUNCTION__ = "main"
(gdb) 

Dispatcher probing fails to match a 405 reply code.

A carrier (LEVEL3) responds to dispatcher OPTIONS requests with a 405 Method Not Allowed.

Added 405 to the list of options_reply_codes as follows: modparam("dispatcher", "options_reply_codes", "501, 405, 403, 200")

The destinations receiving the 405's continued to remain in a pending state.

Debug logging was turned on and a portion of it is copied below. Internally, OpenSIPS thinks that the result of the OPTIONS was a 408, NOT a 405.

Success was achieved by adding 408 to the list of options_reply_codes.

Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:local_reply: branch=0, save=0, winner=0
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:local_reply: local transaction completed
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:run_trans_callbacks: trans=0x7f1527524a70, callback type 256, id 0 entered
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:dispatcher:ds_options_callback: OPTIONS-Request was finished with code 408 (to sip:4.55.19.33:5060, group 2)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:dispatcher:ds_set_state: no event sent
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:insert_timer_unsafe: [2]: 0x7f1527524af0 (65)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:final_response_handler: done
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:timer_routine: timer routine:0,tl=0x7f15275284a0 next=0x7f152752bc80, timeout=60
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:final_response_handler: Cancel sent out, sending 408 (0x7f1527528250)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:t_should_relay_response: T_code=0, new_code=408
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:t_pick_branch: picked branch 0, code 408 (prio=800)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:local_reply: branch=0, save=0, winner=0
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:local_reply: local transaction completed
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:run_trans_callbacks: trans=0x7f1527528250, callback type 256, id 0 entered
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]:

U 4.55.23.33:5060 -> 198.1.55.123:5060
SIP/2.0 405 Method Not Allowed..Via:SIP/2.0/UDP 198.1.55.123:5060;branch=z9hG4bK00a3.b9cbedf3.0..From: <sip:dispatcher@1
98.1.55.73>;tag=e01ea3f0a697069df7513da937492475-ccc2..To: sip:4.55.23.33:5060..Call-ID: [email protected].
123..CSeq: 14 OPTIONS..Allow: INVITE,ACK,CANCEL,BYE,REFER,SUBSCRIBE,PRACK,UPDATE..Content-Length: 0....

U 4.55.23.33:5060 -> 198.1.55.123:5060
SIP/2.0 405 Method Not Allowed..Via:SIP/2.0/UDP 198.1.55.123:5060;branch=z9hG4bK7533.9d187cb.0..From: <sip:dispatcher@19
8.1.55.73>;tag=e01ea3f0a697069df7513da937492475-9090..To: sip:4.55.23.33:5060..Call-ID: [email protected]
23..CSeq: 14 OPTIONS..Allow: INVITE,ACK,CANCEL,BYE,REFER,SUBSCRIBE,PRACK,UPDATE..Content-Length: 0....

U 4.55.23.33:5060 -> 198.1.55.123:5060
SIP/2.0 405 Method Not Allowed..Via:SIP/2.0/UDP 198.1.55.123:5060;branch=z9hG4bKba93.6ec09736.0..From: <sip:dispatcher@1
98.1.55.73>;tag=e01ea3f0a697069df7513da937492475-aff4..To: sip:4.55.23.33:5060..Call-ID: [email protected].
123..CSeq: 14 OPTIONS..Allow: INVITE,ACK,CANCEL,BYE,REFER,SUBSCRIBE,PRACK,UPDATE..Content-Length: 0....

DBG:dispatcher:ds_options_callback: OPTIONS-Request was finished with code 408 (to sip:4.55.23.33:5060, group 2)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:dispatcher:ds_set_state: no event sent
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:insert_timer_unsafe: [2]: 0x7f15275282d0 (65)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:final_response_handler: done
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:timer_routine: timer routine:0,tl=0x7f152752bc80 next=0x7f152752d870, timeout=60
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:final_response_handler: Cancel sent out, sending 408 (0x7f152752ba30)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:t_should_relay_response: T_code=0, new_code=408
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:t_pick_branch: picked branch 0, code 408 (prio=800)
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:local_reply: branch=0, save=0, winner=0
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:local_reply: local transaction completed
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:tm:run_trans_callbacks: trans=0x7f152752ba30, callback type 256, id 0 entered
Jul 31 20:07:11 13cn8 /usr/local/opensips/sbin/opensips[4537]: DBG:dispatcher:ds_options_callback: OPTIONS-Request was finished with code 408 (to sip:4.55.19.33:5060, group 1)

Flag to set string to lower for RURI/From/To/Contact

Feature request:

A function or flag that automatically sets the domain on the RURI, From and To all lower case?

We have a work around of course, to just do this manually, but figured it would be good to give some feed back.

Specifically we had issues regarding auth with multi-domain support. In the auth module we leave the first parameter null, which by default pulls from the To header. However, if a device sends caps in the domain, it affect the auth (which is case-sensitive for realm).

Just a thought, with regards to compliance with DNS and domains in general, which are not case sensitive.

Problem in make menuconfig

exclude modules has grown beyond 512 characters. need to modify parser.c in menuconfig directory.

/* Parse an m4 defs line for a cfg entry */

define READ_BUF_SIZE 1024 <========================

static char read_buf[READ_BUF_SIZE];
int parse_defs_m4_line(char *line,select_menu *menu)

opensips 1.9 (latest trunk) hangs when rabbitmq (using event_rabbitmq) drops connection

We seem to have this problem when either the tcp socket opensips is using drops connection, or rabbitmq server side gets bogged down and is slow to respond. It seems opensips will hang the socket and try to open another:

tcp 0 83514 10.201.110.63:48959 10.151.81.199:5672 FIN_WAIT1 -
tcp 0 194585 10.201.110.63:48972 10.151.81.199:5672 FIN_WAIT1 -
tcp 0 23168 10.201.110.63:49166 10.151.81.199:5672 ESTABLISHED 15027/opensips

Process:: ID=1 PID=15027 Type=RabbitMQ sender

Unfortunately, this is causing 100% cpu load and the sip worker processes to back up, and eventually shmem errors in the log.

Anything we can do to troubleshoot this?

bt full:
http://pastebin.com/QhS0NEdA

Crash in Dialog Module

Server:: OpenSIPS (1.9.1-notls (x86_64/linux))

(gdb) bt full
#0 is_dlg_in_profile (msg=, profile=0x7f5a2e7d0da0, value=0x7fff90392700) at dlg_profile.c:825

    dlg = <value optimized out>
    linker = 0x7f5a00000011
    d_entry = 0x7f5a2e808728

#1 0x00007f5c314d2aa0 in w_is_in_profile (msg=0x7f5c32bcd548, profile=0x7f5a2e7d0da0 "\340\r}.Z\177", value=) at dialog.c:1075

    pve = <value optimized out>
    val_s = {s = 0x78d200 "<null>_<null>", len = 13}
    __FUNCTION__ = "w_is_in_profile"

#2 0x00000000004119d6 in do_action (a=0x7f5c32a8fd78, msg=0x7f5c32bcd548) at action.c:1715

    val_s = {s = 0x1 <Address 0x1 out of bounds>, len = -1875301120}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = 8025704, s = {
        s = 0x7a7668 "200 OK\r\nRecord-Route: <sip:x.x.x.x;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:207.36"..., len = 1}}
    j = <value optimized out>
    key_number = <value optimized out>
    cdb_res = <value optimized out>
    adv_addr = {s = 0x1 <Address 0x1 out of bounds>, len = -1875299200}
    increment = <value optimized out>
    decrement = <value optimized out>
    avp_type = <value optimized out>
    aux = {s = 0x782860 "(\324T.Z\177", len = 172791347}
    cdb_reply = <value optimized out>
    val_number = <value optimized out>
    it = <value optimized out>
    avp_name = {n = 26795392, s = {s = 0x198dd80 "pޘ\001", len = -1875301120}}
    ret = -5
    v = <value optimized out>
    sec = <value optimized out>
    usec = <value optimized out>
    to = <value optimized out>
    p = <value optimized out>
    tmp = <value optimized out>
    new_uri = <value optimized out>
    end = <value optimized out>
    crt = <value optimized out>
    len = <value optimized out>
    i = <value optimized out>
    user = 0
    expires = 0
    vals = {{s = 0x198dd80 "pޘ\001", len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}}
    result = {
      s = 0x7a7668 "200 OK\r\nRecord-Route: <sip:x.x.x.x;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:207.36"..., len = 851236168}
    uri = {user = {s = 0x7fff90392cc0 "`(x", len = 0}, passwd = {s = 0x3000000010 <Address 0x3000000010 out of bounds>, len = -1875300928}, host = {
        s = 0x7fff90392ce0 "06 +0000x\375\250\062\\\177", len = 0}, port = {s = 0x4 <Address 0x4 out of bounds>, len = 175697536}, params = {s = 0x0, len = 0}, 
      headers = {s = 0x0, len = 0}, port_no = 56704, proto = 408, type = ERROR_URI_T, transport = {s = 0x0, len = -1875301584}, ttl = {
        s = 0x3a0a4c7897 "\213D$8H\201\304\070\002", len = 851250856}, user_param = {s = 0x7f5c3171bbe0 "\020Z\240\062\\\177", len = -1875301572}, maddr = {
        s = 0x7f5c32a06dd0 "", len = 0}, method = {s = 0x7f5c32a053a0 "\270S\240\062\\\177", len = 8170644}, lr = {s = 0x0, len = -1875301320}, r2 = {s = 0x0, 
        len = 1}, gr = {s = 0x100000001 <Address 0x100000001 out of bounds>, len = 26795392}, transport_val = {s = 0x7f5c32a8f658 "\200ݘ\001", len = -1875301672}, 
      ttl_val = {s = 0x198dc70 "", len = 3}, user_param_val = {s = 0x7fff90392c08 "\200y\252\001", len = -1875301600}, maddr_val = {
        s = 0x7a7668 "200 OK\r\nRecord-Route: <sip:x.x.x.x;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:207.36"..., len = 0}, method_val = {s = 0x200000001 <Address 0x200000001 out of bounds>, len = 1}, lr_val = {
        s = 0x7fff90392bf0 "", len = 1}, r2_val = {s = 0x2 <Address 0x2 out of bounds>, len = 1024}, gr_val = {s = 0x7fff90392c20 "\001", len = 1381111821}, 
      u_name = {{s = 0xcef1d <Address 0xcef1d out of bounds>, len = 4}, {s = 0x2 <Address 0x2 out of bounds>, len = -1005387774}, {s = 0x48b80d "D\213-T\256\060", 
          len = 850136056}, {s = 0x7f5c32bcd548 "!O!", len = 8025704}, {s = 0x1ae48b0 "`̩\001", len = 0}}, u_val = {{s = 0x0, len = 0}, {
          s = 0x300000000 <Address 0x300000000 out of bounds>, len = 3}, {s = 0x300000003 <Address 0x300000003 out of bounds>, len = 3}, {
          s = 0x600000003 <Address 0x600000003 out of bounds>, len = 0}, {s = 0x198de28 "", len = 16777217}}, u_params_no = 1}
    next_hop = {user = {s = 0x5252180d <Address 0x5252180d out of bounds>, len = 847631}, passwd = {s = 0x7f5c32ac0a48 "\270\"", len = 851236168}, host = {
        s = 0x7f5c32bcd548 "!O!", len = 850135976}, port = {s = 0xb00000ac4130002 <Address 0xb00000ac4130002 out of bounds>, len = 4605828}, params = {
        s = 0x1a31ce0 "\006", len = 836338311}, headers = {s = 0x7f5c31d9d945 "incr", len = 850144760}, port_no = 65535, proto = 65535, type = ERROR_URI_T, 
      transport = {s = 0xd <Address 0xd out of bounds>, len = 851236168}, ttl = {s = 0x7fff90392828 "", len = -1005387774}, user_param = {
        s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = -1875302224}, maddr = {s = 0x15e <Address 0x15e out of bounds>, len = 27413720}, method = {s = 0x0, 
        len = 5}, lr = {s = 0x0, len = 851236168}, r2 = {s = 0xd <Address 0xd out of bounds>, len = 851236168}, gr = {s = 0x7f5c32ac2ed0 "\002", 
        len = -1005387774}, transport_val = {s = 0x489e7f "H\205\333t\n\307C\024\030", len = 836360517}, ttl_val = {s = 0x7f5c31d9254f "H\213\224$\330\001", 
        len = 26}, user_param_val = {s = 0x7f5c32a05a10 "dlg_val_trunk_ZHVuZV8xMzI=xMDI==Xdzb2x1dGlvbnNfMTA4001/", len = 0}, maddr_val = {s = 0x7f5c31d9da9f "", 
        len = 26}, method_val = {s = 0x7f5c32a05a10 "dlg_val_trunk_ZHVuZV8xMzI=xMDI==Xdzb2x1dGlvbnNfMTA4001/", len = 1913261361}, lr_val = {
        s = 0x7572745f6c61765f <Address 0x7572745f6c61765f out of bounds>, len = 1516202862}, r2_val = {
        s = 0x203d497a4d783856 <Address 0x203d497a4d783856 out of bounds>, len = 658736}, gr_val = {
        s = 0x7f5a309f0b00 ": \"PCS\", \"switch_name\": \"DALLAS\", \"switch_type\": \"\", \"npanxxy\": \"903423\" }", len = -1875301744}, u_name = {{
          s = 0x4e1178 "H\213+H\205\355u\324H\203\304\b[]\303AWAVAUATUSH\203\354xH\211\325H\205\377\017\204\311\f", len = 8091352}, {s = 0x7f5a309f0b68 "", 
          len = -1875301744}, {s = 0x7f5c314fad12 "\351\324\363\377\377L\213\247\220", len = 1}, {s = 0x7b7920 "\247vz", len = 72}, {
          s = 0x4c9027 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = -1875301776}}, u_val = {{
          s = 0x4e1f10 "\205\300xtH\213D$\bH\211C0\353ظ\377\377\377\377H\213\025\065\t*", len = 150}, {s = 0x7fff90392998 "", len = 8091936}, {
          s = 0x4e2327 "H\213L$ H\211\001H\205\300\017\204\066\r", len = 0}, {s = 0x9600000000 <Address 0x9600000000 out of bounds>, len = 830174944}, {
          s = 0x3a0a4c1cb4 "\351\023\373\377\377D\215h\001\071\325D\017N\350A\215u\377D\211\362H\211߉L$\020\350z^\377\377A9\355\211CL\213L$\020u\020\071\351~\fLc\365G\213\004\267A9\350tg\211\350\306Cd", len = 16}}, u_params_no = 11680}
    u = <value optimized out>
    cmatch = <value optimized out>
    aitem = <value optimized out>
    adefault = <value optimized out>
    spec = <value optimized out>
    model = <value optimized out>
    val = {rs = {s = 0x0, len = 790272469}, ri = 790273195, flags = 32604}
    pve = <value optimized out>
    name_s = {s = 0x7d20 <Address 0x7d20 out of bounds>, len = 0}
    start = {tv_sec = 1381111821, tv_usec = 854129}
    end_time = 851236168
    route_params_bak = <value optimized out>
    route_params_number_bak = <value optimized out>
    __FUNCTION__ = "do_action"

#3 0x000000000040f690 in run_action_list (a=, msg=0x7f5c32bcd548) at action.c:171

    ret = <value optimized out>
    t = 0x7f5c32a8fd78

#4 0x0000000000489e7f in eval_elem (e=0x7f5c32a8fe50, msg=0x7f5c32bcd548, val=0x0) at route.c:1499

    uri = {user = {s = 0x200000000 <Address 0x200000000 out of bounds>, len = -1875299896}, passwd = {s = 0x7fff90392f64 "", len = 0}, host = {
        s = 0x7f5c2f1a9cab "%ld", len = 173368878}, port = {s = 0x0, len = 27860208}, params = {s = 0x1a91cf0 "\003", len = 1}, headers = {s = 0x1a91cf0 "\003", 
        len = 11}, port_no = 59712, proto = 12961, type = 32604, transport = {s = 0x7f5c2f1a6f63 "\205\300x\"H\213C H\213", len = 11}, ttl = {
        s = 0x7fff90393170 "", len = 849471704}, user_param = {
        s = 0x7f5c2f3af3ea "H\211\307H\211\003\061\300H\307\301\377\377\377\377\362\256H\367\321H\203\351\001\211K\b1\300H\203\304([]A\\A]A^A_\303L\213\035\343\035 ", len = 851236168}, maddr = {s = 0x7f5c32a1e940 ".\350\241\062\\\177", len = 0}, method = {s = 0xc <Address 0xc out of bounds>, len = 1}, lr = {
        s = 0x7fff903932f8 "\253\234\032/\\\177", len = 5}, r2 = {s = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>, len = 0}, gr = {
        s = 0x7fff90393360 "", len = -1875299504}, transport_val = {s = 0x7fff90392eb0 "0", len = -1}, ttl_val = {s = 0x7fff90392eb0 "0", len = -1}, 
      user_param_val = {s = 0x3a0a456cba "\351\224\344\377\377I\211\375\351\071\372\377\377H\213\005\322b3", len = 3211312}, maddr_val = {
        s = 0x13 <Address 0x13 out of bounds>, len = -1875299808}, method_val = {s = 0x1e <Address 0x1e out of bounds>, len = 19}, lr_val = {
        s = 0x48a45e "H\205\300\017\204\030\t", len = 851236168}, r2_val = {s = 0x7f5c32a1d618 "\002", len = -1005387774}, gr_val = {
        s = 0x489f7d "\205\300\017\205\361\f", len = 0}, u_name = {{s = 0x0, len = 0}, {s = 0x0, len = -549755814}, {s = 0x0, len = -5}, {
          s = 0x1 <Address 0x1 out of bounds>, len = 0}, {s = 0x7fff90393430 "\001\200\255", <incomplete sequence \373>, len = -1875299296}}, u_val = {{
          s = 0x7fff90392f80 "0.023000", len = -1}, {s = 0x8 <Address 0x8 out of bounds>, len = -1875300480}, {
          s = 0x3a0a456cba "\351\224\344\377\377I\211\375\351\071\372\377\377H\213\005\322b3", len = 842018352}, {s = 0x0, len = 0}, {s = 0x0, len = 0}}, 
      u_params_no = 0}
    ret = -5
    ival = <value optimized out>
    lval = {rs = {s = 0x7fff903931bb "", len = 0}, ri = 825831937, flags = 808464692}
    rval = {rs = {s = 0x65 <Address 0x65 out of bounds>, len = 4995577}, ri = 175691136, flags = 58}
    p = <value optimized out>
    i = <value optimized out>
    n = <value optimized out>
    __FUNCTION__ = "eval_elem"

#5 0x000000000048b80d in eval_expr (e=0x7f5c32a8fe50, msg=0x7f5c32bcd548, val=0x0) at route.c:1844

    rec_lev = 3
    ret = <value optimized out>
    __FUNCTION__ = "eval_expr"

#6 0x000000000048b7a4 in eval_expr (e=0x7f5c32a8fea0, msg=0x7f5c32bcd548, val=0x0) at route.c:1860

    rec_lev = 3
    ret = <value optimized out>
    __FUNCTION__ = "eval_expr"

#7 0x000000000048b7d3 in eval_expr (e=0x7f5c32a8fef0, msg=0x7f5c32bcd548, val=0x0) at route.c:1865

    rec_lev = 3
    ret = <value optimized out>
    __FUNCTION__ = "eval_expr"

#8 0x0000000000411b1c in do_action (a=0x7f5c32a901e0, msg=0x7f5c32bcd548) at action.c:993

    val_s = {s = 0x1a94640 "", len = 849934960}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = -1875298696, s = {s = 0x7fff90393678 "p\372\250\062\\\177", len = 27843888}}
    j = <value optimized out>
    key_number = <value optimized out>
    cdb_res = <value optimized out>
    adv_addr = {
      s = 0x7f5c2f1a9ec8 "\230\324\377\377\b\325\377\377\350\325\377\377(\325\377\377(\326\377\377h\331\377\377\060\332\377\377\350\332\377\377X\333\377\377h\334\377\377\360\334\377\377\230\335\377\377\260\323\377\377p\336\377\377\210\330\377\377\310\330\377\377\030\331\377\377\330\326\377\377\340\327\377\377\240\326\377\377(\330\377\377H\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\

377\301\324\377\377V\343\377\377\301\324\377\377\301\324\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377"..., len = 28052240}
increment =
decrement =
avp_type =
aux = {s = 0x1a94640 "", len = 0}
cdb_reply =
val_number =
it =
avp_name = {n = -1875298673, s = {s = 0x7fff9039368f "", len = 27917328}}
ret = -5
v =
sec =
usec =
to =
p =
tmp =
new_uri =
end =
crt =
len =
i =
user = 0
expires = 0
vals = {{s = 0x112d0 <Address 0x112d0 out of bounds>, len = 27907440}, {s = 0xa <Address 0xa out of bounds>, len = 175697536}, {
s = 0x7f5c2f1a9ec8 "\230\324\377\377\b\325\377\377\350\325\377\377(\325\377\377(\326\377\377h\331\377\377\060\332\377\377\350\332\377\377X\333\377\377h\334\377\377\360\334\377\377\230\335\377\377\260\323\377\377p\336\377\377\210\330\377\377\310\330\377\377\030\331\377\377\330\326\377\377\340\327\377\377\240\326\377\377(\330\377\377H\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377V\343\377\377\301\324\377\377\301\324\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377"..., len = -1875298673}, {s = 0x1 <Address 0x1 out of bounds>,
len = 172468497}, {s = 0x1a9d570 "", len = 10}}
result = {s = 0x782860 "(\324T.Z\177", len = 4765709}
uri = {user = {s = 0x7f5c32bcd548 "!O!", len = 849934960}, passwd = {s = 0x782860 "(\324T.Z\177", len = 4759167}, host = {s = 0x1a92371 "", len = 0}, port = {
s = 0x0, len = 0}, params = {s = 0x0, len = 0}, headers = {s = 0xffffffff <Address 0xffffffff out of bounds>, len = 4760670}, port_no = 0, proto = 0,
type = ERROR_URI_T, transport = {s = 0x3a0a78c440 "", len = 0}, ttl = {s = 0x1ac0b10 "\330\356x\n:", len = -1875298992}, user_param = {s = 0x0,
len = -1875298673}, maddr = {
s = 0x7f5c32d3b13f ", "pp_ok": 0, "effective_date": "2013-07-30 00:00:00", "min_duration": 6, "increment": 6, "surcharge": 0, "priority_position": 0, "effective_jurisdiction": "U" } ]", len = -1}, method = {s = 0x3a0a469945 "H\213\234$", <incomplete sequence \370>, len = -72515583}, lr = {
s = 0x3a0a78c740 "", len = 0}, r2 = {s = 0x7fff9039354f "", len = -1875298688}, gr = {s = 0x7f5c349fc6a8 "\v", len = 0}, transport_val = {
s = 0x7f5c349fc6b0 "@\027T\n:", len = -1875298944}, ttl_val = {s = 0x3a0a4ff9ba "H\201\304", <incomplete sequence \320>, len = 48}, user_param_val = {
s = 0x7fff90393560 "", len = -1875299168}, maddr_val = {s = 0x3a0a78ee80 "", len = 2064}, method_val = {
s = 0x3a0a479385 "L\213T$\bL\213D$\020L\211\375D\211\371L\211\370H\301\355\006\301\351\004H\301\350\tH\211l$(\203\305\060\211L$X\211l$\H\211D$0L\211\372\203\300[L\211\371L\211\375H\301\352\fH\301\351\017H\301\355\022\211D$`I\215G H\211T$PH\211L$H\203\302n\203\301wH\211l$@l\215cX\203\305|\211T$l\211L$hA\271\001",
len = -1875298952}, lr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 790273280}, r2_val = {s = 0x0, len = 80}, gr_val = {
s = 0x20 <Address 0x20 out of bounds>, len = 4}, u_name = {{s = 0x830 <Address 0x830 out of bounds>, len = 0}, {s = 0x0, len = 0}, {
s = 0x5000000081 <Address 0x5000000081 out of bounds>, len = 33}, {s = 0x6e00000077 <Address 0x6e00000077 out of bounds>, len = 1}, {
s = 0x40 <Address 0x40 out of bounds>, len = 4}}, u_val = {{s = 0x1 <Address 0x1 out of bounds>, len = 2}, {s = 0x0, len = 0}, {
s = 0x40 <Address 0x40 out of bounds>, len = 0}, {s = 0x0, len = 0}, {s = 0x3000000002 <Address 0x3000000002 out of bounds>, len = 91}},
u_params_no = 119}
next_hop = {user = {s = 0x0, len = 507}, passwd = {s = 0x7fff90393550 "", len = 0}, host = {s = 0x65 <Address 0x65 out of bounds>, len = 850158832}, port = {
s = 0x3a0a78d580 " \255x\n:", len = 0}, params = {s = 0x7f5c00000001 "", len = 0}, headers = {
s = 0x3033313431393401 <Address 0x3033313431393401 out of bounds>, len = 790273267}, port_no = 12832, proto = 36921, type = 32767, transport = {
s = 0x7f5c32bcd548 "!O!", len = 849471400}, ttl = {
s = 0x45a583 "\213C\024\351\017\377\377\377I;\b}\256\353\244AWAVAUATUSH\203\354\bI\211\375H\211\365H\205\377\017\204\332\001", len = 40}, user_param = {
s = 0x7fff90393560 "", len = -1875299168}, maddr = {s = 0x2 <Address 0x2 out of bounds>, len = 0}, method = {s = 0xd0 <Address 0xd0 out of bounds>,
len = -1005387774}, lr = {s = 0x10040f99d <Address 0x10040f99d out of bounds>, len = 1381111821}, r2 = {s = 0xd0871 <Address 0xd0871 out of bounds>,
len = 0}, gr = {s = 0x7f5c32a1eb38 "\006", len = 172377472}, transport_val = {s = 0x7fff90393360 "", len = 0}, ttl_val = {s = 0x0, len = 0},
user_param_val = {s = 0x33 <Address 0x33 out of bounds>, len = 850731880}, maddr_val = {s = 0x6 <Address 0x6 out of bounds>, len = 24}, method_val = {
s = 0x7fff90393560 "", len = -1875299168}, lr_val = {s = 0x4c91bf "H\211\350H\203\304\030[]A\A]\303J\215L \030H9O8\017\206d\001", len = 1381111821},
r2_val = {s = 0xd086e <Address 0xd086e out of bounds>, len = 851356464}, gr_val = {s = 0x7fff90393310 "\377\377\377\377", len = -1875298944}, u_name = {{
s = 0x7fff90393400 "P59\220\377\177", len = 1}, {s = 0x7fff90393480 "0", len = 99}, {s = 0x7f5c2f1a9cab "%ld", len = -1875298944}, {
s = 0x7f5c32a8f998 "\017", len = -1}, {s = 0xd <Address 0xd out of bounds>, len = 851236168}}, u_val = {{s = 0x7fff90393358 "", len = 7874656}, {
s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = -1875298845}, {s = 0x7fff90393580 "[", len = -1875298845}, {s = 0x0, len = 0}, {s = 0x0,
len = 851236168}}, u_params_no = 13}
u =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0x1a9fc10 "\003", len = 172494914}, ri = 1, flags = 0}
pve =
name_s = {s = 0x4 <Address 0x4 out of bounds>, len = 2}
start = {tv_sec = 1381111821, tv_usec = 854129}
end_time = 851236168
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#9 0x000000000040f690 in run_action_list (a=, msg=0x7f5c32bcd548) at action.c:171

    ret = <value optimized out>
    t = 0x7f5c32a901e0

#10 0x0000000000414aa2 in do_action (a=0x7f5c32a924b0, msg=0x7f5c32bcd548) at action.c:1010

    val_s = {s = 0x0, len = 0}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = 812319552, s = {s = 0x7f5a306b0340 "\307S!", len = 851236168}}
    j = <value optimized out>
    key_number = <value optimized out>
    cdb_res = <value optimized out>
    adv_addr = {s = 0x2 <Address 0x2 out of bounds>, len = 829695893}
    increment = <value optimized out>
    decrement = <value optimized out>
    avp_type = <value optimized out>
    aux = {s = 0xc8 <Address 0xc8 out of bounds>, len = 871643216}
    cdb_reply = <value optimized out>
    val_number = <value optimized out>
    it = <value optimized out>
    avp_name = {n = -1875297064, s = {s = 0x7fff90393cd8 "j\b\r", len = 8091264}}
    ret = 1
    v = 1
    sec = <value optimized out>
    usec = <value optimized out>
    to = <value optimized out>
    p = <value optimized out>
    tmp = <value optimized out>
    new_uri = <value optimized out>
    end = <value optimized out>
    crt = <value optimized out>
    len = <value optimized out>
    i = <value optimized out>
    user = 0
    expires = 0
    vals = {{s = 0x1d <Address 0x1d out of bounds>, len = 5139833}, {s = 0x7fff90393c38 "\240<9\220\377\177", len = 851236168}, {s = 0x7f5c32bdd988 "\001", 
        len = 2}, {s = 0x7f5a3949ff38 "", len = 812319552}, {s = 0x7f5c32bcd548 "!O!", len = 2}}
    result = {s = 0x7f5a2e54d428 "", len = 777311272}
    uri = {user = {s = 0x7f5a2e8970f8 "`\323\371.\\\177", len = 1}, passwd = {s = 0xc8 <Address 0xc8 out of bounds>, len = 5367158}, host = {
        s = 0x2c <Address 0x2c out of bounds>, len = 851236167}, port = {s = 0x33d6ab08 <Address 0x33d6ab08 out of bounds>, len = 851356464}, params = {
        s = 0x52521806 <Address 0x52521806 out of bounds>, len = 5001829}, headers = {s = 0x0, len = -1875297712}, port_no = 54600, proto = 12988, type = 32604, 
      transport = {s = 0x7f5c32beab30 "", len = 0}, ttl = {s = 0x7fff90393a78 "", len = 850884536}, user_param = {s = 0x7f5a305d83c0 "", len = 52}, maddr = {
        s = 0x51f0c9 "\211\350H\203\304\020[]A\\A]A^ý\377\377\377\377H\213\005|7&", len = 51}, method = {s = 0x0, len = 807843008}, lr = {
        s = 0x7f5a33d6ab08 "\200O!", len = 51}, r2 = {s = 0x7f5c30269f40 "\350w\267\062\\\177", len = 51}, gr = {
        s = 0x7f5c3002e384 "\205\300\017\211\231\374\377\377L\213\r\025\217!", len = 1381111813}, transport_val = {s = 0x0, len = 836360512}, ttl_val = {
        s = 0x7f5c302477d4 "\004", len = 831999072}, user_param_val = {s = 0x7f5c3026b4c0  <incomplete sequence \310>, len = 851236168}, maddr_val = {
        s = 0x7f5a305d69b0 "", len = 869706504}, method_val = {s = 0x7f5c32bcd548 "!O!", len = 807843008}, lr_val = {s = 0x7f5c302477e0 "iY\004\060\\\177", 
        len = 200}, r2_val = {s = 0x7f5c30040c12 "\213\205\374\006", len = 49}, gr_val = {s = 0x7fff00000000 <Address 0x7fff00000000 out of bounds>, 
        len = 1381111813}, u_name = {{s = 0xba0dd <Address 0xba0dd out of bounds>, len = 0}, {s = 0x4c9027 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", 
          len = 0}, {s = 0x0, len = 565}, {s = 0x25 <Address 0x25 out of bounds>, len = 851236168}, {
          s = 0x4c9027 "I\215D$\030H\203\304\020[]A\\Ã\302\001\201\372\062\b", len = 927194736}}, u_val = {{s = 0x7f5a305d69b0 "", len = 851352416}, {
          s = 0x7f5c32bd0090 "", len = 851246552}, {s = 0x4219a0 "H\211\303H\205\300ta1\300H\307\003", len = 851352416}, {
          s = 0x7f5c32bcfdd8 "<sip:[email protected]>", len = 7874656}, {s = 0x7f5c32bd0090 "", len = 29}}, u_params_no = 64511}
    next_hop = {user = {s = 0x782860 "(\324T.Z\177", len = 26788}, passwd = {s = 0x5252180d <Address 0x5252180d out of bounds>, len = 847403}, host = {
        s = 0xf00000ac4130002 <Address 0xf00000ac4130002 out of bounds>, len = 849504264}, port = {s = 0xffffffff <Address 0xffffffff out of bounds>, 
        len = 849452128}, params = {s = 0x7f5c32bcd548 "!O!", len = 0}, headers = {s = 0x3 <Address 0x3 out of bounds>, len = 2}, port_no = 2, proto = 50195, 
      type = 184549386, transport = {s = 0x7f5c32a1eb38 "\006", len = 1}, ttl = {s = 0x7f5c32bcd548 "!O!", len = 851236168}, user_param = {
        s = 0x7fff90393878 "\001", len = -1005387774}, maddr = {s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = 849453856}, method = {s = 0x7f5c32bcd548 "!O!", 
        len = 0}, lr = {s = 0x100000001 <Address 0x100000001 out of bounds>, len = 849495456}, r2 = {s = 0x3a0a483b2a "\353\255\017\037@", len = 14}, gr = {
        s = 0x7f5c32a245a0 "\016", len = 0}, transport_val = {s = 0xa6c <Address 0xa6c out of bounds>, len = 0}, ttl_val = {
        s = 0x40fbc7 "Mc\355I\301\345\004E\211\245\210\203|", len = 0}, user_param_val = {s = 0x0, len = 0}, maddr_val = {s = 0x7f5c32b51d28 "N", len = -5}, 
      method_val = {s = 0x7f5c32b41a30 "M", len = 851356464}, lr_val = {s = 0x7f5c32b52730 "\016", len = 52}, r2_val = {s = 0x7f5c32b51fc8 "M", len = 851356464}, 
      gr_val = {s = 0x7fff90393948 "0\032\264\062\\\177", len = 850884536}, u_name = {{s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = -1875297712}, {
          s = 0x4666c7 "H\211\305H\205\300\017\204\224", len = 0}, {s = 0x7f5c32b41a30 "M", len = 1}, {s = 0x0, len = 0}, {s = 0x7f5c32b51fc8 "M", len = 1}}, 
      u_val = {{s = 0x7f5c32beab30 "", len = 850884536}, {s = 0x416d99 "\213\005\311\350\066", len = 850884168}, {s = 0x7f5a33d6ab08 "\200O!", len = 777318416}, {
          s = 0x7f5c2ef9d410 "\020\360T.Z\177", len = 0}, {s = 0x0, len = 67109394}}, u_params_no = 40975}
    u = <value optimized out>
    cmatch = <value optimized out>
    aitem = <value optimized out>
    adefault = <value optimized out>
    spec = <value optimized out>
    model = <value optimized out>
    val = {rs = {s = 0x7f5a3949ff38 "", len = -1875297120}, ri = 961150776, flags = 32602}
    pve = <value optimized out>
    name_s = {
      s = 0x7a7742 "c71e481>\r\nVia: SIP/2.0/UDP x.x.x.x:5060;branch=z9hG4bKd0ad.e3190d11.0\r\nVia: SIP/2.0/UDP x.x.x.x:5060;branch=z9hG4bKd0ad.47ba7ba6.0\r\nVia: SIP/2.0/UDP x.x.x.x;branch=z9hG4bKd0ad.ef1edfb.0\r\nVia:"..., len = 851242456}
    start = {tv_sec = 1381111821, tv_usec = 854122}
    end_time = 851236168
    route_params_bak = <value optimized out>
    route_params_number_bak = <value optimized out>
    __FUNCTION__ = "do_action"

#11 0x000000000040f690 in run_action_list (a=, msg=0x7f5c32bcd548) at action.c:171

    ret = <value optimized out>
    t = 0x7f5c32a924b0

#12 0x0000000000416d99 in run_actions (a=0x7f5c32a8e830, msg=0x7f5c32bcd548) at action.c:136

No locals.
#13 run_top_route (a=0x7f5c32a8e830, msg=0x7f5c32bcd548) at action.c:211

    bl_last_msg_id = 2182945
    bk_action_flags = 0
    bk_rec_lev = 0
    ret = <value optimized out>

#14 0x00007f5c31760bc9 in reply_received (p_msg=0x7f5c32bcd548) at t_reply.c:1503

    msg_status = 200
    last_uac_status = 0
    branch = 0
    reply_status = <value optimized out>
    timer = <value optimized out>
    cancel_bitmap = 0
    uac = 0x7f5a394a0110
    t = 0x7f5a3949ff38
    backup_list = 0x7b7680
    has_reply_route = 1
    __FUNCTION__ = "reply_received"

#15 0x00000000004294ff in forward_reply (msg=0x7f5c32bcd548) at forward.c:575

    new_buf = 0x0
    to = 0x0
    new_len = <value optimized out>
    mod = 0x7f5c32a03390
    proto = <value optimized out>
    send_sock = <value optimized out>
    __FUNCTION__ = "forward_reply"

#16 0x00000000004736d0 in receive_msg (buf=, len=, rcv_info=0x7fff90394040) at receive.c:207

    msg = 0x7f5c32bcd548
    start = {tv_sec = 1381111821, tv_usec = 847964}
    __FUNCTION__ = "receive_msg"

#17 0x00000000004c18f1 in udp_rcv_loop () at udp_server.c:424

    len = <value optimized out>
    buf = "SIP/2.0 200 OK\r\nRecord-Route: <sip:x.x.x.x;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <si"...
    tmp = <value optimized out>
    from = 0x7f5c32bcd510
    fromlen = 16
    ri = {src_ip = {af = 2, len = 4, u = {addrl = {140733679927306, 3}, addr32 = {486539274, 32767, 3, 0}, addr16 = {10, 7424, 32767, 0, 3, 0, 0, 0}, 
          addr = "\n\000\000\035\377\177\000\000\003\000\000\000\000\000\000"}}, dst_ip = {af = 2, len = 4, u = {addrl = {486539274, 0}, addr32 = {486539274, 0, 0, 
            0}, addr16 = {10, 7424, 0, 0, 0, 0, 0, 0}, addr = "\n\000\000\035", '\000' <repeats 11 times>}}, src_port = 5061, dst_port = 5060, proto = 1, 
      proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\023\305\n\000\000\035\000\000\000\000\000\000\000"}, sin = {
          sin_family = 2, sin_port = 50451, sin_addr = {s_addr = 486539274}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, 
          sin6_port = 50451, sin6_flowinfo = 486539274, sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, 
              __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}, bind_address = 0x7f5c32b74aa8}
    p = <value optimized out>
    msg = {
      s = 0x7a7660 "SIP/2.0 200 OK\r\nRecord-Route: <sip:x.x.x.x;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <sip:x.x.x.x;r2=on;lr;ftag=gK0c71e481>\r\nRecord-Route: <si"..., len = 1286}
    __FUNCTION__ = "udp_rcv_loop"

#18 0x00000000004304b3 in main_loop (argc=, argv=) at main.c:884

    i = 3
    pid = <value optimized out>
    si = <value optimized out>
    startup_done = 0x7f5a2e8a38b0
    chd_rank = 20
    rc = <value optimized out>
    load_p = 0x7f5a2e8a4240

#19 main (argc=, argv=) at main.c:1557

    cfg_log_stderr = <value optimized out>
    cfg_stream = <value optimized out>
    c = <value optimized out>
    r = <value optimized out>
    tmp = 0x7fff90394662 ""
    tmp_len = <value optimized out>
    port = <value optimized out>
    proto = <value optimized out>
    options = 0x53b538 "f:cCm:M:b:l:n:N:rRvdDETSVhw:t:u:g:P:G:W:o:"
    ret = -1
    seed = 1817860941
    rfd = <value optimized out>
    __FUNCTION__ = "main"

Opensips1.9 crashed by invalid content-length

sip torture test: 0002390

//////////////////////////////////////////////////////////////////////
475 INVITE sip: SIP/2.0
Via: SIP/2.0/UDP :;branch=z9hG4bK00002390
From: 2390 sip:;tag=2390
To: Receiver sip:
Call-ID: @
CSeq: INVITE
Contact: 2390 sip:
Expires: 1200
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 2147483648

v=0
o=2390 2390 2390 IN IP4
s=Session SDP
c=IN IP4
t=0 0
m=audio 9876 RTP/AVP 0
a=rtpmap:0 PCMU/8000
263 sip: SIP/2.0
Via: SIP/2.0/UDP :;branch=z9hG4bK00002390
From: 2390 sip:;tag=2390
To: Receiver sip:
Call-ID: @
CSeq:
Content-Length: 0

////////////////////////////////////////////////////////////////////////////////
$ gdb /usr/bin/opensips core.opensips.sig11.23363
GNU gdb (GDB) CentOS (7.0.1-45.el5.centos)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
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-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/opensips...done.
[New Thread 23363]
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/local/opensips//lib64/opensips/modules/db_postgres.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/db_postgres.so
Reading symbols from /usr/lib64/libpq.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpq.so.5
Reading symbols from /lib64/libssl.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libssl.so.6
Reading symbols from /lib64/libcrypto.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcrypto.so.6
Reading symbols from /usr/lib64/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /usr/lib64/libldap_r-2.3.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libldap_r-2.3.so.0
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /usr/lib64/libkrb5.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libkrb5.so.3
Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /usr/lib64/libk5crypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libk5crypto.so.3
Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /usr/lib64/libkrb5support.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libkrb5support.so.0
Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libkeyutils.so.1
Reading symbols from /usr/lib64/liblber-2.3.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/liblber-2.3.so.0
Reading symbols from /usr/lib64/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libsasl2.so.2
Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libselinux.so.1
Reading symbols from /lib64/libsepol.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libsepol.so.1
Reading symbols from /usr/local/opensips//lib64/opensips/modules/sl.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/sl.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/tm.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/tm.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/rr.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/rr.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/maxfwd.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/maxfwd.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/textops.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/textops.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/mi_fifo.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/mi_fifo.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/uri.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/uri.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/avpops.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/avpops.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/signaling.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/signaling.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/dialplan.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/dialplan.so
Reading symbols from /lib64/libpcre.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib64/libpcre.so.0
Reading symbols from /usr/local/opensips//lib64/opensips/modules/uac.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/uac.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/uac_auth.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/uac_auth.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/options.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/options.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/dialog.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/dialog.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/acc.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/acc.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/drouting.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/drouting.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/userblacklist.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/userblacklist.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/db_virtual.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/db_virtual.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/mi_xmlrpc.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/mi_xmlrpc.so
Reading symbols from /usr/lib/libxmlrpc_server_abyss.so.3...done.
Loaded symbols for /usr/lib/libxmlrpc_server_abyss.so.3
Reading symbols from /usr/lib/libxmlrpc_server.so.3...done.
Loaded symbols for /usr/lib/libxmlrpc_server.so.3
Reading symbols from /usr/lib/libxmlrpc_abyss.so.3...done.
Loaded symbols for /usr/lib/libxmlrpc_abyss.so.3
Reading symbols from /usr/lib/libxmlrpc.so.3...done.
Loaded symbols for /usr/lib/libxmlrpc.so.3
Reading symbols from /usr/lib/libxmlrpc_util.so.3...done.
Loaded symbols for /usr/lib/libxmlrpc_util.so.3
Reading symbols from /usr/lib/libxmlrpc_xmlparse.so.3...done.
Loaded symbols for /usr/lib/libxmlrpc_xmlparse.so.3
Reading symbols from /usr/lib/libxmlrpc_xmltok.so.3...done.
Loaded symbols for /usr/lib/libxmlrpc_xmltok.so.3
Reading symbols from /usr/local/opensips//lib64/opensips/modules/cachedb_local.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/cachedb_local.so
Reading symbols from /usr/local/opensips//lib64/opensips/modules/sipmsgops.so...done.
Loaded symbols for /usr/local/opensips//lib64/opensips/modules/sipmsgops.so
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2

warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff05997000
Core was generated by `/usr/local/opensips/sbin/opensips -m 1024 -M 64 -u opensips -g opensips -P /var'.
Program terminated with signal 11, Segmentation fault.
#0 ser_memmem (p=0x798055 "", plimit=0xffffffff807bb167 <Address 0xffffffff807bb167 out of bounds>, linechar=99 'c') at parser/sdp/sdp_helpr_funcs.c:92

92 parser/sdp/sdp_helpr_funcs.c: No such file or directory.
in parser/sdp/sdp_helpr_funcs.c
(gdb) bt full
#0 ser_memmem (p=0x798055 "", plimit=0xffffffff807bb167 <Address 0xffffffff807bb167 out of bounds>, linechar=99 'c') at parser/sdp/sdp_helpr_funcs.c:92

    sp = 0x7defff ""
    eos = 0xffffffff807bb165 <Address 0xffffffff807bb165 out of bounds>

#1 find_sdp_line (p=0x798055 "", plimit=0xffffffff807bb167 <Address 0xffffffff807bb167 out of bounds>, linechar=99 'c') at parser/sdp/sdp_helpr_funcs.c:549

    cp = 0x7dbc09 "l/opensips//lib64/opensips/modules/"
    cp1 = <value optimized out>

#2 0x00000000005043a7 in parse_sdp_session (sdp_body=, session_num=, cnt_disp=, _sdp=0x2b905de8b770)

at parser/sdp/sdp.c:444
    sdp_ip = {s = 0x0, len = 0}
    sdp_media = {s = 0x0, len = -1}
    sdp_port = {s = 0x2b905d4ee5b8 "", len = 1565452928}
    sdp_transport = {s = 0xce60020 "", len = 216401184}
    sdp_payload = {s = 0x2b905d6ef86f "ld-linux-x86-64.so.2", len = 1565379077}
    rtp_payload = {s = 0x5 <Address 0x5 out of bounds>, len = 93536896}
    rtp_enc = {s = 0x4 <Address 0x4 out of bounds>, len = 1572323086}
    rtp_clock = {s = 0x0, len = 93532816}
    rtp_params = {s = 0x7fff059341d0 "\260H\223\005\377\177", len = 88}
    is_rtp = 0
    bodylimit = 0xffffffff807bb167 <Address 0xffffffff807bb167 out of bounds>
    v1p = <value optimized out>
    o1p = 0x7bb16c "o=2390 2390 2390 IN IP4 10.119.21.162\r\ns=Session SDP\r\nc=IN IP4 10.119.21.162\r\nt=0 0\r\nm=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n"
    m1p = 0x7bb1c1 "m=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n"
    m2p = 0x7bb1c1 "m=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n"
    c1p = 0x7bb1a2 "c=IN IP4 10.119.21.162\r\nt=0 0\r\nm=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n"
    c2p = <value optimized out>
    a1p = <value optimized out>
    a2p = 0x7bb16c "o=2390 2390 2390 IN IP4 10.119.21.162\r\ns=Session SDP\r\nc=IN IP4 10.119.21.162\r\nt=0 0\r\nm=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n"
    b1p = <value optimized out>
    tmpstr1 = {s = 0x7bb1a2 "c=IN IP4 10.119.21.162\r\nt=0 0\r\nm=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n", len = 2147483589}
    stream_num = 0
    payloadnum = <value optimized out>
    pf = 5039854
    session = <value optimized out>
    stream = <value optimized out>
    payload_attr = <value optimized out>
    parse_payload_attr = <value optimized out>
    fmtp_string = {s = 0x7fff059341d0 "\260H\223\005\377\177", len = 1666860248}
    __FUNCTION__ = "parse_sdp_session"

#3 0x00000000005058e9 in parse_sdp (_m=0x2b905de8ab30) at parser/sdp/sdp.c:701

    res = <value optimized out>
    body = {
      s = 0x7bb167 "v=0\r\no=2390 2390 2390 IN IP4 10.119.21.162\r\ns=Session SDP\r\nc=IN IP4 10.119.21.162\r\nt=0 0\r\nm=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n", 
      len = -2147483648}
    mp_delimiter = {s = 0x5700000055 <Address 0x5700000055 out of bounds>, len = 0}
    mime = <value optimized out>

---Type to continue, or q to quit---
FUNCTION = "parse_sdp"
#4 0x00002b90680ce6cc in do_for_all_streams (msg=0x798055, str1=0x0, str2=0x0, re=0x2b905de7b518, op=1, desc=3) at codecs.c:324

    cur_session = <value optimized out>
    rez = <value optimized out>
    __FUNCTION__ = "do_for_all_streams"

#5 0x00002b90680d0084 in codec_delete_except_re (msg=0x798055, str1=0x0) at codecs.c:757

No locals.
#6 0x0000000000412e99 in do_action (a=0x2b905de7b858, msg=0x2b905de8ab30) at action.c:1715

    val_s = {s = 0x2b905de8ab30 "\001", len = 0}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = 93536720, s = {s = 0x7fff059341d0 "\260H\223\005\377\177", len = 1575466632}}
    key_number = <value optimized out>
    adv_addr = {s = 0x4 <Address 0x4 out of bounds>, len = 0}
    increment = <value optimized out>
    decrement = <value optimized out>
    avp_type = <value optimized out>
    aux = {s = 0x2 <Address 0x2 out of bounds>, len = 0}
    cdb_reply = <value optimized out>
    val_number = <value optimized out>
    it = <value optimized out>
    avp_name = {n = 1575529264, s = {s = 0x2b905de8ab30 "\001", len = 4697483}}
    ret = <value optimized out>
    v = <value optimized out>
    to = <value optimized out>
    p = <value optimized out>
    tmp = <value optimized out>
    new_uri = <value optimized out>
    end = <value optimized out>
    crt = <value optimized out>
    len = <value optimized out>
    i = <value optimized out>
    user = <value optimized out>
    expires = <value optimized out>
    vals = {{s = 0x0, len = 1572323086}, {s = 0x0, len = 93536720}, {s = 0x2b9067a99190 "", len = 0}, {s = 0x2b905d4eea80 "", len = 0}, {s = 0x0, len = 1575440144}}
    result = {s = 0x0, len = 1575466712}
    uri = {user = {s = 0x100000000 <Address 0x100000000 out of bounds>, len = 1}, passwd = {s = 0x100000001 <Address 0x100000001 out of bounds>, len = 1}, host = {
        s = 0x100000001 <Address 0x100000001 out of bounds>, len = 93536720}, port = {s = 0xce6d310 "`\250\346\f", len = 1565380067}, params = {
        s = 0x1 <Address 0x1 out of bounds>, len = 1567548688}, headers = {s = 0x0, len = 93536896}, port_no = 52660, proto = 23985, type = 11152, transport = {
        s = 0x2b905d4dca05 "H\213]\300A\211\305H\205\333\017\205U\002", len = 1565452928}, ttl = {s = 0x0, len = 0}, user_param = {s = 0x0, len = 0}, maddr = {s = 0x0, 
        len = -256710470}, method = {s = 0x6fffff40 <Address 0x6fffff40 out of bounds>, len = 93534160}, lr = {s = 0x7fff05933770 "\377\377\377\377", len = 216452016}, r2 = {
        s = 0xa05934160 <Address 0xa05934160 out of bounds>, len = 93536720}, gr = {s = 0x2b9067a99050 "\016", len = 0}, transport_val = {
        s = 0x7fff05933a10 "\200\352N]\220+", len = 0}, ttl_val = {s = 0x2b905de5b9e0 "", len = 93536720}, user_param_val = {s = 0x48 <Address 0x48 out of bounds>, len = 0}, 
      maddr_val = {s = 0x7fff05933920 "", len = 3}, method_val = {s = 0x2b905db7bf0e "H\205\300H\211\305tJ\203=\023\060.", len = 16}, lr_val = {s = 0x7fff05934000 "", 
        len = 1644797670}, r2_val = {s = 0x10 <Address 0x10 out of bounds>, len = 93536256}, gr_val = {s = 0x2b905db4acf1 "H\213\235\200\371\377\377f\203;", len = 93534944}, 

---Type to continue, or q to quit---
u_name = {{s = 0x0, len = 93536192}, {s = 0x0, len = 0}, {s = 0x0, len = -256710470}, {s = 0x512696fb <Address 0x512696fb out of bounds>, len = 93536640}, {
s = 0x2b9062099ee4 "%s/pg_service.conf", len = 93536272}}, u_val = {{s = 0x667895498 <Address 0x667895498 out of bounds>, len = 0}, {s = 0x7fff05933af0 "",
len = 0}, {s = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>, len = 0}, {s = 0x2b9062099ee4 "%s/pg_service.conf", len = 0}, {
s = 0x7fff05933ec8 "\330G\223\005\377\177", len = 0}}, u_params_no = 9}
next_hop = {user = {s = 0x0, len = 0}, passwd = {s = 0x0, len = 0}, host = {s = 0xdbd56edbf0b2e8ba <Address 0xdbd56edbf0b2e8ba out of bounds>, len = 1659786968}, port = {
s = 0x0, len = 93533936}, params = {s = 0x2 <Address 0x2 out of bounds>, len = -1469301711}, headers = {
s = 0xdbd56edbf0b2e8ba <Address 0xdbd56edbf0b2e8ba out of bounds>, len = 1659786936}, port_no = 0, proto = 0, type = ERROR_URI_T, transport = {s = 0x7fff059336f0 "",
len = 0}, ttl = {s = 0x2b905de5b9e0 "", len = 93536720}, user_param = {s = 0x78 <Address 0x78 out of bounds>, len = 0}, maddr = {
s = 0x2b905d4dec88 "\205\300u\350H\203\304\b\270\001", len = 6}, method = {s = 0x2b905d4eea80 "", len = 1732718913}, lr = {
s = 0x2b905d4d8740 "\205\300t\314H\201\304\350\003", len = 216405264}, r2 = {
s = 0x2b905d4dcb15 "H\213\235\070\377\377\377D\213\033E\205\333\017\204\310\375\377\377\353\fD\213\020E\205\322\017\204\272\375\377\377H\213\205\070\377\377\377H\213@\020H\205\300H\211\205\070\377\377\377u\335DžL\377\377\377", len = 1}, gr = {s = 0x4d0 <Address 0x4d0 out of bounds>, len = 1575336520}, transport_val = {s = 0x7fff05933720 "\001",
len = 1657470061}, ttl_val = {s = 0x50 <Address 0x50 out of bounds>, len = 1575336520}, user_param_val = {s = 0x7fff05934160 "\002", len = 93536720}, maddr_val = {
s = 0x2b905de59b70 "\016", len = 0}, method_val = {s = 0x0, len = 0}, lr_val = {s = 0x2b905d4dc332 "H\211C [\303\017\037\204", len = 0}, r2_val = {
s = 0x2b905de74f10 "\002", len = 0}, gr_val = {s = 0x2b905de74f10 "\002", len = 1}, u_name = {{s = 0x2b905de8ab30 "\001", len = 1575529264}, {
s = 0x4786e4 "\211\303\351\036\373\377\377I\213|$(L\211\366\350c\b\372\377H\205\355t\n\307E\024\030", len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = -1469298575}, {
s = 0x2b905de7b5b0 "\017", len = -1}}, u_val = {{s = 0x2b905de8ab30 "\001", len = 13}, {s = 0x2b905de8ab30 "\001", len = 1575529264}, {
s = 0x418f91 "\211Ņ\300u\a\203\rb\364\067", len = 1575466632}, {s = 0x0, len = 1575466632}, {s = 0x4786f8 "H\205\355t\n\307E\024\030", len = 6}},
u_params_no = 53008}
u =
port =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0x2 <Address 0x2 out of bounds>, len = 0}, ri = 1575529264, flags = 11152}
pve =
name_s = {s = 0x2b90680cb278 "libc.so.6", len = 1565361984}
start = {tv_sec = 47899050814256, tv_usec = 4697754}
end_time =
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#7 0x000000000041712d in do_action (a=0x2b905de7b930, msg=0x2b905de8ab30) at action.c:171

    val_s = {s = 0x2b905de8ab30 "\001", len = 0}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = 0, s = {s = 0x0, len = 1575439832}}
    key_number = <value optimized out>
    adv_addr = {s = 0x8 <Address 0x8 out of bounds>, len = 1378422561}
    increment = <value optimized out>
    decrement = <value optimized out>
    avp_type = <value optimized out>
    aux = {s = 0x2 <Address 0x2 out of bounds>, len = 0}

---Type to continue, or q to quit---
cdb_reply =
val_number =
it =
avp_name = {n = 0, s = {s = 0x0, len = 1361483509}}
ret = 1
v = 1
to =
p =
tmp =
new_uri =
end =
crt =
len =
i =
user =
expires =
vals = {{s = 0x0, len = -1}, {s = 0x1400000000 <Address 0x1400000000 out of bounds>, len = 1686863942}, {s = 0x0, len = 93537576}, {
s = 0x200000031 <Address 0x200000031 out of bounds>, len = 4096}, {s = 0xce776b0 "H\274\345]\220+", len = 479}}
result = {s = 0x7fff05934790 "0\253\350]\220+", len = 1575439912}
uri = {user = {s = 0x100000031 <Address 0x100000031 out of bounds>, len = 697}, passwd = {s = 0xce6fa40 "h\371\346\f", len = 8423680}, host = {
s = 0x7fff05933fa0 " F\223\005\377\177", len = 0}, port = {s = 0x1 <Address 0x1 out of bounds>, len = 40}, params = {s = 0x0, len = 1752711908}, headers = {
s = 0x2b90687842e4 "Q", len = 1706324693}, port_no = 0, proto = 0, type = 32767, transport = {s = 0x2b9000000000 <Address 0x2b9000000000 out of bounds>,
len = 93536224}, ttl = {s = 0x7fff05933fe4 "\377\177", len = 93536160}, user_param = {s = 0x7fff05934780 "\016", len = 1752711824}, maddr = {
s = 0x1000 <Address 0x1000 out of bounds>, len = 8}, method = {s = 0xce6e958 ""\347.h\220+", len = 93537952}, lr = {s = 0x7fff05934780 "\016", len = 93538312}, r2 = {
s = 0x7fff0593480c "", len = 93538304}, gr = {s = 0x7fff059347d8 "", len = 93538272}, transport_val = {s = 0x7fff05934804 "", len = 0}, ttl_val = {
s = 0x2b90687842e0 "P", len = 0}, user_param_val = {s = 0xfffffffeffffffff <Address 0xfffffffeffffffff out of bounds>, len = -1}, maddr_val = {
s = 0xffffffff00000000 <Address 0xffffffff00000000 out of bounds>, len = 0}, method_val = {s = 0x57560c "%.s=", len = 0}, lr_val = {s = 0x2b9068784290 "\v\vB",
len = 93537808}, r2_val = {s = 0x0, len = 512}, gr_val = {s = 0x51 <Address 0x51 out of bounds>, len = 0}, u_name = {{s = 0x7fff05934650 "", len = 0}, {
s = 0x7fff05934660 "H\272\345]\220+", len = 1686863951}, {s = 0x0, len = 93537888}, {s = 0x2b905db4acf1 "H\213\235\200\371\377\377f\203;", len = 93536576}, {
s = 0xffffffff <Address 0xffffffff out of bounds>, len = 93537824}}, u_val = {{s = 0x2b90687842e0 "P", len = 0}, {s = 0x0, len = 1575500778}, {
s = 0x2b906878430d "B", len = 93538256}, {s = 0x2b90648b8046 "%c%d@%.*s", len = 93537904}, {s = 0x0, len = 0}}, u_params_no = 65535}
next_hop = {user = {s = 0x2b905de8ba18 "\001", len = 0}, passwd = {
s = 0x7bb12a "Content-Type: application/sdp\r\nContent-Length: 2147483648\r\n\r\nv=0\r\no=2390 2390 2390 IN IP4 10.119.21.162\r\ns=Session SDP\r\nc=IN IP4 10.119.21.162\r\nt=0 0\r\nm=audio 9876 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n", len = 1565372089}, host = {s = 0x2e05933e00 <Address 0x2e05933e00 out of bounds>, len = 5039854}, port = {
s = 0x7fff05933db0 "\017", len = 93535520}, params = {s = 0xf <Address 0xf out of bounds>, len = 1575529264}, headers = {s = 0x2b905de8be18 "\b", len = 1575529264},
port_no = 45336, proto = 123, type = ERROR_URI_T, transport = {s = 0x4d3fc9 "H\211D$\020A\213m", len = 93536544}, ttl = {s = 0x100 <Address 0x100 out of bounds>,
len = 8106282}, user_param = {s = 0x7bb1ef "", len = 0}, maddr = {s = 0x7fff05933fe0 "pF\223\005\377\177", len = 93538304}, method = {
s = 0x7fff05933d20 "\270"\350]\220+", len = 1575416392}, lr = {s = 0x2b905de8ab30 "\001", len = 93535520}, r2 = {s = 0x2b905de8ab30 "\001", len = 1575529264}, gr = {
s = 0x2b9064ce6ef5 "\203\300\001\017\204r\a", len = -1}, transport_val = {s = 0xffffffff0ce6e8f0 <Address 0xffffffff0ce6e8f0 out of bounds>, len = 0}, ttl_val = {
s = 0xa <Address 0xa out of bounds>, len = 1575416392}, user_param_val = {
s = 0x488387 "\205\300\017\205]\372\377\377\351\t\370\377\377\215J\237\200\371\005\017\207\062\374\377\377D\017\266\362A\215N\251\351N\373\377\377H\230\200|\002\377]\017\205\030\374\377\377L\215J\001H\215D\002\377\351V\372\377\377L\213\035\231\321\060", len = 93535520}, maddr_val = {s = 0x2b905de8ab30 "\001", len = 10}, method_val = {
s = 0x2b9064ce5d7f "\205\300\017\205", <incomplete sequence \350>, len = 93535944}, lr_val = {
s = 0x7baffb "10.110.97.217 SIP/2.0\r\nVia: SIP/2.0/UDP 10.119.21.162:8000;branch=z9hG4bK000023900\r\nFrom: 2390 sip:[email protected];tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.110.97.217>\r\nCall-ID: [email protected]"..., len = 1575494328}, r2_val = {s = 0x1000000000001 <Address 0x1000000000001 out of bounds>, len = 0},
---Type to continue, or q to quit---
gr_val = {s = 0x0, len = 0}, u_name = {{s = 0x5de6f248 <Address 0x5de6f248 out of bounds>, len = 1}, {s = 0x2b905de8adc8 "\373\257{", len = 5060}, {
s = 0x2b905de74dd8 "\002", len = 0}, {s = 0x2b905de8ab30 "\001", len = 1575529264}, {s = 0x428562 "H\205\300t\024\270\001", len = 1575529264}}, u_val = {{
s = 0x4f9a12 "\205\300x5Džp\002", len = 1575420408}, {s = 0x2b905de8ab30 "\001", len = 15}, {s = 0x412e99 "A\211ƋU", len = 0}, {s = 0x2b905de8ab30 "\001",
len = 1575529264}, {s = 0x479c46 "\211\303A\203\375\024\017\204\267\345\377\377A\203\375\035\017\204\322\b", len = 0}}, u_params_no = 0}
u =
port =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0x7fff05934390 "0\253\350]\220+", len = 1572240967}, ri = 2049, flags = 0}
pve =
name_s = {s = 0x7fff059342b0 "\200\245\345]\220+", len = 1644801314}
start = {tv_sec = 47899050814256, tv_usec = 4697754}
end_time =
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#8 0x0000000000415cdb in do_action (a=0x2b905de70408, msg=0x2b905de8ab30) at action.c:171

    val_s = {s = 0x2b905de8ab30 "\001", len = 0}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = 4096, s = {s = 0x1000 <Address 0x1000 out of bounds>, len = 1575420624}}
    key_number = <value optimized out>
    adv_addr = {s = 0x2b905de8ab30 "\001", len = 0}
    increment = <value optimized out>
    decrement = <value optimized out>
    avp_type = <value optimized out>
    aux = {s = 0x2 <Address 0x2 out of bounds>, len = 0}
    cdb_reply = <value optimized out>
    val_number = <value optimized out>
    it = <value optimized out>
    avp_name = {n = 1575529264, s = {s = 0x2b905de8ab30 "\001", len = 4697754}}
    ret = <value optimized out>
    v = <value optimized out>
    to = <value optimized out>
    p = <value optimized out>
    tmp = <value optimized out>
    new_uri = <value optimized out>
    end = <value optimized out>
    crt = <value optimized out>
    len = <value optimized out>
    i = <value optimized out>
    user = <value optimized out>

---Type to continue, or q to quit---
expires =
vals = {{s = 0xffffffff <Address 0xffffffff out of bounds>, len = 2}, {s = 0xf00000000 <Address 0xf00000000 out of bounds>, len = 1722016551}, {s = 0x0,
len = 1644778287}, {s = 0x0, len = 1644778581}, {s = 0x2b905de5ba48 " y\347\f", len = 93538016}}
result = {s = 0x3000000018 <Address 0x3000000018 out of bounds>, len = 1575420704}
uri = {user = {s = 0x1 <Address 0x1 out of bounds>, len = 93539088}, passwd = {s = 0x0, len = -1}, host = {s = 0x705934b10 <Address 0x705934b10 out of bounds>,
len = 1573036492}, port = {s = 0x0, len = 93538632}, params = {s = 0x5de8a728 <Address 0x5de8a728 out of bounds>, len = 0}, headers = {
s = 0x2 <Address 0x2 out of bounds>, len = 93539168}, port_no = 58152, proto = 26275, type = 11152, transport = {s = 0x2 <Address 0x2 out of bounds>, len = 93539168},
ttl = {s = 0x2b905db4acf1 "H\213\235\200\371\377\377f\203;", len = 93537856}, user_param = {s = 0x0, len = 93539104}, maddr = {s = 0x0, len = 0}, method = {s = 0x0,
len = 93539104}, lr = {s = 0x2b905dbea285 "I\203\304\001H\205\300H\211\302L\213D$\030L\213L$\020L\213T$\bL\213\034$\017\204\230", len = 93539440}, r2 = {
s = 0x2b9066a3e2f8 "INFO:userblacklist:%s: got %d entries from '%._s'\n", len = 216496432}, gr = {s = 0x7fff05934500 "", len = 93537536}, transport_val = {
s = 0x7fff05934560 "\001\200\255\373\377\177", len = 0}, ttl_val = {s = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>, len = 0}, user_param_val = {
s = 0x2b9066a3e30b "%s: got %d entries from '%._s'\n", len = 0}, maddr_val = {s = 0x7fff05934a28 "\211", len = 216495792}, method_val = {s = 0x0, len = 0}, lr_val = {
s = 0x5 <Address 0x5 out of bounds>, len = 0}, r2_val = {s = 0x2b905dc2a1cd "d]", len = -72515583}, gr_val = {s = 0xa00000000 <Address 0xa00000000 out of bounds>,
len = 93538854}, u_name = {{s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 216495648}, {s = 0x0, len = 0}, {s = 0x0, len = 0}}, u_val = {{s = 0x0, len = 0}, {
s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 41}}, u_params_no = 11936}
next_hop = {user = {s = 0x0, len = 93538056}, passwd = {s = 0x5934720 <Address 0x5934720 out of bounds>, len = 0}, host = {s = 0x7fff05934a20 "\020 ", len = 5722300},
port = {s = 0x7fff059348c0 "0I\223\005\377\177", len = 1572186789}, params = {s = 0x0, len = 0}, headers = {s = 0x0, len = -1}, port_no = 0, proto = 0, type = 21,
transport = {s = 0x5750c1 "%.*s ", len = 0}, ttl = {s = 0x7fff05934778 "0\253\350]\220+", len = 93537824}, user_param = {s = 0x0, len = 0}, maddr = {s = 0x0, len = 0},
method = {s = 0x57560f "s=", len = 1575331200}, lr = {s = 0x2b9000000000 <Address 0x2b9000000000 out of bounds>, len = 0}, r2 = {s = 0x0, len = 0}, gr = {s = 0x0,
len = 0}, transport_val = {s = 0x0, len = 32}, ttl_val = {s = 0x0, len = 64}, user_param_val = {s = 0x7fff05934130 "0\253\350]\220+", len = 0}, maddr_val = {
s = 0x5750c4 "s ", len = 93537664}, method_val = {s = 0x2b9000000000 <Address 0x2b9000000000 out of bounds>, len = 0}, lr_val = {
s = 0x200 <Address 0x200 out of bounds>, len = 93538176}, r2_val = {
s = 0x2b905dbc51a7 "H\215P\001H\203\300\037H\211\336H\203\340\360H)\304H\215|$'H\203\347\360\350i\342\373\377H\213\215h\377\377\377H\213\021H\213M\210H\213\235X\377\377\377H\211C\bH\213\205\250\376\377\377\203x\004\n\017\204\020\377\377\377I\213D\r", len = 1633906540}, gr_val = {s = 0x74 <Address 0x74 out of bounds>, len = 93538072}, u_name = {{
s = 0x2b905de6f248 "\017", len = -1}, {s = 0x2b905de8ab30 "\001", len = 13}, {s = 0x2b905de8ab30 "\001", len = 1575529264}, {
s = 0x418f91 "\211Ņ\300u\a\203\rb\364\067", len = 1575416608}, {s = 0x2b905de701f8 "\017", len = -1}}, u_val = {{s = 0x2b905de8ab30 "\001", len = 13}, {
s = 0x2b905de8ab30 "\001", len = 1575529264}, {s = 0x418f91 "\211Ņ\300u\a\203\rb\364\067", len = 1575420624}, {s = 0x0, len = 1575420624}, {
s = 0x4786f8 "H\205\355t\n\307E\024\030", len = 216496432}}, u_params_no = 41420}
u =
port =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0xce72ea0 "p4\347\f", len = 49}, ri = 37, flags = 0}
pve =
name_s = {s = 0x0, len = 0}
start = {tv_sec = 47899050814256, tv_usec = 4697754}
end_time =
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#9 0x000000000041712d in do_action (a=0x2b905de704e0, msg=0x2b905de8ab30) at action.c:171

    val_s = {s = 0x0, len = 0}

---Type to continue, or q to quit---
aux_counter =
i =
avp_val = {n = 0, s = {s = 0x0, len = 2}}
key_number =
adv_addr = {s = 0x2b905de8b798 "\001", len = 1575529264}
increment =
decrement =
avp_type =
aux = {
s = 0x7bb04f "From: 2390 sip:[email protected];tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.110.97.217>\r\nCall-ID: [email protected]\r\nCSeq: 1 INVITE\r\nContact: 2390 sip:[email protected]\r\nExpires: 1200\r"..., len = 8106479}
cdb_reply =
val_number =
it =
avp_name = {n = 8106002, s = {
s = 0x7bb012 "Via: SIP/2.0/UDP 10.119.21.162:8000;branch=z9hG4bK000023900\r\nFrom: 2390 sip:[email protected];tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.110.97.217>\r\nCall-ID: [email protected]\r\nCSeq: 1 INVIT"..., len = 5062601}}
ret = 1
v = 1
to =
p =
tmp =
new_uri =
end =
crt =
len =
i =
user =
expires =
vals = {{
s = 0x7bb017 "SIP/2.0/UDP 10.119.21.162:8000;branch=z9hG4bK000023900\r\nFrom: 2390 sip:[email protected];tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.110.97.217>\r\nCall-ID: [email protected]\r\nCSeq: 1 INVITE\r\nCo"..., len = 8106479}, {s = 0x2b905de8b7f8 "\001", len = 5059161}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {
s = 0x0, len = 0}}
result = {s = 0x1 <Address 0x1 out of bounds>, len = 1575529264}
uri = {user = {s = 0x2b905de822b8 "\a", len = 0}, passwd = {s = 0x2b90687a94f8 "-[", len = 1572045520}, host = {s = 0x0, len = 0}, port = {s = 0x0, len = 2}, params = {
s = 0x0, len = 1575529056}, headers = {s = 0x7fff05934f2c "\020", len = 0}, port_no = 582, proto = 0, type = ERROR_URI_T, transport = {s = 0x2b90687a94f8 "-[",
len = 1752908648}, ttl = {s = 0x7fff05934fa0 "\030X{h\220+", len = 1575529056}, user_param = {s = 0x7 <Address 0x7 out of bounds>, len = 8105952}, maddr = {s = 0x0,
len = 1575494328}, method = {s = 0xffff <Address 0xffff out of bounds>, len = 45}, lr = {s = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>,
len = 93539992}, r2 = {s = 0x2b905dbdda71 "\017\005H=\001\360\377\377sq\303H\203\354\070H\211|$\bH\211t$\020H\211T$\030H\211L$ L\211D$(L\211L$0蝳", len = 582}, gr = {
s = 0x33 <Address 0x33 out of bounds>, len = 0}, transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0, len = 93539344}, user_param_val = {
s = 0x15 <Address 0x15 out of bounds>, len = 21}, maddr_val = {s = 0x4ce6ee "H\211\330H\203\304\030[]A\A]Ã\306\001\201\376\063\b", len = 21}, method_val = {
s = 0x15 <Address 0x15 out of bounds>, len = 216496432}, lr_val = {s = 0x2 <Address 0x2 out of bounds>, len = 8106007}, r2_val = {
s = 0x32 <Address 0x32 out of bounds>, len = 6}, gr_val = {s = 0x4fb353 "H\211D$@h\205\300D\017\266T$(\017\204\230\063", len = 0}, u_name = {{s = 0x0,
len = 216459936}, {s = 0x51ba28 "1҉\320H\203\304\020[]A\Ë55\233'", len = 1575528984}, {s = 0x2b905d4d9d06 "", len = 1575532536}, {s = 0x7bb1ef "",
len = 1575532800}, {
---Type to continue, or q to quit---
s = 0x7bb04d "\r\nFrom: 2390 sip:[email protected];tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.110.97.217>\r\nCall-ID: [email protected]\r\nCSeq: 1 INVITE\r\nContact: 2390 sip:[email protected]\r\nExpires: 120"..., len = 8106038}}, u_val = {{s = 0x5d4da104 <Address 0x5d4da104 out of bounds>, len = 1575532536}, {
s = 0x7fff05934c20 "", len = -12717464}, {s = 0x405934db0 <Address 0x405934db0 out of bounds>, len = 895}, {
s = 0x4ce6ee "H\211\330H\203\304\030[]A\A]Ã\306\001\201\376\063\b", len = 0}, {s = 0x20f <Address 0x20f out of bounds>, len = 1575532440}}, u_params_no = 527}
next_hop = {user = {s = 0x0, len = 0}, passwd = {s = 0x0, len = 0}, host = {s = 0x7fff05934850 "H\272\345]\220+", len = 1072}, port = {s = 0x2b905de5ba48 " y\347\f",
len = 1575336416}, params = {s = 0x2b905dc29cfb "/etc/localtime", len = 15}, headers = {s = 0xce6ea50 "/etc/localtime", len = 1575339424}, port_no = 50972,
proto = 3303, type = ERROR_URI_T, transport = {s = 0x2b905db7bf0e "H\205\300H\211\305tJ\203=\023\060.", len = 15}, ttl = {s = 0x2b905dc29cfb "/etc/localtime", len = 1},
user_param = {s = 0xce6ea50 "/etc/localtime", len = 1575339424}, maddr = {
s = 0xce7c71c "23:09:21 /usr/local/opensips/sbin/opensips[23363]: INFO:userblacklist:reload_sources: got 28 entries from 'globalblacklist'\n", len = 93538608},
method = {s = 0x2b905db942bf "D\213=:\252,", len = 1}, lr = {s = 0x81a4 <Address 0x81a4 out of bounds>, len = 0}, r2 = {s = 0x0, len = 118}, gr = {
s = 0x1000 <Address 0x1000 out of bounds>, len = 8}, transport_val = {s = 0x2b905dc28c76 "%H:%M:%S", len = 8180}, ttl_val = {s = 0x2b905dc2a1c8 "T ", len = 8},
user_param_val = {s = 0xce7c71c "23:09:21 /usr/local/opensips/sbin/opensips[23363]: INFO:userblacklist:reload_sources: got 28 entries from 'globalblacklist'\n",
len = 216516380}, maddr_val = {s = 0x2b905de5b9e0 "", len = 1575336448}, method_val = {s = 0x2b905de5ba00 "", len = 93538656}, lr_val = {s = 0x2b905de5ba38 "",
len = 1575324384}, r2_val = {s = 0x7fff05934b70 "\027\260{", len = 16}, gr_val = {s = 0x7fff05934b70 "\027\260{", len = 93538992}, u_name = {{s = 0xce7c7a0 "",
len = 116832}, {s = 0xce7e710 "", len = 1573042360}, {s = 0x1a8f0 <Address 0x1a8f0 out of bounds>, len = 1575336416}, {
s = 0x2b905db7958c "\351\317\373\377\377H;X\020\017\205\327\372\377\377H\201{\b\377\001", len = 1575339424}, {
s = 0x2b9066a3e2f8 "INFO:userblacklist:%s: got %d entries from '%.*s'\n", len = 1}}, u_val = {{s = 0x2b905db942bf "D\213=:\252,", len = 1575528568}, {
s = 0x2b906208c40f "\213\235\274", len = 1575529056}, {s = 0xce77e84 "1", len = 1575529056}, {
s = 0x4ce13c "H\203\304\030[A\303H\301\352\003\351\035\377\377\377H\205\366\017\210", <incomplete sequence \360>, len = 216495792}, {
s = 0x42feeb "\351&\376\377\377\213=~V6", len = 8208}}, u_params_no = 137}
u =
port =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0x0, len = 0}, ri = 8106063, flags = 0}
pve =
name_s = {s = 0x2b905de8ab38 "\001", len = 527}
start = {tv_sec = 0, tv_usec = 527}
end_time =
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#10 0x0000000000419117 in run_actions (a=0x2b905de704e0, msg=0x2b905de8ab30) at action.c:171

    ret = 2147483558
    __FUNCTION__ = "run_actions"

#11 run_top_route (a=0x2b905de704e0, msg=0x2b905de8ab30) at action.c:211

    bk_action_flags = 0
    bk_rec_lev = 0
    bl_last_msg_id = 1

#12 0x000000000046411e in receive_msg (

buf=0x7bafe0 "INVITE sip:", '9' <repeats 15 times>, "@10.110.97.217 SIP/2.0\r\nVia: SIP/2.0/UDP 10.119.21.162:8000;branch=z9hG4bK000023900\r\nFrom: 2390 <sip:[email protected]>;tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.11"..., len=527, rcv_info=0x7fff05934ea0) at receive.c:169

---Type to continue, or q to quit---
msg = 0x7dbc09
start = {tv_sec = 0, tv_usec = 47899040692786}
FUNCTION = "receive_msg"
#13 0x00000000004c628d in udp_rcv_loop () at udp_server.c:424

    len = <value optimized out>
    tmp = 0x0
    from = <value optimized out>
    fromlen = 16
    ri = {src_ip = {af = 2, len = 4, u = {addrl = {140735912703754, 0}, addr32 = {2719315722, 32767, 0, 0}, addr16 = {30474, 41493, 32767, 0, 0, 0, 0, 0}, 
          addr = "\nw\025\242\377\177\000\000\000\000\000\000\000\000\000"}}, dst_ip = {af = 2, len = 4, u = {addrl = {3647041034, 0}, addr32 = {3647041034, 0, 0, 0}, 
          addr16 = {28170, 55649, 0, 0, 0, 0, 0, 0}, addr = "\nna\331", '\000' <repeats 11 times>}}, src_port = 8000, dst_port = 5060, proto = 1, proto_reserved1 = 0, 
      proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\037@\nw\025\242\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 16415, sin_addr = {
            s_addr = 2719315722}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 16415, sin6_flowinfo = 2719315722, sin6_addr = {in6_u = {
              u6_addr8 = '\000' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}, bind_address = 0x2b905de822b8}
    p = 0x2b905de822b8
    msg = {
      s = 0x7bafe0 "INVITE sip:", '9' <repeats 15 times>, "@10.110.97.217 SIP/2.0\r\nVia: SIP/2.0/UDP 10.119.21.162:8000;branch=z9hG4bK000023900\r\nFrom: 2390 <sip:[email protected]>;tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.11"..., len = 527}
    buf = "INVITE sip:", '9' <repeats 15 times>, "@10.110.97.217 SIP/2.0\r\nVia: SIP/2.0/UDP 10.119.21.162:8000;branch=z9hG4bK000023900\r\nFrom: 2390 <sip:[email protected]>;tag=2390\r\nTo: Receiver <sip:", '9' <repeats 15 times>, "@10.110.97.217>\r"...
    __FUNCTION__ = "udp_rcv_loop"

#14 0x0000000000433948 in main_loop (argc=, argv=0x7fff059350c8) at main.c:884

    i = 0
    pid = <value optimized out>
    si = 0x2b905de822b8
    startup_done = 0x2b90687b4368
    load_p = 0x2b90687b5818
    chd_rank = 9
    __FUNCTION__ = "main_loop"

#15 main (argc=, argv=0x7fff059350c8) at main.c:1557

    cfg_log_stderr = 0
    cfg_stream = 0xce58010
    c = <value optimized out>
    r = <value optimized out>
    tmp = 0x7fff05936ef5 ""
    tmp_len = <value optimized out>
    port = 0
    proto = <value optimized out>
    ret = <value optimized out>
    seed = 1906461624
    rfd = <value optimized out>
    __FUNCTION__ = "main"

(gdb)

event_xmlrpc makes an invalid call when using parameters

you can't use named parameters in xmlrpc, you need to wrap them in a struct if you want to pass name/value pairs
http://xmlrpc.scripting.com/spec.html
so the example here is not valid
http://www.opensips.org/html/docs/modules/1.10.x/event_xmlrpc

i.e. you can't do:

    <param>
        <name>ip</name>
        <value><string>192.168.2.11</string></value>
    </param>

but you can do:

    <param><value><struct><member>
        <name>ip</name>
        <value><string>192.168.2.11</string></value>
    </member></struct></value></param>

so in my route I have this:
$avp(attr-name) = "from";
$avp(attr-val) = "$fu";
$avp(attr-name) = "to";
$avp(attr-val) = "$tu";
raise_event("CALL",$avp(attr-name), $avp(attr-val));

and this calls a PHP XMLRPC server, however the payload is

<?xml version="1.0"?>
<methodCall>
<methodName>call</methodName>
<params>
<param>
<value><string>CALL</string></value>
</param>
<param>
<name>to</name>
<value><string>sip:XXXXXXXXXXXX</string></value>
</param>
<param>
<name>from</name>
<value><string>sip:XXXXXXXXXXXX</string></value>
</param>
</params>
</methodCall>

but that can't be parsed by the standard PHP XMLRPC library (valid XML but not valid XMLRPC)

I can work with

<?xml version="1.0"?>
<methodCall>
<methodName>call</methodName>
<params>
<param>
<value><string>CALL</string></value>
</param>
<param>
<value><struct><member>
<name>to</name>
<value><string>sip:XXXXXXXXXXXX</string></value>
</member><member>
<name>from</name>
<value><string>sip:XXXXXXXXXXXX</string></value>
</member></struct></value>
</param>
</params>
</methodCall>

Generated SUBSCRIBE request doesn't have a Via header

When processing outgoing subscriptions generated by the RLS module, I'm catching them in the local_route and sending them back to myself for processing by changing the destination URI.

After switching to master, I started to see this log line a lot, and when I looked at the packets I realized that there is no Via header!

ERROR:core:receive_msg: no via found in request
SUBSCRIBE sip:[email protected] SIP/2.0
To: sip:[email protected]
From: <sip:[email protected]>;tag=1402dd7129a927d44a5550541d2b48a7-f0e3
CSeq: 10 SUBSCRIBE
Call-ID: [email protected]
Max-Forwards: 70
Content-Length: 0
Event: presence
Contact: <sip:[email protected]>
Expires: 600
Supported: eventlist
Accept: application/pidf+xml, application/rlmi+xml, application/watcherinfo+xml, multipart/related, application/xcap-diff+xml
Self-Forwarded: Yes

What could possibly cause this?

1.7: crash because `rpl` (sip_msg) in build_local is cleared

Hi. I'm running opensips 1.7 r9016. Sorry for not upgrading.

But, as far as I can tell, no updates have been made to modules/tm since then that have fixed this issue I experienced (once).

The following happens (sipcaparseye output):

09:56:03.665599 CUST:55271 > OSIPS:6060 160 INVITE
09:56:03.665757 OSIPS:6060 > CUST:55271 160 INVITE(100)
09:56:03.761652 OSIPS:6060 > CUST:55271 160 INVITE(407)
09:56:03.804410 CUST:55271 > OSIPS:6060 160 ACK

(customer attempts to call, gets auth request)

09:56:03.878668 CUST:55271 > OSIPS:6060 161 INVITE
09:56:03.878851 OSIPS:6060 > CUST:55271 161 INVITE(100)

(auth is correct, call is forwarded to pbx)

09:56:03.880829 OSIPS:5060 > PBX__:5060 161 INVITE
09:56:03.904852 PBX__:5060 > OSIPS:5060 161 INVITE(100)
09:56:03.943376 PBX__:5060 > OSIPS:5060 161 INVITE(183)
09:56:03.943623 OSIPS:6060 > CUST:55271 161 INVITE(183)

(number-does-not-exist tones are played)

09:56:08.345867 CUST:55271 > OSIPS:6060 161 CANCEL

(customer cancels)

09:56:08.345976 PBX__:5060 > OSIPS:5060 161 INVITE(404)

(simultaneously pbx sends 404)

09:56:08.346056 OSIPS:6060 > CUST:55271 161 CANCEL(200)
09:56:08.346056 OSIPS:5060 > PBX__:5060 161 ACK
09:56:08.348717 OSIPS:6060 > CUST:55271 161 INVITE(404)
09:56:08.393844 CUST:55271 > OSIPS:6060 161 ACK 

(and here we crash)

Backtrace says:

Program terminated with signal 11, Segmentation fault.
#0  0x00007f49faaa1dab in build_local (Trans=0x7f49f389fd88, branch=0, method=0x7fff64ba8340, extra=0x7f49facc0da0, rpl=0x7efec8, len=0x7fff64ba83ac) at t_msgbuilder.c:123
123         to.s = rpl->to->name.s;
(gdb) print rpl
$1 = (struct sip_msg *) 0x7efec8
(gdb) print *rpl
$2 = {id = 0, first_line = {type = 0, len = 0, u = {request = {method = {s = 0x0, len = 0}, uri = {s = 0x0, len = 0}, version = {s = 0x0, len = 0}, method_value = 0}, reply = {version = {s = 0x0, 
      len = 0}, status = {s = 0x0, len = 0}...
(gdb) print rpl->to
$3 = (struct hdr_field *) 0x0

(gdb) up
#1  0x00007f49faa8acd5 in build_cancel (Trans=0x7f49f389fd88, branch=0, len=0x7fff64ba83ac) at t_cancel.c:137
137     return build_local( Trans, branch, &method, extra,
138         Trans->uac[branch].reply , len );
(gdb) print branch
$4 = 0
(gdb) print Trans->uac[branch].reply
$5 = (struct sip_msg *) 0x0

So.. how come rpl is non-zero in build_local, while it is zero in the caller struct. Has it been cleared/freed by another process in the mean time?

Is there anything else I can get you?

Regards,
Walter Doekes
OSSO B.V.

Wrong password column used for authentication

OpenSIPS branch 1.8

I am running into the same issue as described in bug #477. Are there any updates on this issue? I am having trouble finding the problem in the code as I am unfamiliar with the db/auth modules. It could be a while before I find a solution. Thanks for any support you can give me.

Description: When I authenticate two clients (one client with the digest username: "user1", and the other with the username: "[email protected]"), the second client authentication fails. From debug messages, it seems that once a password column is used once (ha1 or ha1b), it will be used in all following queries even if the other password column should be used.

Relevant debug:
First authentication (Success, generates new query) :
DBG:auth_db:get_ha1: username: user2
DBG:auth_db:get_ha1: domain portion: sip.domain.com
DBG:auth_db:get_ha1: calc_ha1: 0
DBG:auth_db:get_ha1: using pass column 2 ha1b
DBG:db_mysql:db_mysql_do_prepared_query: conn=0x7f674f42ec98 (tail=140081688144552) MC=0x7f674f430ee8
DBG:db_mysql:db_mysql_do_prepared_query: new query=|select ha1b from subscriber where username=? AND domain=?|
DBG:db_mysql:re_init_statement: query is , ptr=(nil) DBG:db_mysql:db_mysql_do_prepared_query: new statement(0x7f674f441238) on connection: (0x7f674f42ec98) 0x7f674f42eaa8 DBG:db_mysql:db_mysql_do_prepared_query: set values for the statement run DBG:db_mysql:db_mysql_val2bind: added val (0): len=8; type=254; is_null=0 DBG:db_mysql:db_mysql_val2bind: added val (1): len=14; type=254; is_null=0 DBG:db_mysql:db_mysql_do_prepared_query: doing BIND_PARAM in... DBG:db_mysql:db_mysql_do_prepared_query: prepared statement has 1 columns in result DBG:db_mysql:db_mysql_do_prepared_query: doing to BIND_PARAM out ... DBG:core:db_new_result: allocate 48 bytes for result set at 0x7f674f440ef8 DBG:db_mysql:db_mysql_get_columns: 1 columns returned from the query DBG:core:db_allocate_columns: allocate 28 bytes for result columns at 0x7f674f440f40 DBG:db_mysql:db_mysql_get_columns: RES_NAMES(0x7f674f440f48)[0]=[ha1b] DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type DBG:core:db_allocate_rows: allocate 48 bytes for result rows and values at 0x7f674f440f78 DBG:db_mysql:db_mysql_str2val: converting STRING [a05a32187aab07c37c874b311bf5cc36] DBG:auth:check_response: our result = '416f60b359e7e74f6c427044addd80c1' DBG:auth:check_response: authorization is OK Second authentication (Failure, note that no new query is prepared and the result column name is ha1b) : DBG:auth_db:get_ha1: username: user1 DBG:auth_db:get_ha1: domain portion: DBG:auth_db:get_ha1: calc_ha1: 0 DBG:auth_db:get_ha1: using pass column 1 ha1 DBG:db_mysql:has_stmt_ctx: ctx found for subscriber DBG:db_mysql:db_mysql_do_prepared_query: conn=0x7f674f42ec98 (tail=140081688144552) MC=0x7f674f430ee8 DBG:db_mysql:db_mysql_do_prepared_query: set values for the statement run DBG:db_mysql:db_mysql_val2bind: added val (0): len=8; type=254; is_null=0 DBG:db_mysql:db_mysql_val2bind: added val (1): len=14; type=254; is_null=0 DBG:db_mysql:db_mysql_do_prepared_query: doing BIND_PARAM in... DBG:db_mysql:db_mysql_do_prepared_query: prepared statement has 1 columns in result DBG:core:db_new_result: allocate 48 bytes for result set at 0x7f674f440cf8 DBG:db_mysql:db_mysql_get_columns: 1 columns returned from the query DBG:core:db_allocate_columns: allocate 28 bytes for result columns at 0x7f674f440f40 DBG:db_mysql:db_mysql_get_columns: RES_NAMES(0x7f674f440f48)[0]=[ha1b] DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type DBG:core:db_allocate_rows: allocate 48 bytes for result rows and values at 0x7f674f441940 DBG:db_mysql:db_mysql_str2val: converting STRING [a05a32187aab07c37c874b311bf5cc36] DBG:auth:check_response: our result = 'bc17e12c512d25b469d6d131221b2ee9' DBG:auth:check_response: authorization failed

Bug with pua_dialoginfo and parallel forking (1.9, 1.10)

Bug in pua_dialoginfo…
Case:

  1. Register phone no. 1 with [email protected]
  2. Register phone no. 2 with [email protected]
  3. Call to [email protected] from somewhere
  4. Answer on phone no. 1
  5. Call from [email protected] to somewhere
  6. Hang up phone no. 1
  7. Hang up phone no. 2

Expected behaviour for phone no. 1:

  1. phone no. 1 receives early and confirmed from dialog no. 1
  2. phone no. 1 receives early and confirmed from dialog no. 2
  3. phone no. 1 receives terminated from dialog no. 1
  4. phone no. 1 receives terminated from dialog no. 2

We have on phone no. 1:

  1. phone no. 1 receives early and confirmed from call no. 1
  2. phone no. 2 receives early from dialog #1 and confirmed from dialog no. 2
  3. phone no. 1 receives confirmed from dialog no. 2
  4. phone no. 1 receives terminated from dialog no. 2

Max Amount of info stored on dialog?

Hi
Is there any limit on the amount of info stored on the dialog using function store_dlg_value.

I would like to store 6 float values to retrieve on call hangup.

Thanks

Module dialog.db_mode=DELAYED pushes incomplete data to DB

dialog.db_mode=REALTIME pushes dialog data correctly to DB. However, db_mode=DELAYED pushed incomplete data and this causes:

  • problems with dialog profiles (as this data is missing)
  • no acc record insertion when BYE is received (at least when I use cdr mode).

For comparison, for the same call, here are periodic dialog push and the one that is produced when we shutdown the server (which is the same as db_mode REALTIME generates):

After periodic dialog db update:

mysql> select * from dialog;
+---------------+--------------------------------------+-----------------------------------+--------------------------------------+--------------------------------+--------------------------------------+------------------+----------------+-------------+-------------+------------------+------------------+------------------+------------------+----------------------------------+------------------------------------+------------------------+------------------------+-------+------------+------------+------+----------+--------------+-------+
| dlg_id | callid | from_uri | from_tag | to_uri | to_tag | mangled_from_uri | mangled_to_uri | caller_cseq | callee_cseq | caller_ping_cseq | callee_ping_cseq | caller_route_set | callee_route_set | caller_contact | callee_contact | caller_sock | callee_sock | state | start_time | timeout | vars | profiles | script_flags | flags |
+---------------+--------------------------------------+-----------------------------------+--------------------------------------+--------------------------------+--------------------------------------+------------------+----------------+-------------+-------------+------------------+------------------+------------------+------------------+----------------------------------+------------------------------------+------------------------+------------------------+-------+------------+------------+------+----------+--------------+-------+
| 9549462304683 | b583e688-f87b-4861-936f-7dc76e33004a | sip:[email protected] | d2ecbce5-9275-4788-a40c-509a23476e35 | sip:[email protected] | 39178165-9e29-4a31-af78-51e61e54920c | NULL | NULL | 0 | 21320 | 0 | 0 | NULL | NULL | sip:[email protected]:5060 | sip:[email protected]:10802 | udp:192.168.2.177:5060 | udp:192.168.2.177:5060 | 4 | 1380805509 | 1380816310 | NULL | NULL | 0 | 16 |
+---------------+--------------------------------------+-----------------------------------+--------------------------------------+--------------------------------+--------------------------------------+------------------+----------------+-------------+-------------+------------------+------------------+------------------+------------------+----------------------------------+------------------------------------+------------------------+------------------------+-------+------------+------------+------+----------+--------------+-------+
1 row in set (0.00 sec)

After opensips graceful shutdown:

mysql> select * from dialog;
+---------------+--------------------------------------+-----------------------------------+--------------------------------------+--------------------------------+--------------------------------------+------------------+----------------+-------------+-------------+------------------+------------------+------------------+------------------+----------------------------------+------------------------------------+------------------------+------------------------+-------+------------+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------+--------------+-------+
| dlg_id | callid | from_uri | from_tag | to_uri | to_tag | mangled_from_uri | mangled_to_uri | caller_cseq | callee_cseq | caller_ping_cseq | callee_ping_cseq | caller_route_set | callee_route_set | caller_contact | callee_contact | caller_sock | callee_sock | state | start_time | timeout | vars | profiles | script_flags | flags |
+---------------+--------------------------------------+-----------------------------------+--------------------------------------+--------------------------------+--------------------------------------+------------------+----------------+-------------+-------------+------------------+------------------+------------------+------------------+----------------------------------+------------------------------------+------------------------+------------------------+-------+------------+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------+--------------+-------+
| 9549462304683 | b583e688-f87b-4861-936f-7dc76e33004a | sip:[email protected] | d2ecbce5-9275-4788-a40c-509a23476e35 | sip:[email protected] | 39178165-9e29-4a31-af78-51e61e54920c | NULL | NULL | 0 | 21320 | 0 | 0 | NULL | NULL | sip:[email protected]:5060 | sip:[email protected]:10802 | udp:192.168.2.177:5060 | udp:192.168.2.177:5060 | 4 | 1380805509 | 1380816309 | accX_table#acc|accX_flags# |accX_db the_domain_sestts.com 1 53535353224123 234223423423 53535353224123 the_user_sfsfe 1|accX_log the_domain_sestts.com 1 53535353224123 234223423423 53535353224123 the_user_sfsfe 1|accX_leg# |accX_core# INVITE$ d2ecbce5-9275-4788-a40c-509a23476e35$ 39178165-9e29-4a31-af78-51e61e54920c$ b583e688-f87b-4861-936f-7dc76e33004a 200 O …kMR |accX_created#…kMR |rtpproxy_1#w | | calls#the_domain_sestts.com| | 0 | 16 |
+---------------+--------------------------------------+-----------------------------------+--------------------------------------+--------------------------------+--------------------------------------+------------------+----------------+-------------+-------------+------------------+------------------+------------------+------------------+----------------------------------+------------------------------------+------------------------+------------------------+-------+------------+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------+--------------+-------+
1 row in set (0.00 sec)

Regards,
Takeshi

Crash with bogus SDP

I found the following SDP makes OpenSIPS crash, when stream_delete operations are used:


v=0
o=- 3585301728 3585301728 IN IP4 1.2.3.4
s=pjmedia
i=(o=IN IP4 192.168.1.100)
b=AS:84
t=0 0
m=audio 53930 RTP/AVP 97 0 96
c=IN IP4 213.205.229.228
b=TIAS:64000
a=rtcp:53931 IN IP4 1.2.3.4
a=sendrecv
a=rtpmap:97 speex/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15

Note the stupid i= line.

Particularly, we use:

stream_delete("video");
stream_delete("message");

Without those, it doesn't crash.

Opensips tm fails to cancel fr_timer if "100 Trying" is received too soon

I was testing upgrading my OS from CentOS 5.3 to CentOS 6.4. After that, the same opensips.cfg (that uses SIP UDP only) started to fail to cancel the fr_timer when "100 Trying" is received.
The scenario is:
uac --> INVITE --> opensips --> INVITE --> FreeSWITCH
where opensips and FreeSWITCH reside on the same CentOS 6.4 machine.
FS just replies with "100 Trying" and sleep. Then after fr_timer passes, opensips terminates the call with "408 Request Timeout", but it shoudn't.
I know "100 Trying" was processed by opensips because it doesn't retransmit the INVITE to FS.

It seems to me that in CentOS 6.4, the OS handles the packets to opensips more quickly than with CentOS 5.3 and opensips is not ready to handle it.

To confirm this, I added a small delay in the packets doing this:
tc qdisc add dev lo root netem delay 1ms
and after that, opensips correctly canceled the fr_timer after reception of "100 Trying".

I have originally found this issue on branch 1.6, but I tested the latest revision of all branches 1.7, 1.8, 1.9 up to head and all of them shows this issue.
The one that I used for the investigation is this:

svn info

Path: .
URL: http://svn.code.sf.net/p/opensips/svn/trunk
Repository Root: http://svn.code.sf.net/p/opensips/svn
Repository UUID: 689a6050-402a-0410-94f2-e92a70836424
Revision: 10114
Node Kind: directory
Schedule: normal
Last Changed Author: opensipsrelease
Last Changed Rev: 10112
Last Changed Date: 2013-07-12 01:40:29 +0900 (Fri, 12 Jul 2013)

Regards,
Takeshi

Opensips 1.9 Rev4448 Crash in Dialog Module

(gdb) bt full
#0 is_dlg_in_profile (msg=, profile=0x7fa1c0589c70, value=0x7fff7d815880) at dlg_profile.c:825

    dlg = <value optimized out>
    linker = 0x7fa10000000d
    d_entry = 0x7fa1c05a4e68

#1 0x00007fa2034d5aa0 in w_is_in_profile (msg=0x7fa2049e12d0, profile=0x7fa1c0589c70 "0\235X\300\241\177", value=) at dialog.c:1075

    pve = <value optimized out>
    val_s = {s = 0x78c200 "<null>", len = 6}
    __FUNCTION__ = "w_is_in_profile"

#2 0x00000000004119d6 in do_action (a=0x7fa204886648, msg=0x7fa2049e12d0) at action.c:1715

    val_s = {s = 0x1 <Address 0x1 out of bounds>, len = 2105630336}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = 8025704, s = {
        s = 0x7a7668 "200 OK\r\nVia: SIP/2.0/UDP 69.16.192.214:5060;branch=z9hG4bK163b.cd43c5b5.0\r\nVia: SIP/2.0/UDP 216.109.69.102;received=216.109.69.102;rport=5060;branch=z9hG4bK3cmyeD9UF72Fm\r\nFrom: <sip:[email protected]"..., len = 1}}
    j = <value optimized out>
    key_number = <value optimized out>
    cdb_res = <value optimized out>
    adv_addr = {s = 0x1 <Address 0x1 out of bounds>, len = 2105632256}
    increment = <value optimized out>
    decrement = <value optimized out>
    avp_type = <value optimized out>
    aux = {s = 0x782860 "(d0\300\241\177", len = -2056481229}
    cdb_reply = <value optimized out>
    val_number = <value optimized out>
    it = <value optimized out>
    avp_name = {n = 8482496, s = {s = 0x816ec0 "\260o\201", len = 2105630336}}
    ret = -5
    v = <value optimized out>
    sec = <value optimized out>
    usec = <value optimized out>
    to = <value optimized out>
    p = <value optimized out>
    tmp = <value optimized out>
    new_uri = <value optimized out>
    end = <value optimized out>

---Type to continue, or q to quit---
crt =
len =
i =
user = 0
expires = 0
vals = {{s = 0x816ec0 "\260o\201", len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}}
result = {
s = 0x7a7668 "200 OK\r\nVia: SIP/2.0/UDP 69.16.192.214:5060;branch=z9hG4bK163b.cd43c5b5.0\r\nVia: SIP/2.0/UDP 216.109.69.102;received=216.109.69.102;rport=5060;branch=z9hG4bK3cmyeD9UF72Fm\r\nFrom: <sip:[email protected]"..., len = 77468368}
uri = {user = {s = 0x1 <Address 0x1 out of bounds>, len = 2}, passwd = {s = 0x1 <Address 0x1 out of bounds>, len = 2105629792}, host = {
s = 0x7fff7d815e60 "0c\201}\377\177", len = 0}, port = {s = 0x4 <Address 0x4 out of bounds>, len = -2053575040}, params = {s = 0x0, len = 0}, headers = {s = 0x0,
len = 0}, port_no = 28352, proto = 129, type = ERROR_URI_T, transport = {s = 0x0, len = 2105629872}, ttl = {s = 0x31856c7897 "\213D$8H\201\304\070\002", len = 0},
user_param = {s = 0x300000000 <Address 0x300000000 out of bounds>, len = 3}, maddr = {s = 0x300000003 <Address 0x300000003 out of bounds>, len = 3}, method = {
s = 0x600000003 <Address 0x600000003 out of bounds>, len = 0}, lr = {s = 0x7fa200000000 "", len = 2105630136}, r2 = {s = 0x0, len = 1}, gr = {
s = 0x17d815c38 <Address 0x17d815c38 out of bounds>, len = 8482496}, transport_val = {s = 0x7fa204885f28 "\300n\201", len = 76071008}, ttl_val = {s = 0x816db0 "",
len = 3}, user_param_val = {s = 0x7fff7d815d88 "\177\236H", len = 1380054945}, maddr_val = {
s = 0x7a7668 "200 OK\r\nVia: SIP/2.0/UDP 69.16.192.214:5060;branch=z9hG4bK163b.cd43c5b5.0\r\nVia: SIP/2.0/UDP 216.109.69.102;received=216.109.69.102;rport=5060;branch=z9hG4bK3cmyeD9UF72Fm\r\nFrom: <sip:[email protected]"..., len = 0}, method_val = {s = 0x200000001 <Address 0x200000001 out of bounds>, len = 1}, lr_val = {
s = 0x7fff7d815d70 "|\227\003\242\177", len = 1}, r2_val = {s = 0x2 <Address 0x2 out of bounds>, len = 0}, gr_val = {s = 0x7fff7d815da0 "\001", len = 1380054945}, u_name = {{s = 0xec1d4 <Address 0xec1d4 out of bounds>, len = 77480894}, {s = 0x4 <Address 0x4 out of bounds>, len = 77480899}, {s = 0xa <Address 0xa out of bounds>, len = 1380054945}, {s = 0xec518 <Address 0xec518 out of bounds>, len = 8025704}, {s = 0x8da1a0 "\260", <incomplete sequence \360\213>, len = 0}}, u_val = {{ s = 0x0, len = 0}, {s = 0x300000000 <Address 0x300000000 out of bounds>, len = 3}, {s = 0x300000003 <Address 0x300000003 out of bounds>, len = 3}, { s = 0x600000003 <Address 0x600000003 out of bounds>, len = 0}, {s = 0x816f68 "", len = 16777217}}, u_params_no = 1} next_hop = {user = {s = 0x5241f7a1 <Address 0x5241f7a1 out of bounds>, len = 968027}, passwd = {s = 0x2d048c5be0 <Address 0x2d048c5be0 out of bounds>, len = 5017639}, host = {s = 0x7fff7d815cd8 "", len = 0}, port = {s = 0x400 <Address 0x400 out of bounds>, len = 27}, params = {s = 0x1 <Address 0x1 out of bounds>, len = 4995577}, headers = {s = 0x0, len = 24}, port_no = 2, proto = 0, type = ERROR_URI_T, transport = {s = 0x2 <Address 0x2 out of bounds>, len = 0}, ttl = {s = 0x7fa204858030 "", len = 2105629216}, user_param = {s = 0x7fa203977c60 "\376~d", len = 53}, maddr = {s = 0x35 <Address 0x35 out of bounds>, len = 2105634620}, method = { s = 0x7fa2048584e8 "\002", len = 60259424}, lr = {s = 0x0, len = 3}, r2 = {s = 0x2 <Address 0x2 out of bounds>, len = 2105634620}, gr = { s = 0x48b80d "D\213-T\256\060", len = 75859256}, transport_val = {s = 0x7fa203977c60 "\376~d", len = 0}, ttl_val = {s = 0x2 <Address 0x2 out of bounds>, len = 3}, user_param_val = {s = 0x48b7a4 "\203", <incomplete sequence \370>, len = 75859336}, maddr_val = {s = 0x7fa203977c60 "\376~d", len = 0}, method_val = { s = 0x1 <Address 0x1 out of bounds>, len = 4}, lr_val = {s = 0x48b7d3 "D\213-\216\256\060", len = 75860368}, r2_val = {s = 0x7fa203977c60 "\376~d", len = 0}, gr_val = {s = 0x318569c95a "=\001\360\377\377s\005H\203\304\b\303H\213\r3\006/", len = 60259424}, u_name = {{s = 0x40faf9 "L\213\244$\350\004", len = 0}, { s = 0x3185683b2a "\353\255\017\037@", len = 76073664}, {s = 0x7fa20488cac0 "\006", len = 1}, {s = 0x331 <Address 0x331 out of bounds>, len = 0}, { s = 0x40fbc7 "Mc\355I\301\345\004E\211\245\210\203|", len = 8491104}}, u_val = {{s = 0x7fa2049cdc80 "\220\201", len = 64}, {s = 0x818f50 "", len = 3}, {
s = 0x7fff7d815c48 "p]\201}\377\177", len = 0}, {s = 0x7cac92 "150", len = 0}, {
s = 0x31856c1cb4 "\351\023\373\377\377D\215h\001\071\325D\017N\350A\215u\377D\211\362H\211߉L$\020\350z^\377\377A9\355\211CL\213L$\020u\020\071\351~\fLc\365G\213\00---Type to continue, or q to quit---
4\267A9\350tg\211\350\306Cd", len = 1}}, u_params_no = 23600}
u =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0x7fa203977c60 "\376~d", len = 76075264}, ri = 2105634620, flags = 32767}
pve =
name_s = {s = 0x0, len = 0}
start = {tv_sec = 1380054945, tv_usec = 968813}
end_time = 77468368
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#3 0x000000000040f690 in run_action_list (a=, msg=0x7fa2049e12d0) at action.c:171

    ret = <value optimized out>
    t = 0x7fa204886648

#4 0x0000000000489e7f in eval_elem (e=0x7fa204886720, msg=0x7fa2049e12d0, val=0x0) at route.c:1499

    uri = {user = {s = 0x200000000 <Address 0x200000000 out of bounds>, len = 2105631560}, passwd = {s = 0x7fff7d816064 "\377\177", len = 0}, host = {
        s = 0x7fa200f63cab "%ld", len = -2055903698}, port = {s = 0x0, len = 968408}, params = {s = 0x0, len = 2105630832}, headers = {
        s = 0x7fff7d816070 "`|\227\003\242\177", len = 4613831}, port_no = 12, proto = 0, type = ERROR_URI_T, transport = {s = 0x7fa2049cdba0 "\026\262\210\004\242\177", 
        len = 1380054945}, ttl = {s = 0xec516 <Address 0xec516 out of bounds>, len = -973221328}, user_param = {s = 0x7fa20488c4e8 "5", len = 1}, maddr = {
        s = 0x7fa203977c60 "\376~d", len = 76071680}, method = {s = 0x35 <Address 0x35 out of bounds>, len = 1380054945}, lr = {
        s = 0x7fff7d816478 "\253<", <incomplete sequence \366>, len = 5}, r2 = {s = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>, len = 0}, gr = {
        s = 0x7fff7d8164e0 "", len = 2105631952}, transport_val = {s = 0x7fff7d816030 "0", len = -1}, ttl_val = {s = 0x7fff7d816030 "0", len = -1}, user_param_val = {
        s = 0x3185656cba "\351\224\344\377\377I\211\375\351\071\372\377\377H\213\005\322b3", len = 805306416}, maddr_val = {s = 0x2 <Address 0x2 out of bounds>, 
        len = 60259424}, method_val = {s = 0x7fff7d816078 "", len = 2105634620}, lr_val = {s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = 2105634620}, r2_val = {
        s = 0x7fa20488d100 "\002", len = 60259424}, gr_val = {s = 0x0, len = 2}, u_name = {{s = 0x7fa20488d3e8 "\006", len = 1}, {s = 0x2 <Address 0x2 out of bounds>, 
          len = 27487791}, {s = 0x1d0 <Address 0x1d0 out of bounds>, len = -7}, {s = 0x1 <Address 0x1 out of bounds>, len = 4}, {
          s = 0x7fff7d8165b0 "\001\200\255", <incomplete sequence \373>, len = 2105632160}}, u_val = {{s = 0x7fff7d816100 "0.004400", len = -1}, {
          s = 0x8 <Address 0x8 out of bounds>, len = 2105630976}, {s = 0x3185656cba "\351\224\344\377\377I\211\375\351\071\372\377\377H\213\005\322b3", len = 808463920}, {
          s = 0x318598ad00 "", len = 0}, {s = 0x7fa20495e7a0 "\002", len = 0}}, u_params_no = 0}
    ret = -5
    ival = <value optimized out>
    lval = {rs = {s = 0x7fff7d81633b "", len = 0}, ri = 2105631745, flags = 808532017}

---Type to continue, or q to quit---
rval = {rs = {s = 0x65 <Address 0x65 out of bounds>, len = 4995577}, ri = -2053581440, flags = 49}
p =
i =
n =
FUNCTION = "eval_elem"
#5 0x000000000048b80d in eval_expr (e=0x7fa204886720, msg=0x7fa2049e12d0, val=0x0) at route.c:1844

    rec_lev = 3
    ret = <value optimized out>
    __FUNCTION__ = "eval_expr"

#6 0x000000000048b7a4 in eval_expr (e=0x7fa204886770, msg=0x7fa2049e12d0, val=0x0) at route.c:1860

    rec_lev = 3
    ret = <value optimized out>
    __FUNCTION__ = "eval_expr"

#7 0x000000000048b7d3 in eval_expr (e=0x7fa2048867c0, msg=0x7fa2049e12d0, val=0x0) at route.c:1865

    rec_lev = 3
    ret = <value optimized out>
    __FUNCTION__ = "eval_expr"

#8 0x0000000000411b1c in do_action (a=0x7fa204886ab0, msg=0x7fa2049e12d0) at action.c:993

    val_s = {s = 0x96a3e0 "", len = 76047168}
    aux_counter = <value optimized out>
    i = <value optimized out>
    avp_val = {n = 2105632760, s = {s = 0x7fff7d8167f8 "@c\210\004\242\177", len = 9320960}}
    j = <value optimized out>
    key_number = <value optimized out>
    cdb_res = <value optimized out>
    adv_addr = {
      s = 0x7fa200f63ec8 "\230\324\377\377\b\325\377\377\350\325\377\377(\325\377\377(\326\377\377h\331\377\377\060\332\377\377\350\332\377\377X\333\377\377h\334\377\377\360\334\377\377\230\335\377\377\260\323\377\377p\336\377\377\210\330\377\377\310\330\377\377\030\331\377\377\330\326\377\377\340\327\377\377\240\326\377\377(\330\377\377H\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377V\343\377\377\301\324\377\377\301\324\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377"..., len = 9798992}
    increment = <value optimized out>
    decrement = <value optimized out>
    avp_type = <value optimized out>
    aux = {s = 0x96a3e0 "", len = 0}
    cdb_reply = <value optimized out>

---Type to continue, or q to quit---
val_number =
it =
avp_name = {n = 2105632783, s = {s = 0x7fff7d81680f "", len = 9325728}}
ret = -5
v =
sec =
usec =
to =
p =
tmp =
new_uri =
end =
crt =
len =
i =
user = 0
expires = 0
vals = {{s = 0x16160 <Address 0x16160 out of bounds>, len = 9338624}, {s = 0x8 <Address 0x8 out of bounds>, len = -2053575040}, {
s = 0x7fa200f63ec8 "\230\324\377\377\b\325\377\377\350\325\377\377(\325\377\377(\326\377\377h\331\377\377\060\332\377\377\350\332\377\377X\333\377\377h\334\377\377\360\334\377\377\230\335\377\377\260\323\377\377p\336\377\377\210\330\377\377\310\330\377\377\030\331\377\377\330\326\377\377\340\327\377\377\240\326\377\377(\330\377\377H\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377z\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377V\343\377\377\301\324\377\377\301\324\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377V\343\377\377\301\324\377\377\301\324\377\377\301\324\377\377\301\324\377\377"..., len = 2105632783}, {s = 0x1 <Address 0x1 out of bounds>, len = -2056804079}, {s = 0x8e7f00 "", len = 8}}
result = {s = 0x782860 "(d0\300\241\177", len = 4765709}
uri = {user = {s = 0x7fa2049e12d0 "\001\177d", len = 76047168}, passwd = {s = 0x782860 "(d0\300\241\177", len = 4759167}, host = {s = 0x917141 "", len = 0}, port = {
s = 0x0, len = 0}, params = {s = 0x0, len = 0}, headers = {s = 0xffffffff <Address 0xffffffff out of bounds>, len = 4760670}, port_no = 0, proto = 0,
type = ERROR_URI_T, transport = {s = 0x318598c440 "", len = 0}, ttl = {s = 0x958550 "\240\f\220", len = 2105632464}, user_param = {s = 0x0, len = 2105632783},
maddr = {
s = 0x7fa204a01fa2 ", "pp_ok": 0, "effective_date": "2013-09-17 00:00:00", "min_duration": 6, "increment": 6, "surcharge": 0, "priority_position": 0, "effective_jurisdiction": "E" } ]", len = -1}, method = {s = 0x3185669945 "H\213\234$", <incomplete sequence \370>, len = -72515583}, lr = {s = 0x318598c740 "", len = 0},
r2 = {s = 0x7fff7d8166cf "", len = 2105632768}, gr = {s = 0x7fa2067ee6a8 "", len = 0}, transport_val = {s = 0x7fa2067ee6b0 "@\027t\205\061", len = 2105632512},
ttl_val = {s = 0x31856ff9ba "H\201\304", <incomplete sequence \320>, len = 48}, user_param_val = {s = 0x7fff7d8166e0 "", len = 2105632288}, maddr_val = {
s = 0x318598ee80 "", len = 1040}, method_val = {
s = 0x3185679385 "L\213T$\bL\213D$\020L\211\375D\211\371L\211\370H\301\355\006\301\351\004H\301\350\tH\211l$(\203\305\060\211L$X\211l$\H\211D$0L\211\372\203\300[L\211\371L\211\375H\301\352\fH\301\351\017H\301\355\022\211D$`I\215G H\211T$PH\211L$H\203\302n\203\301wH\211l$@l\215cX\203\305|\211T$l\211L$hA\271\001", len = 2105632504},
lr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 16137472}, r2_val = {s = 0x0, len = 64}, gr_val = {s = 0x10 <Address 0x10 out of bounds>, len = 2}, u_name = {{
---Type to continue, or q to quit---
s = 0x430 <Address 0x430 out of bounds>, len = 0}, {s = 0x0, len = 0}, {s = 0x4000000041 <Address 0x4000000041 out of bounds>, len = 33}, {
s = 0x1 <Address 0x1 out of bounds>, len = 0}, {s = 0x80 <Address 0x80 out of bounds>, len = 4}}, u_val = {{s = 0x1 <Address 0x1 out of bounds>, len = 2}, {
s = 0x0, len = 0}, {s = 0x50 <Address 0x50 out of bounds>, len = 0}, {s = 0x0, len = 0}, {s = 0x3000000003 <Address 0x3000000003 out of bounds>, len = 91}},
u_params_no = 119}
next_hop = {user = {s = 0x0, len = 967087}, passwd = {s = 0x7fff7d8166d0 "", len = 0}, host = {s = 0x917165 "", len = 10}, port = {s = 0x318598d580 " \255\230\205\061",
len = 0}, params = {s = 0x7fff00000001 <Address 0x7fff00000001 out of bounds>, len = 0}, headers = {
s = 0x303638317d816501 <Address 0x303638317d816501 out of bounds>, len = 16137459}, port_no = 65535, proto = 65535, type = ERROR_URI_T, transport = {
s = 0xd <Address 0xd out of bounds>, len = 60259424}, ttl = {s = 0x7fff7d816398 "", len = 40}, user_param = {s = 0x7fff7d8166e0 "", len = 2105632288}, maddr = {
s = 0x45a583 "\213C\024\351\017\377\377\377I;\b}\256\353\244AWAVAUATUSH\203\354\bI\211\375H\211\365H\205\377\017\204\332\001", len = 2105632512}, method = {
s = 0x7fff7d816700 "[", len = 2105632336}, lr = {s = 0x0, len = 1380054945}, r2 = {s = 0xec86d <Address 0xec86d out of bounds>, len = 60259424}, gr = {
s = 0x7fa20488bd18 "\002", len = -2056895104}, transport_val = {s = 0x7fff7d8164e0 "", len = 0}, ttl_val = {s = 0x0, len = 2105632367}, user_param_val = {
s = 0x7fa204a01fa6 "p_ok": 0, "effective_date": "2013-09-17 00:00:00", "min_duration": 6, "increment": 6, "surcharge": 0, "priority_position": 0, "effective_jurisdiction": "E" } ]", len = -1}, maddr_val = {s = 0x3185669945 "H\213\234$", <incomplete sequence \370>, len = 24}, method_val = {s = 0x7fff7d8166e0 "",
len = 2105632288}, lr_val = {s = 0x7fff7d81652f "", len = 1380054945}, r2_val = {s = 0xec86b <Address 0xec86b out of bounds>, len = 0}, gr_val = {
s = 0x7fff7d816490 "\377\377\377\377", len = 2105632512}, u_name = {{s = 0x7fff7d816580 "\320f\201}\377\177", len = 1}, {s = 0x7fff7d816600 "0", len = 99}, {
s = 0x7fa200f63cab "%ld", len = 2105632512}, {s = 0x7fa204886268 "\017", len = -1}, {s = 0xd <Address 0xd out of bounds>, len = 77468368}}, u_val = {{
s = 0x7fff7d8164d8 "", len = 7874656}, {s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = 2105632611}, {s = 0x7fff7d816700 "[", len = 2105632611}, {s = 0x0,
len = 0}, {s = 0x0, len = 77468368}}, u_params_no = 13}
u =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0x8e4ca0 "\006", len = -2056777662}, ri = 1, flags = 0}
pve =
name_s = {s = 0x4 <Address 0x4 out of bounds>, len = 2}
start = {tv_sec = 1380054945, tv_usec = 968813}
end_time = 77468368
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#9 0x000000000040f690 in run_action_list (a=, msg=0x7fa2049e12d0) at action.c:171

    ret = <value optimized out>
    t = 0x7fa204886ab0

#10 0x0000000000414aa2 in do_action (a=0x7fa204888678, msg=0x7fa2049e12d0) at action.c:1010

---Type to continue, or q to quit---
val_s = {s = 0x0, len = 0}
aux_counter =
i =
avp_val = {n = -943900384, s = {s = 0x7fa1c7bd3920 "\223\002d", len = 77468368}}
j =
key_number =
cdb_res =
adv_addr = {s = 0x2 <Address 0x2 out of bounds>, len = 57956245}
increment =
decrement =
avp_type =
aux = {s = 0xc8 <Address 0xc8 out of bounds>, len = -910164920}
cdb_reply =
val_number =
it =
avp_name = {n = 2105634392, s = {s = 0x7fff7d816e58 "h\310\016", len = 8091264}}
ret = 1
v = 1
sec =
usec =
to =
p =
tmp =
new_uri =
end =
crt =
len =
i =
user = 0
expires = 0
vals = {{s = 0x29 <Address 0x29 out of bounds>, len = 5139833}, {s = 0x1 <Address 0x1 out of bounds>, len = 77468368}, {s = 0x7fa2049f3f30 "\001", len = 2}, {
s = 0x7fa1c884ab80 "", len = -943900384}, {s = 0x7fa2049e12d0 "\001\177d", len = 2}}
result = {s = 0x7fa1c0306428 "", len = -1070570456}
uri = {user = {s = 0x2c <Address 0x2c out of bounds>, len = 77468367}, passwd = {s = 0x3977c60 <Address 0x3977c60 out of bounds>, len = 77553096}, host = {
s = 0x5241f7a1 <Address 0x5241f7a1 out of bounds>, len = 5001829}, port = {s = 0x0, len = 2105633712}, params = {s = 0x7fa2049e12d0 "\001\177d", len = 77553096},
headers = {s = 0x0, len = 2105633752}, port_no = 8720, proto = 1177, type = 32674, transport = {s = 0x7fa1d03e8cf0 "\030\313_ơ\177", len = 52}, ttl = {
---Type to continue, or q to quit---
s = 0x51f0c9 "\211\350H\203\304\020[]A\A]A^ý\377\377\377\377H\213\005|7&", len = 1380054945}, user_param = {s = 0x0, len = 35964096}, maddr = {
s = 0x7fa203977c60 "\376~d", len = 51}, method = {s = 0x7fa20224af40 "@"\231\004\242\177", len = 51}, lr = {
s = 0x7fa20200f384 "\205\300\017\211\231\374\377\377L\213\r\025\217!", len = 2}, r2 = {s = 0x7fa200000000 "", len = -990327944}, gr = {
s = 0x7fff7d816d80 "0?\237\004\242\177", len = 1380054945}, transport_val = {s = 0xec6d8 <Address 0xec6d8 out of bounds>, len = 8208}, ttl_val = {
s = 0x7fa2022287d4 "\004", len = 60259424}, user_param_val = {s = 0x7fa20224c4c0 "\367\001", len = 77468368}, maddr_val = {s = 0x14 <Address 0x14 out of bounds>,
len = 77480864}, method_val = {s = 0x7fa202021a0f "\213\033\213\205\374\006", len = 35964096}, lr_val = {s = 0x7fa1c74533d8 "\002", len = -820407816}, r2_val = {
s = 0x7fa2049e12d0 "\001\177d", len = 45}, gr_val = {s = 0x7fff00000000 <Address 0x7fff00000000 out of bounds>, len = 1380054945}, u_name = {{
s = 0xec1af <Address 0xec1af out of bounds>, len = 43}, {s = 0x4c9027 "I\215D$\030H\203\304\020[]A\Ã\302\001\201\372\062\b", len = 0}, {
s = 0x7fa1c63f3468 "sip:[email protected]:5060;user=phonenee sINVITE sip:2131#[email protected]:5060 SIP/2.0\r\nVia: SIP/2.0/UDP 108.166.175.155;rport;branch=z9hG4bK78HjS8444Hevj\r\nMax-Forwards: 68\r\nFrom: <sip"..., len = 241}, {s = 0x20 <Address 0x20 out of bounds>, len = 77468368}, {
s = 0x4c9027 "I\215D$\030H\203\304\020[]A\Ã\302\001\201\372\062\b", len = -873009568}}, u_val = {{s = 0x7fa1d40fa740 "", len = 77530176}, {
s = 0x7fa2049e3318 "", len = 77480864}, {s = 0x4219a0 "H\211\303H\205\300ta1\300H\307\003", len = 77530176}, {
s = 0x7fa2049e43a0 "sip:2170#[email protected]:5060hone00", len = 7874656}, {s = 0x7fa2049e3318 "", len = 41}}, u_params_no = 3071}
next_hop = {user = {s = 0x782860 "(d0\300\241\177", len = 26500}, passwd = {s = 0x5241f7a1 <Address 0x5241f7a1 out of bounds>, len = 943765}, host = {s = 0x0,
len = 77513168}, port = {s = 0x7fa2049e12d0 "\001\177d", len = 8026262}, params = {s = 0x5241f7a1 <Address 0x5241f7a1 out of bounds>, len = 966679}, headers = {
s = 0x7a7898 "ct: sip:199.242.56.237:5060;transport=udp\r\nc: application/sdp\r\nl: 311\r\n\r\nv=0\r\no=PVG 1380054101710 1380054101710 IN IP4 199.173.90.94\r\ns=-\r\np=+1 6135555555\r\nc=IN IP4 199.173.90.94\r\nt=0 0\r\na=sqn: 0\r\na"..., len = 5042322}, port_no = 2, proto = 50195, type = 194926405, transport = {
s = 0x7fa2048038f8 "\016", len = 1}, ttl = {s = 0x7fa2049e12d0 "\001\177d", len = 77468368}, user_param = {s = 0x7fff7d8169f8 "\001", len = -1005387774}, maddr = {
s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = 75491728}, method = {s = 0x7fa2049e12d0 "\001\177d", len = 0}, lr = {s = 0x1 <Address 0x1 out of bounds>,
len = 1380054945}, r2 = {s = 0xebe22 <Address 0xebe22 out of bounds>, len = 75512488}, gr = {s = 0x7fa204803aa8 "\016", len = 0}, transport_val = {
s = 0xb <Address 0xb out of bounds>, len = 0}, ttl_val = {s = 0x40fbc7 "Mc\355I\301\345\004E\211\245\210\203|", len = 0}, user_param_val = {s = 0x0, len = 0},
maddr_val = {s = 0x7fa20496e578 "N", len = -5}, method_val = {s = 0x7fa20495e2e8 "M", len = 77553096}, lr_val = {s = 0x7fff7d816aa8 "(d0\300\241\177",
len = 77144592}, r2_val = {s = 0x40f690 "\211Ņ\300u\a\203\r\313_7", len = 2105633712}, gr_val = {s = 0x4666c7 "H\211\305H\205\300\017\204\224", len = 0}, u_name = {
{s = 0x7fa1c0306428 "", len = 77468368}, {s = 0x0, len = 0}, {s = 0x7fa20495e2e8 "M", len = 1}, {s = 0x7fa2049f5dc8 "", len = 77144592}, {
s = 0x416d99 "\213\005\311\350\066", len = 280}}, u_val = {{s = 0x7fa1c05ae1f8 "", len = -1070563232}, {s = 0x7fa200b4a410 "`\200\060\300\241\177", len = 0}, {
s = 0x0, len = 67109394}, {s = 0x7fa20094700f "L\211%\002\064 ", len = -1008910664}, {s = 0x1 <Address 0x1 out of bounds>, len = 280}}, u_params_no = 58742}
u =
cmatch =
aitem =
adefault =
spec =
model =
val = {rs = {s = 0x7fa1c884ab80 "", len = 2105634336}, ri = -930829440, flags = 32673}
pve =
name_s = {s = 0x0, len = 77474408}
start = {tv_sec = 1380054945, tv_usec = 968808}
---Type to continue, or q to quit---
end_time = 77468368
route_params_bak =
route_params_number_bak =
FUNCTION = "do_action"
#11 0x000000000040f690 in run_action_list (a=, msg=0x7fa2049e12d0) at action.c:171

    ret = <value optimized out>
    t = 0x7fa204888678

#12 0x0000000000416d99 in run_actions (a=0x7fa204885100, msg=0x7fa2049e12d0) at action.c:136

No locals.
#13 run_top_route (a=0x7fa204885100, msg=0x7fa2049e12d0) at action.c:211

    bl_last_msg_id = 6586113
    bk_action_flags = 0
    bk_rec_lev = 0
    ret = <value optimized out>

#14 0x00007fa203763bc9 in reply_received (p_msg=0x7fa2049e12d0) at t_reply.c:1503

    msg_status = 200
    last_uac_status = 200
    branch = 0
    reply_status = <value optimized out>
    timer = <value optimized out>
    cancel_bitmap = 0
    uac = 0x7fa1c884ad58
    t = 0x7fa1c884ab80
    backup_list = 0x7b7680
    has_reply_route = 1
    __FUNCTION__ = "reply_received"

#15 0x00000000004294ff in forward_reply (msg=0x7fa2049e12d0) at forward.c:575

    new_buf = 0x0
    to = 0x0
    new_len = <value optimized out>
    mod = 0x7fa2047f5488
    proto = <value optimized out>
    send_sock = <value optimized out>
    __FUNCTION__ = "forward_reply"

#16 0x00000000004736d0 in receive_msg (buf=, len=, rcv_info=0x7fff7d8171c0) at receive.c:207

    msg = 0x7fa2049e12d0

---Type to continue, or q to quit---
start = {tv_sec = 1380054945, tv_usec = 968465}
FUNCTION = "receive_msg"
#17 0x00000000004c18f1 in udp_rcv_loop () at udp_server.c:424

    len = <value optimized out>
    buf = "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 69.16.192.214:5060;branch=z9hG4bK163b.cd43c5b5.0\r\nVia: SIP/2.0/UDP 216.109.69.102;received=216.109.69.102;rport=5060;branch=z9hG4bK3cmyeD9UF72Fm\r\nFrom: <sip:+154035128"...
    tmp = <value optimized out>
    from = 0x7fa2049e1298
    fromlen = 16
    ri = {src_ip = {af = 2, len = 4, u = {addrl = {140737173320391, 8}, addr32 = {3979932359, 32767, 8, 0}, addr16 = {62151, 60728, 32767, 0, 8, 0, 0, 0}, 
          addr = "\307\362\070\355\377\177\000\000\b\000\000\000\000\000\000"}}, dst_ip = {af = 2, len = 4, u = {addrl = {3602911301, 0}, addr32 = {3602911301, 0, 0, 0}, 
          addr16 = {4165, 54976, 0, 0, 0, 0, 0, 0}, addr = "E\020\300\326", '\000' <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto = 1, proto_reserved1 = 0, 
      proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\023\304\307\362\070\355\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, 
          sin_addr = {s_addr = 3979932359}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 3979932359, sin6_addr = {
            __in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}, 
      bind_address = 0x7fa2047f4c18}
    p = <value optimized out>
    msg = {
      s = 0x7a7660 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 69.16.192.214:5060;branch=z9hG4bK163b.cd43c5b5.0\r\nVia: SIP/2.0/UDP 216.109.69.102;received=216.109.69.102;rport=5060;branch=z9hG4bK3cmyeD9UF72Fm\r\nFrom: <sip:+154035128"..., len = 954}
    __FUNCTION__ = "udp_rcv_loop"

#18 0x00000000004304b3 in main_loop (argc=, argv=) at main.c:884

    i = 8
    pid = <value optimized out>
    si = <value optimized out>
    startup_done = 0x7fa1c05f3fa0
    chd_rank = 9
    rc = <value optimized out>
    load_p = 0x7fa1c05f3fc0

#19 main (argc=, argv=) at main.c:1557

    cfg_log_stderr = <value optimized out>
    cfg_stream = <value optimized out>
    c = <value optimized out>
    r = <value optimized out>
    tmp = 0x7fff7d8177b5 ""
    tmp_len = <value optimized out>

---Type to continue, or q to quit---
port =
proto =
options = 0x53b538 "f:cCm:M:b:l:n:N:rRvdDETSVhw:t:u:g:P:G:W:o:"
ret = -1
seed = 2031259764
rfd =
FUNCTION = "main"

Module registrar parameter min_expires has no effect

Hello,
sorry if this gets double-posted (I thought I added this issue yesterday, but since i don't see it now, I am posting it again as maybe i forgot to submit it).

Latest version (head) of module registrar is ignoring param min_expires (and probably max_expires too).

I checked the code and it seems to me function save_aux (in save.c) failed to initialize sctx.
I tested changing with these lines and it worked:

--- modules/registrar/save.c (revision 10142)
+++ modules/registrar/save.c (working copy)
@@ -749,6 +749,9 @@
sctx.max_contacts = -1;

    sctx.flags = 0;
  •   sctx.min_expires = min_expires;
    
  •   sctx.max_expires = max_expires;
    
    • if ( _f ) {
      if (fixup_get_svalue( _m, (gparam_p)_f, &flags_s)!=0) {
      LM_ERR("invalid flags parameter");

This is the version I tested:

svn log |head


r10142 | opensipsrelease | 2013-08-03 00:41:23 +0900 (Sat, 03 Aug 2013) | 10 lines

Improved PUA DialogInfo.

Several fixes here:

  • Dialog callbacks are now correctly setup after a restart of
    OpenSIPS. In other words, restarting OpenSIPS will not lead to ghost BLFs
    anymore.
  • Added an option allowing not to publish state change in case of reINVITE.

Regards,
Takeshi

Compilation error on OSX

With master branch.

In file included from io_wait.c:50:
io_wait.h: In function ‘io_watch_add’:
io_wait.h:367: error: ‘already’ undeclared (first use in this function)
io_wait.h:367: error: (Each undeclared identifier is reported only once
io_wait.h:367: error: for each function it appears in.)
io_wait.c: In function ‘init_io_wait’:
io_wait.c:561: error: ‘tcp_async’ undeclared (first use in this function)
make: *** [io_wait.o] Error 1

Crash just by wrapping a function inside an IF statement

I am seeing a very strange issue.
I have this branch_route:
branch_route [CALL_TO_PSTN_BRANCH] {
uac_replace_from("sip:$avp(i:10)@$avp(i:6)");
}

The above works fine.
Then I needed to add some conditional code (IF statement) when calling uac_replace_from but when the function is called inside the IF, opensips crashes.
The condition in the IF doesn't matter, it can be anything. But if uac_replace_from is called inside it, it crashes opensips. Just a simple change like this is enough to do it:

branch_route [CALL_TO_PSTN_BRANCH] {
if ( [ 1 ] ) {
uac_replace_from("sip:$avp(i:10)@$avp(i:6)");
}
}

So, is it possible that the opensips.cfg parser adds extra things in the code that could explain this behavior?

Here is a "bt full" using opensips 1.10 commit bfd86ab (but I confirmed this with head af195e9 too):

http://pastebin.com/bkfTdHg6

Obs: I have other places where I already have uac_replace_from being called inside an IF statement in an branch_route like this:

branch_route [CALL_TO_SUBSCRIBER_BRANCH] {
if( search("^From:.*[A|a]nonymous") ) {
uac_replace_from("Anonymous", "sip:Anonymous@$fd");
}

append_hf("P-Called-Party-ID: <sip:$avp(i:12)@$avp(i:6)>\r\n");

}

But the above doesn't cause opensips to crash. So it seems there are some specific steps that are done before my branch_route CALL_TO_PSTN_BRANCH that leads to the crash but i could not find what would it be.
But what I don't understand is how just wrapping the function inside an IF could cause opensips to crash.

Regards,
Takeshi

Crash when reading TCP request (with async TCP)

Got the following crash while testing latest async TCP code:

#0  0xb7864424 in __kernel_vsyscall ()
#1  0xb756e911 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2  0xb7571d42 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#3  0xb75a49d5 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#4  0xb75aeac1 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#5  0xb75b0328 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#6  0xb75b33dd in free () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#7  0x080cd439 in tcp_read_req (con=0xa770a878, bytes_read=0xbfac0988) at tcp_read.c:700
#8  0x080ce7da in handle_io (fm=0x835ab68, idx=-1, event_type=29095) at tcp_read.c:1022
#9  0x080d1cda in io_wait_loop_epoll (unix_sock=66) at io_wait.h:844
#10 tcp_receive_loop (unix_sock=66) at tcp_read.c:1130
#11 0x080bc65e in tcp_init_children (chd_rank=0x819c930, startup_done=0x0) at tcp_main.c:2359
#12 0x08075ca2 in main_loop (argc=Cannot access memory at address 0x71a7

Full bt:

#7  0x080cd439 in tcp_read_req (con=0xa770a878, bytes_read=0xbfac0988) at tcp_read.c:700
        bytes = 0
        total_bytes = 1448
        resp = <value optimized out>
        size = 731
        req = 0x83c9208
        c = 83 'S'
        local_rcv = {src_ip = {af = 2, len = 4, u = {addrl = {1693113442, 0, 0, 0}, addr32 = {1693113442, 0, 0, 0}, addr16 = {56418, 25834, 0, 0, 0, 0, 0, 0},
              addr = "b\334\352d", '\000' <repeats 11 times>}}, dst_ip = {af = 2, len = 4, u = {addrl = {129634645, 0, 0, 0}, addr32 = {129634645, 0, 0, 0}, addr16 = {4437, 1978,
                0, 0, 0, 0, 0, 0}, addr = "U\021\272\a", '\000' <repeats 11 times>}}, src_port = 60075, dst_port = 5060, proto = 2, proto_reserved1 = 98, proto_reserved2 = 0,
          src_su = {s = {sa_family = 2, sa_data = "\352\253b\334\352d\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 44010, sin_addr = {s_addr = 1693113442},
              sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 44010, sin6_flowinfo = 1693113442, sin6_addr = {__in6_u = {
                  __u6_addr8 = "\000\000\000\000\000\000\000\000XXç\001\000\000", __u6_addr16 = {0, 0, 0, 0, 22616, 42947, 1, 0}, __u6_addr32 = {0, 0, 2814597208, 1}}},
              sin6_scope_id = 2814597208}}, bind_address = 0x82409f0}
        msg_buf = 0x83c920c "SUBSCRIBE sip:[email protected] SIP/2.0\r\nCall-ID: c159de9e25dc5646ebe6b6ad01cd5a86@0:0:0:0:0:0:0:0\r\nCSeq: 1 SUBSCRIBE\r\nFrom: \"jcorban\" <sip:[email protected]>;tag=1e169bd8\r\nTo: \"jcorban\" <sip:jc"...
        __FUNCTION__ = "tcp_read_req"
#8  0x080ce7da in handle_io (fm=0x835ab68, idx=-1, event_type=29095) at tcp_read.c:1022
        ret = <value optimized out>
        n = <value optimized out>
        con = 0xa770a878
        s = <value optimized out>
        rw = <value optimized out>
        resp = <value optimized out>
        response = {-1485789064, 1}
        __FUNCTION__ = "handle_io"
#9  0x080d1cda in io_wait_loop_epoll (unix_sock=66) at io_wait.h:844
        n = 1
        __FUNCTION__ = "io_wait_loop_epoll"
#10 tcp_receive_loop (unix_sock=66) at tcp_read.c:1130

In case it makes a difference, I'm using the system allocator for pkg memory.

Blocking TCP still used even if async mode is set

I'm testing tcp_async and it looks like NOTIFY requests triggered by the presence modules are not using this mode somehow:

Aug 28 11:11:41 node07 /usr/sbin/opensips[5333]: ERROR:core:tcp_blocking_connect: timeout 3 s elapsed from 3 s
Aug 28 11:11:41 node07 /usr/sbin/opensips[5333]: ERROR:core:tcpconn_connect: tcp_blocking_connect failed
Aug 28 11:11:41 node07 /usr/sbin/opensips[5333]: ERROR:core:tcp_send: connect failed
Aug 28 11:11:41 node07 /usr/sbin/opensips[5333]: ERROR:tm:msg_send: tcp_send failed
Aug 28 11:11:41 node07 /usr/sbin/opensips[5333]: ERROR:tm:t_forward_nonack: sending request failed
Aug 28 11:11:41 node07 /usr/sbin/opensips[5333]: Could not send NOTIFY to destination sip:[email protected]:59932;transport=tls

uac_registrant sends User_Agent header

On the 1.9 branch version 93e9442 from 2013-08-13, the uac_registrant module sends REGISTER messages with the configured user agent in the User_Agent header instead of the User-Agent header. Reproduced on earlier versions as well.

Crash in shm_malloc

I got the following crash (with latest master)

#0  qm_detach_free (qm=0xa6eae000, size=32) at mem/q_malloc.c:263
#1  qm_malloc (qm=0xa6eae000, size=32) at mem/q_malloc.c:383
#2  0xb72a1200 in shm_malloc_unsafe (cb_list=0xb72c3744, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at ../../mem/shm_mem.h:248
#3  shm_malloc (cb_list=0xb72c3744, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at ../../mem/shm_mem.h:258
#4  insert_tmcb (cb_list=0xb72c3744, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at t_hooks.c:95
#5  0xb72a13db in register_tmcb (p_msg=0x8b066f8, t=0x0, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at t_hooks.c:175
#6  0xb70f4841 in NAT_Keepalive (msg=0x8b066f8) at nat_traversal.c:1451
#7  0x0805c7cc in do_action (a=0x8a59268, msg=0x8b066f8) at action.c:1715
#8  0x0805a21e in run_action_list (a=0x8a59268, msg=0x8b066f8) at action.c:171
#9  0x0805f907 in do_action (a=0x8a593a0, msg=0x8b066f8) at action.c:1010
#10 0x0805a21e in run_action_list (a=0x8a593a0, msg=0x8b066f8) at action.c:171
#11 0x0805f907 in do_action (a=0x8a59680, msg=0x8b066f8) at action.c:1010
#12 0x0805a21e in run_action_list (a=0x8a59680, msg=0x8b066f8) at action.c:171
#13 0x08060351 in do_action (a=0x8a596e8, msg=0x8b066f8) at action.c:1016
#14 0x0805a21e in run_action_list (a=0x8a56310, msg=0x8b066f8) at action.c:171
#15 0x0805f907 in do_action (a=0x8a5adf8, msg=0x8b066f8) at action.c:1010
#16 0x0805a21e in run_action_list (a=0x8a54aa0, msg=0x8b066f8) at action.c:171
#17 0x0805a330 in run_actions (a=0xa6eae040, msg=0xa6eae044) at action.c:136
#18 0x0805ec6d in do_action (a=0x8a09630, msg=0x8b066f8) at action.c:649
#19 0x0805a21e in run_action_list (a=0x8a09630, msg=0x8b066f8) at action.c:171
#20 0x0805f907 in do_action (a=0x8a09700, msg=0x8b066f8) at action.c:1010
#21 0x0805a21e in run_action_list (a=0x8a04ef0, msg=0x8b066f8) at action.c:171
#22 0x080616c6 in run_actions (a=0x8a04ef0, msg=0x8b066f8) at action.c:136
#23 run_top_route (a=0x8a04ef0, msg=0x8b066f8) at action.c:211
#24 0x0809b19c in receive_msg (
    buf=0x81b8220 "REGISTER sip:sip2sip.info:5060 SIP/2.0\r\nAccept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related\r\nVia: SIP/2.0/UDP 172."..., len=881, rcv_info=0xbfd1a19c) at receive.c:169
#25 0x080e498e in udp_rcv_loop () at udp_server.c:424
#26 0x08076123 in main_loop (argc=0, argv=0xbfd1a344) at main.c:917
#27 main (argc=0, argv=0xbfd1a344) at main.c:1598

Here is the full backtrace of the last frames:


#0  qm_detach_free (qm=0xa6eae000, size=32) at mem/q_malloc.c:263
        prev = 0xa6eae040
        next = 0x0
#1  qm_malloc (qm=0xa6eae000, size=32) at mem/q_malloc.c:383
        f = 0xa7877010
        hash = 2
#2  0xb72a1200 in shm_malloc_unsafe (cb_list=0xb72c3744, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at ../../mem/shm_mem.h:248
No locals.
#3  shm_malloc (cb_list=0xb72c3744, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at ../../mem/shm_mem.h:258
        p = <value optimized out>
#4  insert_tmcb (cb_list=0xb72c3744, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at t_hooks.c:95
        __FUNCTION__ = "insert_tmcb"
#5  0xb72a13db in register_tmcb (p_msg=0x8b066f8, t=0x0, types=128, f=0xb70f9f80 <__tm_reply_out>, param=0x0, release_func=0) at t_hooks.c:175
        cb_list = 0x0
        __FUNCTION__ = "register_tmcb"
#6  0xb70f4841 in NAT_Keepalive (msg=0x8b066f8) at nat_traversal.c:1451
        __FUNCTION__ = "NAT_Keepalive"

I guess the problem is that 'next' is NULL, but how the allocator ended up there eludes me :-S

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.