<pre><code>#0  build_res_buf_from_sip_req (code=1576798744, code@entry=487, text=0x25, new_tag=0x7f186f74d2b0 <tm_tag>, msg=0x7f185dfbf9a0, 
    returned_len=0xb7, bmark=0x8548c03148244489) at msg_translator.c:2395
        lump = 0x0
        received_len = 0
        rport_len = 0
        warning_len = 0
        after_body = 0x0
        totags = 0x0
        __FUNCTION__ = "build_res_buf_from_sip_req"
#1  0x00007f186f4b17b2 in _reply (trans=0x7f185dfbc060, p_msg=0x7f185dfbf9a0, code=487, text=<optimized out>, lock=1) at t_reply.c:712
        len = 31474
        buf = <optimized out>
        dset = <optimized out>
        bm = {to_tag_val = {s = 0x7ffeab147e2c "", len = 0}}
        dset_len = 0
        reason = {s = 0x7f186f535472 "Request canceled", len = 16}
#2  0x00007f186f507e8b in e2e_cancel (cancel_msg=0x7f185dfc0a18, t_cancel=0x25, t_invite=0x7f185dfbc060) at t_fwd.c:1278
        cancel_bm = 0
        reason = 0x7f185dfbc060
        i = 1921036208
        tmcb = {req = 0x6f1ddb, rpl = 0x5e3437 <dns_srv_sip_resolvehost+279>, param = 0x2e, code = -1424720300, flags = 32766, 
          branch = 0, t_rbuf = 0x7f185dfb7b38, dst = 0x7f185dfb7a68, send_buf = {s = 0x7f1872477a18 "\001", len = 69206528}}
        __FUNCTION__ = "e2e_cancel"
#3  0x00007f186f50d2c2 in t_forward_nonack (t=0x7f185dfb7950, p_msg=0x7f187280afb0, proxy=0x0, proto=307) at t_fwd.c:1619
        current_uri = {s = 0x0, len = 1921036208}
        q = 32536
        t_invite = 0x7f185dfbc060
        success_branch = 0
        lock_replies = 1576779872
        dst_uri = {s = 0x0, len = 10482636}
        path = {s = 0x7f186f74d1f0 <tm_cfg> "\b\235\372]\030\177", len = 1869926896}
        instance = {s = 0x7f186f7624d0 <user_rt_t1_timeout_ms> "", len = 1866962556}
        ruid = {s = 0x7ffe00000007 <error: Cannot access memory at address 0x7ffe00000007>, len = 7282139}
        location_ua = {s = 0x6 <error: Cannot access memory at address 0x6>, len = -1424718544}
        si = 0xb65c050904200200
        backup_bflags = 0
        bflags = 0
        __FUNCTION__ = "t_forward_nonack"
#4  0x00007f186f50df6b in t_forward_cancel (p_msg=0x7f187280afb0, proxy=0x0, proto=0, tran=0x7ffeab148240) at t_fwd.c:1816
        t_invite = 0x0
        t = 0xb7
        ret = 1
        dst = {send_sock = 0x7f18702e80b6, to = {s = {sa_family = 6554, sa_data = "_s\030\177\000\000\000\000\000\000\000\000\000"}, 
            sin = {sin_family = 6554, sin_port = 29535, sin_addr = {s_addr = 32536}, sin_zero = "\000\000\000\000\000\000\000"}, 
            sin6 = {sin6_family = 6554, sin6_port = 29535, sin6_flowinfo = 32536, sin6_addr = {__in6_u = {
                  __u6_addr8 = "\000\000\000\000\000\000\000\000(\000\000\000\060\000\000", __u6_addr16 = {0, 0, 0, 0, 40, 0, 48, 0}, 
                  __u6_addr32 = {0, 0, 40, 48}}}, sin6_scope_id = 2870249136}}, id = 32766, proto = -63 '\301', send_flags = {
            f = 177 '\261', blst_imask = 112 'p'}}
        host = {s = 0xffffffffffffffff <error: Cannot access memory at address 0xffffffffffffffff>, len = 1}
        __FUNCTION__ = "t_forward_cancel"
#5  0x00007f186f4f117a in t_relay_to (p_msg=0x7f187280afb0, proxy=0x0, proto=0, replicate=0) at t_funcs.c:238
        ret = 1911489832
        t = 0x7f187370b1c8
        dst = {send_sock = 0x7f18735f199a <vfprintf+22490>, to = {s = {sa_family = 6554, 
              sa_data = "_s\030\177\000\000\377\377\377\377\377\377\377\377"}, sin = {sin_family = 6554, sin_port = 29535, sin_addr = {
                s_addr = 32536}, sin_zero = "\377\377\377\377\377\377\377\377"}, sin6 = {sin6_family = 6554, sin6_port = 29535, 
              sin6_flowinfo = 32536, sin6_addr = {__in6_u = {__u6_addr8 = "\377\377\377\377\377\377\377\377űps\030\177\000", 
                  __u6_addr16 = {65535, 65535, 65535, 65535, 45509, 29552, 32536, 0}, __u6_addr32 = {4294967295, 4294967295, 
                    1936765381, 32536}}}, sin6_scope_id = 2870248224}}, id = 32766, proto = 7 '\a', send_flags = {f = 0 '\000', 
            blst_imask = 0 '\000'}}
        host = {s = 0x7ffeab148350 " \210\024\253\376\177", len = 1935612314}
        __FUNCTION__ = "t_relay_to"
