<p>Think I search way to transparently inject kamailio as MSRP proxy into SDP and MSRP messages.<br>
Looks as this behavior will be not standard. But I expect this feature will allow inject kamailio as MSRP proxy when I not able to control caller UA.</p>
<p><strong>SDP update</strong><br>
Could you looks <a href="https://tools.ietf.org/html/rfc4976#section-11" rel="nofollow">RFC4976 Section 11. Example SDP with Multiple Hops</a></p>
<p>Here exist example</p>
<pre><code>    c=IN IP4 bob.example.com
    m=message 1234 TCP/TLS/MSRP *
    a=accept-types: message/cpim text/plain
    a=path:msrps://relay.example.com:9000/hjdhfha;tcp  \
           msrps://bob.example.com:1234/fuige;tcp
</code></pre>
<p>Attribute <code>a=path</code> have two <code>msrps</code> uri.</p>
<p>I expect add kamailio msrp socket into <code>a=path</code> attribute.<br>
Like Kamailio receive caller SDP like</p>
<pre><code>    c=IN IP4 bob.example.com
    m=message 1234 TCP/TLS/MSRP *
    a=accept-types: message/cpim text/plain
    a=path:msrps://bob.example.com:1234/fuige;tcp
</code></pre>
<p>Then add <code>msrps://relay.example.com:9000/hjdhfha;tcp  \</code> at top of <code>a=path</code> and forwards to FreeSwitch (Asterisk) daemon.</p>
<p>And then make similar SDP update for <code>183</code> and '200' responses.</p>
<p><strong>MSRP messages updates</strong><br>
Caller send</p>
<pre><code>    MSRP 6aef SEND
    To-Path: msrps://b.example.net:9000/aeiug;tcp \
             msrps://bob.example.net:8145/foo;tcp
    From-Path: msrps://alice.example.org:7965/bar;tcp
    Success-Report: yes
    Byte-Range: 1-*/*
    Message-ID: 87652
    Content-Type: text/plain

    Hi Bob, I'm about to send you file.mpeg
    -------6aef$
</code></pre>
<p>Kamailio forward</p>
<pre><code>    MSRP 6aef SEND
    To-Path: msrps://bob.example.net:8145/foo;tcp
    From-Path: msrps://b.example.net:9000/aeiug;tcp \
             msrps://alice.example.org:7965/bar;tcp
    Success-Report: yes
    Byte-Range: 1-*/*
    Message-ID: 87652
    Content-Type: text/plain

    Hi Bob, I'm about to send you file.mpeg
    -------6aef$
</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/2186?email_source=notifications&email_token=ABO7UZJ43PI6Q25TBHWMH4DQ3ZWYNA5CNFSM4J7FNIYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7XDYA#issuecomment-570388960">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJYOE5DCRWSDTD3QQLQ3ZWYNANCNFSM4J7FNIYA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKE6SZZ7EWCZD36US3Q3ZWYNA5CNFSM4J7FNIYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7XDYA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2186?email_source=notifications\u0026email_token=ABO7UZJ43PI6Q25TBHWMH4DQ3ZWYNA5CNFSM4J7FNIYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7XDYA#issuecomment-570388960",
"url": "https://github.com/kamailio/kamailio/issues/2186?email_source=notifications\u0026email_token=ABO7UZJ43PI6Q25TBHWMH4DQ3ZWYNA5CNFSM4J7FNIYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7XDYA#issuecomment-570388960",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>