<p>Here is the actual debug output :-)</p>

<pre><code>#0  run_onsend (orig_msg=orig_msg@entry=0x0, dst=dst@entry=0x7f70720bde60, buf=<optimized out>, len=<optimized out>) at ../../onsend.h:80
        onsnd_info = {to = 0x7f70720bde68, send_sock = 0x7f707a285ba8,
          buf = 0x7f70720bf2a8 "OPTIONS sip:10.0.20.191:5062;transport=udp SIP/2.0\r\nVia: SIP/2.0/UDP 10.0.20.193:5021;branch=z9hG4bK673d.161b70b", '0' <repeats 25 times>, ".0\r\nTo: <sip:10.0.20.191:5062;transport=udp>\r\nFrom: <sip:dispat"...,
          len = 411, msg = 0x0}
        ret = 1
        ra_ctx = {rec_lev = 1913380352, run_flags = 32624, last_retcode = 48, jmp_env = {{__jmpbuf = {140730243347504, 140730243347248, 140730243348000, 140120926445056, 54134, 21, 26318, 7368058}, __mask_was_saved = 1913380448, __saved_mask = {
                __val = {0, 140730243347552, 140730243347704, 7368058, 21, 140120926445072, 10875460, 140121027388988, 140121062554736, 4294967295, 4294967295, 140120926350396, 21, 411, 140120926450344, 10877216}}}}}
        bctx = <optimized out>
        backup_route_type = 1
        fwd_snd_flags_bak = <optimized out>
        rpl_snd_flags_bak = <optimized out>
        keng = 0x0
#1  0x00007f7078e1bf00 in send_prepared_request_impl (request=<optimized out>, retransmit=retransmit@entry=1, branch=branch@entry=0) at uac.c:618
        t = 0x7f70720bdbf8
        p_msg = 0x0
        uac = 0x7f70720bde00
        ip = {af = 2, len = 4, u = {addrl = {3205758986, 140730243347728}, addr32 = {3205758986, 0, 1344926992, 32766}, addr16 = {10, 48916, 0, 0, 62736, 20521, 32766, 0}, addr = "\n\000\024\277\000\000\000\000\020\365)P\376\177\000"}}
        ret = <optimized out>
        __func__ = "send_prepared_request_impl"
#2  0x00007f7078e22a37 in t_uac_with_ids (uac_r=uac_r@entry=0x7ffe5029f620, ret_index=ret_index@entry=0x0, ret_label=ret_label@entry=0x0) at uac.c:683
        request = 0x7f70720bde10
        cell = 0x7f70720bdbf8
        ret = 1
        is_ack = <optimized out>
        branch_ret = <optimized out>
        i = 0
        added_branches = 1
#3  0x00007f7078e22b29 in t_uac (uac_r=uac_r@entry=0x7ffe5029f620) at uac.c:658
No locals.
#4  0x00007f7078e271d7 in request (uac_r=0x7ffe5029f620, ruri=<optimized out>, to=<optimized out>, from=<optimized out>, next_hop=<optimized out>) at uac.c:1005
        callid = {s = 0x7f70790a6700 <callid_buf> "16f83c1827128151-26318@10.0.20.193", len = 34}
        fromtag = {s = 0x7f70790a65e0 <from_tag> "67a6bee51647e3e1ce6833e5724e26f7-c9ed", len = 37}
        dialog = 0x7f70720bd868
        res = <optimized out>
        __func__ = "request"
#5  0x00007f7076076db1 in ds_ping_set (node=0x7f70720a5620) at dispatch.c:2887
        uac_r = {method = 0x7f70762975b0 <ds_ping_method>, headers = 0x0, body = 0x0, ssock = 0x7f70720a41f0, dialog = 0x7f70720bd868, cb_flags = 1024, cb = 0x7f707607fb80 <ds_options_callback>, cbp = 0x1f, callid = 0x0}
        i = 2
        j = 0
        __func__ = "ds_ping_set"
#6  0x00007f7076076c00 in ds_ping_set (node=0x7f70720a5c08) at dispatch.c:2863
        uac_r = {method = 0x0, headers = 0x0, body = 0xffffffffffff0000, ssock = 0xffffffffffffffff, dialog = 0x0, cb_flags = 0, cb = 0x0, cbp = 0x0, callid = 0x0}
        i = 1
        j = <optimized out>
        __func__ = "ds_ping_set"
#7  0x00007f7076076c00 in ds_ping_set (node=0x7f70720a3df0) at dispatch.c:2863
        uac_r = {method = 0xffffffff, headers = 0x706d7a, body = 0x7f7075e39d80, ssock = 0x15, dialog = 0x6bca4aae, cb_flags = 5169481, cb = 0xaaa6c0 <is_ctx>, cbp = 0x7f707aa6ed96 <srandom_r+198>, callid = 0x0}
        i = 1
        j = <optimized out>
        __func__ = "ds_ping_set"
