<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Calibri Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi users of MSRP module,<o:p></o:p></p>
<p class="MsoNormal">  I just set up MSRP module with Kamailio 4.4.3 & blink client on Windows. What I am noticing is messages are coming though one-way. When other side replies, they are relayed back to itself instead of target.
<o:p></o:p></p>
<p class="MsoNormal">  Msrp layer of the relayed packet is built fine, but tcp destination is set wrong.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  I am suspecting it is either due to wrong use of msrp_set_dst in Kamailio.cfg (attached) or a bug in msrp_relay method in the module itself.<o:p></o:p></p>
<p class="MsoNormal">  I am new to this area, please suggest how to troubleshoot this.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  Find below the trace of msrp messages of the issue. My analysis of the msrp trace is
<b><span style="font-size:12.0pt;color:#7030A0">in purple</span></b>.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  <b>Some points to note:</b> <o:p></o:p></p>
<p class="MsoNormal">         <span style="background:yellow;mso-highlight:yellow">10.11.200.24</span> and
<span style="background:yellow;mso-highlight:yellow">10.0.0.5</span> are nics on same box and are marked in same color as is called “source”.<o:p></o:p></p>
<p class="MsoNormal">        <span style="background:red;mso-highlight:red">10.11.52.53</span> is “target” machine, where the relayed message should go to.<o:p></o:p></p>
<p class="MsoNormal">         <span style="background:teal;mso-highlight:teal">10.0.16.51</span> is the relay server<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>  Question to answer:</b><b><span style="font-size:12.0pt;color:#C00000">
</span></b>Why is Message3 below sent to source tcp ip address (10.11.200.24) instead of target tcp address (10.11.52.53).<o:p></o:p></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:#C00000"><o:p> </o:p></span></b></p>
<p class="MsoNormal">----------------------------------------------------------------------------------------------------<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-family:"Calibri","sans-serif";color:#7030A0">Message1 is sent from source to target + relay session</span></b><b><span style="font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></b></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Message1:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> 2016-11-08 15:47:17.338892 [blink.exe
 26372]: <span style="background:yellow;mso-highlight:yellow">10.11.200.24</span>:62680 --> 10.0.16.51:2855<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MSRP 5f0c96c84796750d SEND<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">To-Path: msrp://<span style="background:teal;mso-highlight:teal">10.0.16.51</span>:2855/s.12455.7.1628740562;tcp msrp://<span style="background:red;mso-highlight:red">10.11.52.53</span>:2855/b5e6018fca0bdddfcea2;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From-Path: msrp://<span style="background:yellow;mso-highlight:yellow">10.0.0.5</span>:62680/7549e765f173b8ae2250;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Message-ID: d54ab6cddfffb429<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Byte-Range: 1-375/375<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Success-Report: no<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Failure-Report: partial<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Content-Type: message/cpim<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From: pvenkatayogi <<a href="sip:pvenkatayogi@labsip00.cyracom.com">sip:pvenkatayogi@labsip00.cyracom.com</a>><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">To: <<a href="sip:pranathi@labsip00.cyracom.com">sip:pranathi@labsip00.cyracom.com</a>><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">DateTime: 2016-11-08T15:47:17.336892-06:00<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MIME-Version: 1.0<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Content-Type: application/im-iscomposing+xml<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><?xml version='1.0' encoding='UTF-8'?><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><isComposing xmlns="urn:ietf:params:xml:ns:im-iscomposing"><state>active</state><contenttype>text</contenttype></isComposing><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">-------5f0c96c84796750d$<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-family:"Calibri","sans-serif";color:#7030A0">Message2 is sent from relay server to source with 200 OK</span></b><b><span style="font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></b></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Message2:
