<p>I agree with you.<br>
But now I see that after</p>
<pre><code>SIP/2.0 180 Ringing 
From: <sip:1111@1.2.3.4>;tag=14003117305244 
To: <sip:2222@5.6.7.8>;tag=S7nIf9Z 
Call-ID: 0KaR2073911201UQbcGhEfDeMek 
CSeq: 669313 INVITE Content-Length: 0 
Via: SIP/2.0/UDP 1.2.3.4:5060;rport=5060;received=10.56.63.10;branch=z9hG4bK00000005167007511555 
Contact: <sip:atpsh-5bf3d61d-2547-1@10.56.42.33> 
Record-Route: <sip:KITS1.MSS.LIFE.COM:5060;transport=UDP;lr> 
</code></pre>
<p>I getting BYE from SBC as</p>
<pre><code>BYE sip:atpsh-5bf4031e-3f23-1@10.56.42.33 SIP/2.0 
From: <sip:1111@1.2.3.4>;tag=14003117305244
To:  <sip:2222@5.6.7.8>;tag=S7nIf9Z
Max-Forwards: 70 
Via: SIP/2.0/UDP KITS1.MSS.LIFE.COM:5060;branch=z9hG4bK00000016862453278154 
Call-ID: 9afY9565014201gpbcGhEfCmGjd@KITS1.MSS.LIFE.COM 
CSeq: 670210 BYE 
Reason: Q.850;cause=16 Content-Length: 0 
</code></pre>
<p>But kamailio sends to Linphone BYE with second route in r-uri</p>
<pre><code>BYE sip:5.6.7.8:5081;transport=tcp;r2=on;lr;ftag=02003459426351;did=96e.f6f2;vsf=AAAAAAoLCAsBCQcKAnVzehQYeHoeYn1jHxpoCWcFCmN4Oj5lcj1waG9uZQ--;vst=AAAAAAoLAQ4DAA4DAHlnYg4HGh59BRloCWcFCmN4Oj5eB04VGlIeDW9uZQ--;nat=yes SIP/2.0 
From: <sip:1111@1.2.3.4>;tag=14003117305244
To:  <sip:2222@5.6.7.8>;tag=S7nIf9Z
Max-Forwards: 70 
Via: SIP/2.0/UDP KITS1.MSS.LIFE.COM:5060;branch=z9hG4bK00000016862453278154 
Call-ID: 9afY9565014201gpbcGhEfCmGjd@KITS1.MSS.LIFE.COM 
CSeq: 670210 BYE 
Reason: Q.850;cause=16 Content-Length: 0 
</code></pre>
<p>How I can got r-uri from original INVITE in this case?</p>

<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/1720#issuecomment-440264913">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZWIbYy9g4r3QayIe04M_qEH2Gx2ks5uw_zGgaJpZM4YbweF">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZVDzcnqtnmxqh_9zj_5OqjEcs1uCks5uw_zGgaJpZM4YbweF.gif" height="1" width="1" alt="" /></p>
<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://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-vb in #1720: I agree with you.\r\nBut now I see that after \r\n```\r\nSIP/2.0 180 Ringing \r\nFrom: \u003csip:1111@1.2.3.4\u003e;tag=14003117305244 \r\nTo: \u003csip:2222@5.6.7.8\u003e;tag=S7nIf9Z \r\nCall-ID: 0KaR2073911201UQbcGhEfDeMek \r\nCSeq: 669313 INVITE Content-Length: 0 \r\nVia: SIP/2.0/UDP 1.2.3.4:5060;rport=5060;received=10.56.63.10;branch=z9hG4bK00000005167007511555 \r\nContact: \u003csip:atpsh-5bf3d61d-2547-1@10.56.42.33\u003e \r\nRecord-Route: \u003csip:KITS1.MSS.LIFE.COM:5060;transport=UDP;lr\u003e \r\n```\r\nI getting BYE from SBC as \r\n```\r\nBYE sip:atpsh-5bf4031e-3f23-1@10.56.42.33 SIP/2.0 \r\nFrom: \u003csip:1111@1.2.3.4\u003e;tag=14003117305244\r\nTo:  \u003csip:2222@5.6.7.8\u003e;tag=S7nIf9Z\r\nMax-Forwards: 70 \r\nVia: SIP/2.0/UDP KITS1.MSS.LIFE.COM:5060;branch=z9hG4bK00000016862453278154 \r\nCall-ID: 9afY9565014201gpbcGhEfCmGjd@KITS1.MSS.LIFE.COM \r\nCSeq: 670210 BYE \r\nReason: Q.850;cause=16 Content-Length: 0 \r\n```\r\nBut kamailio sends to Linphone BYE with second route in r-uri\r\n```\r\nBYE sip:5.6.7.8:5081;transport=tcp;r2=on;lr;ftag=02003459426351;did=96e.f6f2;vsf=AAAAAAoLCAsBCQcKAnVzehQYeHoeYn1jHxpoCWcFCmN4Oj5lcj1waG9uZQ--;vst=AAAAAAoLAQ4DAA4DAHlnYg4HGh59BRloCWcFCmN4Oj5eB04VGlIeDW9uZQ--;nat=yes SIP/2.0 \r\nFrom: \u003csip:1111@1.2.3.4\u003e;tag=14003117305244\r\nTo:  \u003csip:2222@5.6.7.8\u003e;tag=S7nIf9Z\r\nMax-Forwards: 70 \r\nVia: SIP/2.0/UDP KITS1.MSS.LIFE.COM:5060;branch=z9hG4bK00000016862453278154 \r\nCall-ID: 9afY9565014201gpbcGhEfCmGjd@KITS1.MSS.LIFE.COM \r\nCSeq: 670210 BYE \r\nReason: Q.850;cause=16 Content-Length: 0 \r\n```\r\nHow I can got r-uri from original INVITE in this case?"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1720#issuecomment-440264913"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1720#issuecomment-440264913",
"url": "https://github.com/kamailio/kamailio/issues/1720#issuecomment-440264913",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] 180 Ringing without Contact with TOPOS enabled (#1720)",
"sections": [
{
"text": "",
"activityTitle": "**Sergey Basov**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@sergey-vb",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1720,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1720\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1720#issuecomment-440264913"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 409929605\n}"
}
],
"themeColor": "26292E"
}
]</script>