</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/859#issuecomment-260591083">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zd38XsjucrXMe0zN12IidzjKI6Bkks5q-XupgaJpZM4KyRcR">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZfXNRi25cwbxRHw7-1ihIr_0KFJ7ks5q-XupgaJpZM4KyRcR.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/859#issuecomment-260591083"></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":"@tverlaan in #859: Here is the actual debug output :-)\r\n\r\n```\r\n#0  run_onsend (orig_msg=orig_msg@entry=0x0, dst=dst@entry=0x7f70720bde60, buf=\u003coptimized out\u003e, len=\u003coptimized out\u003e) at ../../onsend.h:80\r\n        onsnd_info = {to = 0x7f70720bde68, send_sock = 0x7f707a285ba8,\r\n          buf = 0x7f70720bf2a8 \"OPTIONS sip:10.0.20.191:5062;transport=udp SIP/2.0\\r\\nVia: SIP/2.0/UDP 10.0.20.193:5021;branch=z9hG4bK673d.161b70b\", '0' \u003crepeats 25 times\u003e, \".0\\r\\nTo: \u003csip:10.0.20.191:5062;transport=udp\u003e\\r\\nFrom: \u003csip:dispat\"...,\r\n          len = 411, msg = 0x0}\r\n        ret = 1\r\n        ra_ctx = {rec_lev = 1913380352, run_flags = 32624, last_retcode = 48, jmp_env = {{__jmpbuf = {140730243347504, 140730243347248, 140730243348000, 140120926445056, 54134, 21, 26318, 7368058}, __mask_was_saved = 1913380448, __saved_mask = {\r\n                __val = {0, 140730243347552, 140730243347704, 7368058, 21, 140120926445072, 10875460, 140121027388988, 140121062554736, 4294967295, 4294967295, 140120926350396, 21, 411, 140120926450344, 10877216}}}}}\r\n        bctx = \u003coptimized out\u003e\r\n        backup_route_type = 1\r\n        fwd_snd_flags_bak = \u003coptimized out\u003e\r\n        rpl_snd_flags_bak = \u003coptimized out\u003e\r\n        keng = 0x0\r\n#1  0x00007f7078e1bf00 in send_prepared_request_impl (request=\u003coptimized out\u003e, retransmit=retransmit@entry=1, branch=branch@entry=0) at uac.c:618\r\n        t = 0x7f70720bdbf8\r\n        p_msg = 0x0\r\n        uac = 0x7f70720bde00\r\n        ip = {af = 2, len = 4, u = {addrl = {3205758986, 140730243347728}, addr32 = {3205758986, 0, 1344926992, 32766}, addr16 = {10, 48916, 0, 0, 62736, 20521, 32766, 0}, addr = \"\\n\\000\\024\\277\\000\\000\\000\\000\\020\\365)P\\376\\177\\000\"}}\r\n        ret = \u003coptimized out\u003e\r\n        __func__ = \"send_prepared_request_impl\"\r\n#2  0x00007f7078e22a37 in t_uac_with_ids (uac_r=uac_r@entry=0x7ffe5029f620, ret_index=ret_index@entry=0x0, ret_label=ret_label@entry=0x0) at uac.c:683\r\n        request = 0x7f70720bde10\r\n        cell = 0x7f70720bdbf8\r\n        ret = 1\r\n        is_ack = \u003coptimized out\u003e\r\n        branch_ret = \u003coptimized out\u003e\r\n        i = 0\r\n        added_branches = 1\r\n#3  0x00007f7078e22b29 in t_uac (uac_r=uac_r@entry=0x7ffe5029f620) at uac.c:658\r\nNo locals.\r\n#4  0x00007f7078e271d7 in request (uac_r=0x7ffe5029f620, ruri=\u003coptimized out\u003e, to=\u003coptimized out\u003e, from=\u003coptimized out\u003e, next_hop=\u003coptimized out\u003e) at uac.c:1005\r\n        callid = {s = 0x7f70790a6700 \u003ccallid_buf\u003e \"16f83c1827128151-26318@10.0.20.193\", len = 34}\r\n        fromtag = {s = 0x7f70790a65e0 \u003cfrom_tag\u003e \"67a6bee51647e3e1ce6833e5724e26f7-c9ed\", len = 37}\r\n        dialog = 0x7f70720bd868\r\n        res = \u003coptimized out\u003e\r\n        __func__ = \"request\"\r\n#5  0x00007f7076076db1 in ds_ping_set (node=0x7f70720a5620) at dispatch.c:2887\r\n        uac_r = {method = 0x7f70762975b0 \u003cds_ping_method\u003e, headers = 0x0, body = 0x0, ssock = 0x7f70720a41f0, dialog = 0x7f70720bd868, cb_flags = 1024, cb = 0x7f707607fb80 \u003cds_options_callback\u003e, cbp = 0x1f, callid = 0x0}\r\n        i = 2\r\n        j = 0\r\n        __func__ = \"ds_ping_set\"\r\n#6  0x00007f7076076c00 in ds_ping_set (node=0x7f70720a5c08) at dispatch.c:2863\r\n        uac_r = {method = 0x0, headers = 0x0, body = 0xffffffffffff0000, ssock = 0xffffffffffffffff, dialog = 0x0, cb_flags = 0, cb = 0x0, cbp = 0x0, callid = 0x0}\r\n        i = 1\r\n        j = \u003coptimized out\u003e\r\n        __func__ = \"ds_ping_set\"\r\n#7  0x00007f7076076c00 in ds_ping_set (node=0x7f70720a3df0) at dispatch.c:2863\r\n        uac_r = {method = 0xffffffff, headers = 0x706d7a, body = 0x7f7075e39d80, ssock = 0x15, dialog = 0x6bca4aae, cb_flags = 5169481, cb = 0xaaa6c0 \u003cis_ctx\u003e, cbp = 0x7f707aa6ed96 \u003csrandom_r+198\u003e, callid = 0x0}\r\n        i = 1\r\n        j = \u003coptimized out\u003e\r\n        __func__ = \"ds_ping_set\"\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/859#issuecomment-260591083"}}}</script>