</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">2016-11-08 15:47:17.418908 [blink.exe 26372]:
<span style="background:yellow;mso-highlight:yellow">10.11.200.24</span>:62680 <-- 10.0.16.51:2855<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MSRP 5f0c96c84796750d 200 OK<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">To-Path: msrp://<span style="background:yellow;mso-highlight:yellow">10.0.0.5</span>:62680/7549e765f173b8ae2250;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From-Path: msrp://<span style="background:teal;mso-highlight:teal">10.0.16.51</span>:2855/s.12455.7.1628740562;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Message-ID: d54ab6cddfffb429<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">-------5f0c96c84796750d$<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-family:"Calibri","sans-serif";color:#7030A0">Message3 is
</span></b><b><span style="font-family:"Calibri","sans-serif";color:#C00000">wrongly sent to source</span></b><b><span style="font-family:"Calibri","sans-serif";color:#7030A0">, though the to-path in msrp packet is pointing to target.</span></b><b><span style="font-family:"Calibri","sans-serif";color:black"><o:p></o:p></span></b></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Message3:
</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">2016-11-08 15:47:17.423909 [blink.exe 26372]:
<span style="background:yellow;mso-highlight:yellow">10.11.200.24</span>:62680 <-- 10.0.16.51:2855<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MSRP 5f0c96c84796750d SEND<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">To-Path: msrp://<span style="background:red;mso-highlight:red">10.11.52.53</span>:2855/b5e6018fca0bdddfcea2;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From-Path: msrp://<span style="background:teal;mso-highlight:teal">10.0.16.51</span>:2855/s.12455.7.1628740562;tcp msrp://10.0.0.5:62680/7549e765f173b8ae2250;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Message-ID: d54ab6cddfffb429<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Byte-Range: 1-375/375<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Success-Report: no<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Failure-Report: partial<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Content-Type: message/cpim<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From: pvenkatayogi <<a href="sip:pvenkatayogi@labsip00.cyracom.com">sip:pvenkatayogi@labsip00.cyracom.com</a>><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">To: <<a href="sip:pranathi@labsip00.cyracom.com">sip:pranathi@labsip00.cyracom.com</a>><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">DateTime: 2016-11-08T15:47:17.336892-06:00<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">MIME-Version: 1.0<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Content-Type: application/im-iscomposing+xml<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><?xml version='1.0' encoding='UTF-8'?><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"><isComposing xmlns="urn:ietf:params:xml:ns:im-iscomposing"><state>active</state><contenttype>text</contenttype></isComposing><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">-------5f0c96c84796750d$<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-family:"Calibri","sans-serif";color:#7030A0">Message4 is source machine rightly rejecting the Message3 above saying it is not for me.<o:p></o:p></span></b></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Message4:
</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> 2016-11-08 15:47:17.429911 [blink.exe 26372]: 10.11.200.24:62680 --> 10.0.16.51:2855<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#C00000">MSRP 5f0c96c84796750d 481 Invalid To-Path</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#C00000"><o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">To-Path: msrp://<span style="background:teal;mso-highlight:teal">10.0.16.51</span>:2855/s.12455.7.1628740562;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">From-Path: msrp:/<span style="background:red;mso-highlight:red">/10.11.52.53</span>:2855/b5e6018fca0bdddfcea2;tcp<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black"> <o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">-------5f0c96c84796750d$<o:p></o:p></span></p>
<p class="MsoNormal">-----------------------------------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal"><b>Pranathi Venkatayogi<o:p></o:p></b></p>
<p class="MsoNormal"><i>System Developer II<o:p></o:p></i></p>
<p class="MsoNormal">(520) 745-9447 x4466<o:p></o:p></p>
<p class="MsoNormal"><a href="http://www.cyracom.com/"><span style="color:blue">www.cyracom.com</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Join us:   <a href="https://www.facebook.com/pages/CyraCom-LLC/134704783312720">
<span style="color:windowtext;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_22" src="cid:image001.gif@01D239DF.B5079930" alt="cid:image001.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="https://twitter.com/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_23" src="cid:image002.gif@01D239DF.B5079930" alt="cid:image002.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.linkedin.com/company/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_24" src="cid:image003.gif@01D239DF.B5079930" alt="cid:image003.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.cyracom.com/blog/"><span style="color:windowtext;text-decoration:none"><img border="0" width="20" height="20" id="Picture_x0020_25" src="cid:image004.gif@01D239DF.B5079930" alt="cid:image004.gif@01D1C9C9.C4E8B6D0"></span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6"><img border="0" width="250" height="37" id="Picture_x0020_26" src="cid:image005.png@01D239DF.B5079930" alt="cid:image005.png@01D1C9C9.C4E8B6D0"></span><span style="font-size:8.0pt;font-family:"Calibri Light","sans-serif";color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Calibri Light","sans-serif";color:gray"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6">DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure
 by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan
 this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom,
 LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>