#6  0x0000000000446650 in do_action (h=0x7ffeab148960, a=0x7f1871ef0528, msg=0x7f187280afb0) at action.c:1060
        ret = -5
        v = 0
        dst = {send_sock = 0xc8, to = {s = {sa_family = 35200, sa_data = "\244", '\000' <repeats 12 times>}, sin = {
</code></pre>
<pre><code>(gdb) p *msg->reply_lump
$2 = {text = {s = 0x7f185dfbb3c0 "P-Out-Socket: udp:127.0.0.1:5060\r\n", len = 34}, flags = 34, next = 0x7f185dfbb3e8}
(gdb) p *msg->reply_lump->next
$3 = {text = {s = 0x7f185dfbb408 "P-NGCP-Auth-IP: 127.0.2.1\r\n]\030\177", len = 27}, flags = 34, next = 0x7f185dfbb428}
(gdb) p *msg->reply_lump->next->next
$4 = {text = {s = 0x7f185dfbb448 "P-NGCP-Auth-UA: <null>\r\n\200\264\373]\030\177", len = 24}, flags = 34, next = 0x7f185dfbb460}
(gdb) p *msg->reply_lump->next->next->next
$5 = {text = {s = 0x7f185dfbb480 "P-Callee-Uuid: fe3366a8-8b5b-4ec9-81e4-ba5a4f8bd124\r\n", len = 53}, flags = 34, next = 0x0}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/872#issuecomment-263908731">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zd0D0GY8GzjCxqG_8ET-8CT40aJhks5rDZtHgaJpZM4LASj1">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZTvtDwxylDOeSZNFKr-t2jNEHYWTks5rDZtHgaJpZM4LASj1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/872#issuecomment-263908731"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@linuxmaniac in #872: ```\r\n#0  build_res_buf_from_sip_req (code=1576798744, code@entry=487, text=0x25, new_tag=0x7f186f74d2b0 \u003ctm_tag\u003e, msg=0x7f185dfbf9a0, \r\n    returned_len=0xb7, bmark=0x8548c03148244489) at msg_translator.c:2395\r\n        lump = 0x0\r\n        received_len = 0\r\n        rport_len = 0\r\n        warning_len = 0\r\n        after_body = 0x0\r\n        totags = 0x0\r\n        __FUNCTION__ = \"build_res_buf_from_sip_req\"\r\n#1  0x00007f186f4b17b2 in _reply (trans=0x7f185dfbc060, p_msg=0x7f185dfbf9a0, code=487, text=\u003coptimized out\u003e, lock=1) at t_reply.c:712\r\n        len = 31474\r\n        buf = \u003coptimized out\u003e\r\n        dset = \u003coptimized out\u003e\r\n        bm = {to_tag_val = {s = 0x7ffeab147e2c \"\", len = 0}}\r\n        dset_len = 0\r\n        reason = {s = 0x7f186f535472 \"Request canceled\", len = 16}\r\n#2  0x00007f186f507e8b in e2e_cancel (cancel_msg=0x7f185dfc0a18, t_cancel=0x25, t_invite=0x7f185dfbc060) at t_fwd.c:1278\r\n        cancel_bm = 0\r\n        reason = 0x7f185dfbc060\r\n        i = 1921036208\r\n        tmcb = {req = 0x6f1ddb, rpl = 0x5e3437 \u003cdns_srv_sip_resolvehost+279\u003e, param = 0x2e, code = -1424720300, flags = 32766, \r\n          branch = 0, t_rbuf = 0x7f185dfb7b38, dst = 0x7f185dfb7a68, send_buf = {s = 0x7f1872477a18 \"\\001\", len = 69206528}}\r\n        __FUNCTION__ = \"e2e_cancel\"\r\n#3  0x00007f186f50d2c2 in t_forward_nonack (t=0x7f185dfb7950, p_msg=0x7f187280afb0, proxy=0x0, proto=307) at t_fwd.c:1619\r\n        current_uri = {s = 0x0, len = 1921036208}\r\n        q = 32536\r\n        t_invite = 0x7f185dfbc060\r\n        success_branch = 0\r\n        lock_replies = 1576779872\r\n        dst_uri = {s = 0x0, len = 10482636}\r\n        path = {s = 0x7f186f74d1f0 \u003ctm_cfg\u003e \"\\b\\235\\372]\\030\\177\", len = 1869926896}\r\n        instance = {s = 0x7f186f7624d0 \u003cuser_rt_t1_timeout_ms\u003e \"\", len = 1866962556}\r\n        ruid = {s = 0x7ffe00000007 \u003cerror: Cannot access memory at address 0x7ffe00000007\u003e, len = 7282139}\r\n        location_ua = {s = 0x6 \u003cerror: Cannot access memory at address 0x6\u003e, len = -1424718544}\r\n        si = 0xb65c050904200200\r\n        backup_bflags = 0\r\n        bflags = 0\r\n        __FUNCTION__ = \"t_forward_nonack\"\r\n#4  0x00007f186f50df6b in t_forward_cancel (p_msg=0x7f187280afb0, proxy=0x0, proto=0, tran=0x7ffeab148240) at t_fwd.c:1816\r\n        t_invite = 0x0\r\n        t = 0xb7\r\n        ret = 1\r\n        dst = {send_sock = 0x7f18702e80b6, to = {s = {sa_family = 6554, sa_data = \"_s\\030\\177\\000\\000\\000\\000\\000\\000\\000\\000\\000\"}, \r\n            sin = {sin_family = 6554, sin_port = 29535, sin_addr = {s_addr = 32536}, sin_zero = \"\\000\\000\\000\\000\\000\\000\\000\"}, \r\n            sin6 = {sin6_family = 6554, sin6_port = 29535, sin6_flowinfo = 32536, sin6_addr = {__in6_u = {\r\n                  __u6_addr8 = \"\\000\\000\\000\\000\\000\\000\\000\\000(\\000\\000\\000\\060\\000\\000\", __u6_addr16 = {0, 0, 0, 0, 40, 0, 48, 0}, \r\n                  __u6_addr32 = {0, 0, 40, 48}}}, sin6_scope_id = 2870249136}}, id = 32766, proto = -63 '\\301', send_flags = {\r\n            f = 177 '\\261', blst_imask = 112 'p'}}\r\n        host = {s = 0xffffffffffffffff \u003cerror: Cannot access memory at address 0xffffffffffffffff\u003e, len = 1}\r\n        __FUNCTION__ = \"t_forward_cancel\"\r\n#5  0x00007f186f4f117a in t_relay_to (p_msg=0x7f187280afb0, proxy=0x0, proto=0, replicate=0) at t_funcs.c:238\r\n        ret = 1911489832\r\n        t = 0x7f187370b1c8\r\n        dst = {send_sock = 0x7f18735f199a \u003cvfprintf+22490\u003e, to = {s = {sa_family = 6554, \r\n              sa_data = \"_s\\030\\177\\000\\000\\377\\377\\377\\377\\377\\377\\377\\377\"}, sin = {sin_family = 6554, sin_port = 29535, sin_addr = {\r\n                s_addr = 32536}, sin_zero = \"\\377\\377\\377\\377\\377\\377\\377\\377\"}, sin6 = {sin6_family = 6554, sin6_port = 29535, \r\n              sin6_flowinfo = 32536, sin6_addr = {__in6_u = {__u6_addr8 = \"\\377\\377\\377\\377\\377\\377\\377\\377űps\\030\\177\\000\", \r\n                  __u6_addr16 = {65535, 65535, 65535, 65535, 45509, 29552, 32536, 0}, __u6_addr32 = {4294967295, 4294967295, \r\n                    1936765381, 32536}}}, sin6_scope_id = 2870248224}}, id = 32766, proto = 7 '\\a', send_flags = {f = 0 '\\000', \r\n            blst_imask = 0 '\\000'}}\r\n        host = {s = 0x7ffeab148350 \" \\210\\024\\253\\376\\177\", len = 1935612314}\r\n        __FUNCTION__ = \"t_relay_to\"\r\n#6  0x0000000000446650 in do_action (h=0x7ffeab148960, a=0x7f1871ef0528, msg=0x7f187280afb0) at action.c:1060\r\n        ret = -5\r\n        v = 0\r\n        dst = {send_sock = 0xc8, to = {s = {sa_family = 35200, sa_data = \"\\244\", '\\000' \u003crepeats 12 times\u003e}, sin = {\r\n```\r\n```\r\n(gdb) p *msg-\u003ereply_lump\r\n$2 = {text = {s = 0x7f185dfbb3c0 \"P-Out-Socket: udp:127.0.0.1:5060\\r\\n\", len = 34}, flags = 34, next = 0x7f185dfbb3e8}\r\n(gdb) p *msg-\u003ereply_lump-\u003enext\r\n$3 = {text = {s = 0x7f185dfbb408 \"P-NGCP-Auth-IP: 127.0.2.1\\r\\n]\\030\\177\", len = 27}, flags = 34, next = 0x7f185dfbb428}\r\n(gdb) p *msg-\u003ereply_lump-\u003enext-\u003enext\r\n$4 = {text = {s = 0x7f185dfbb448 \"P-NGCP-Auth-UA: \u003cnull\u003e\\r\\n\\200\\264\\373]\\030\\177\", len = 24}, flags = 34, next = 0x7f185dfbb460}\r\n(gdb) p *msg-\u003ereply_lump-\u003enext-\u003enext-\u003enext\r\n$5 = {text = {s = 0x7f185dfbb480 \"P-Callee-Uuid: fe3366a8-8b5b-4ec9-81e4-ba5a4f8bd124\\r\\n\", len = 53}, flags = 34, next = 0x0}\r\n```\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/872#issuecomment-263908731"}}}</script>