<div dir="ltr">Hi,<div><br></div><div>I think it&#39;s more helpful if you can give us calltrace in case of using msrp, sipproxy and of course 2 sip clients. Msrprelay it&#39;s act as a mediaproxy or the sip client should connect first to msrprelay, stream info from msrp and use them in invite to the sip proxy ?</div>
<div><br></div><div style>Thanks,</div><div style>Dani</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 11:35 AM, Saúl Ibarra Corretgé <span dir="ltr">&lt;<a href="mailto:saul@ag-projects.com" target="_blank">saul@ag-projects.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Feb 18, 2013, at 10:10 AM, nguyen khue wrote:<br>
<br>
&gt; I installed msrprelay and run it successful. My problem are two SIP end-points cannot make File Transfer session if them located behind NAT. Please see flow:<br>
<br>
</div>An MSRP relay is not something that you install and automagically will solve the NAT problems. It has to be used by the endpoints themselves. You&#39;ll need to configure your endpoints to use an incoming relay and then you&#39;ll see it in the a=path SDP attribute.<br>

<br>
Relays need credentials but MSRPRelay uses the credentials from the OpenSIPS subscriber table, so you can specify the same credentials of your SIP account.<br>
<br>
<br>
Regards,<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; INVITE sip:1001@192.168.103.107:1059;transport=tcp SIP/2.0<br>
&gt; Record-Route: &lt;sip:123.30.188.104;transport=tcp;lr=on;did=817.c172;nat=yes&gt;<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bKb2d7.61f1d4b2.0;i=2<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;received=113.160.24.110;branch=z9hG4bK891608784;rport=55150<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;<br>
&gt; Contact: &lt;sip:1004@192.168.0.35:55150;alias=113.160.24.110~55150~2;transport=tcp&gt;;+g.oma.sip-im;language=&quot;en,fr&quot;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6081 INVITE<br>
&gt; Content-Type: application/sdp<br>
&gt; Content-Length: 547<br>
&gt; Max-Forwards: 16<br>
&gt; Subject: FIXME<br>
&gt; Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER<br>
&gt; Privacy: none<br>
&gt; P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000<br>
&gt; User-Agent: IM-client/OMA1.0 Boghe/v2.0.130.804<br>
&gt; P-Preferred-Identity: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;<br>
&gt; Supported: 100rel<br>
&gt;<br>
&gt;<br>
&gt; v=0<br>
&gt; o=doubango 1983 678901 IN IP4 192.168.0.35<br>
&gt; s=-<br>
&gt; c=IN IP4 192.168.0.35<br>
&gt; t=0 0<br>
&gt; m=message 55152 TCP/MSRP *<br>
&gt; c=IN IP4 192.168.0.35<br>
&gt; a=path:msrp://<a href="http://192.168.0.35:55152/891607881;tcp" target="_blank">192.168.0.35:55152/891607881;tcp</a><br>
&gt; a=connection:new<br>
&gt; a=setup:actpass<br>
&gt; a=accept-types:message/CPIM application/octet-stream<br>
&gt; a=accept-wrapped-types:application/octet-stream image/jpeg image/gif image/bmp image/png<br>
&gt; a=sendonly<br>
&gt; a=file-selector:name:&quot;asr_tts.png&quot; type:application/octet-stream size:18679<br>
&gt; a=file-transfer-id:891584904<br>
&gt; a=file-disposition:attachment<br>
&gt; a=<a href="mailto:file-icon%3Acid%3Atest@doubango.org">file-icon:cid:test@doubango.org</a><br>
&gt;<br>
&gt; SIP/2.0 100 Trying (sent from the Transaction Layer)<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bKb2d7.61f1d4b2.0;i=2<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6081 INVITE<br>
&gt; Content-Length: 0<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;rport=55150;received=113.160.24.110;branch=z9hG4bK891608784<br>
&gt; Record-Route: &lt;sip:123.30.188.104;transport=tcp;lr=on;did=817.c172;nat=yes&gt;<br>
&gt;<br>
&gt;<br>
&gt; SIP/2.0 180 Ringing<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bKb2d7.61f1d4b2.0;i=2<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;;tag=1839963<br>
&gt; Contact: &lt;sip:1001@192.168.103.107:1059;transport=tcp&gt;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6081 INVITE<br>
&gt; Content-Length: 0<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;rport=55150;received=113.160.24.110;branch=z9hG4bK891608784<br>
&gt; Record-Route: &lt;sip:123.30.188.104;transport=tcp;lr=on;did=817.c172;nat=yes&gt;<br>
&gt; Require: 100rel<br>
&gt; RSeq: 4539<br>
&gt; Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE<br>
&gt;<br>
&gt;<br>
&gt; PRACK sip:1001@192.168.103.107:1059;transport=tcp SIP/2.0<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bK82d7.8af0dc21.0;i=2<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;received=113.160.24.110;branch=z9hG4bK891604861;rport=55150<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;;tag=1839963<br>
&gt; Contact: &lt;sip:1004@192.168.0.35:55150;alias=113.160.24.110~55150~2;transport=tcp&gt;;+g.oma.sip-im;language=&quot;en,fr&quot;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6082 PRACK<br>
&gt; Content-Length: 0<br>
&gt; Max-Forwards: 16<br>
&gt; Subject: FIXME<br>
&gt; Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER<br>
&gt; Privacy: none<br>
&gt; P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000<br>
&gt; User-Agent: IM-client/OMA1.0 Boghe/v2.0.130.804<br>
&gt; RAck: 4539 6081 INVITE<br>
&gt;<br>
&gt;<br>
&gt; SIP/2.0 200 OK<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bK82d7.8af0dc21.0;i=2<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;;tag=1839963<br>
&gt; Contact: &lt;sip:1001@192.168.103.107:1059;transport=tcp&gt;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6082 PRACK<br>
&gt; Content-Length: 0<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;rport=55150;received=113.160.24.110;branch=z9hG4bK891604861<br>
&gt;<br>
&gt;<br>
&gt; SIP/2.0 200 OK<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bKb2d7.61f1d4b2.0;i=2<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;;tag=1839963<br>
&gt; Contact: &lt;sip:1001@192.168.103.107:1059;transport=tcp&gt;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6081 INVITE<br>
&gt; Content-Type: application/sdp<br>
&gt; Content-Length: 315<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;rport=55150;received=113.160.24.110;branch=z9hG4bK891608784<br>
&gt; Record-Route: &lt;sip:123.30.188.104;transport=tcp;lr=on;did=817.c172;nat=yes&gt;<br>
&gt; Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE<br>
&gt;<br>
&gt; v=0<br>
&gt; o=doubango 1983 678901 IN IP4 192.168.103.107<br>
&gt; s=-<br>
&gt; c=IN IP4 192.168.103.107<br>
&gt; t=0 0<br>
&gt; m=message 1060 TCP/MSRP *<br>
&gt; c=IN IP4 192.168.103.107<br>
&gt; a=path:msrp://<a href="http://192.168.103.107:1060/1838028;tcp" target="_blank">192.168.103.107:1060/1838028;tcp</a><br>
&gt; a=connection:new<br>
&gt; a=setup:active<br>
&gt; a=accept-types:message/CPIM<br>
&gt; a=accept-wrapped-types:application/octet-stream<br>
&gt; a=recvonly<br>
&gt;<br>
&gt; ACK sip:1001@192.168.103.107:1059;transport=tcp SIP/2.0<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bKcydzigwkX;i=2<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;received=113.160.24.110;branch=z9hG4bK891589177;rport=55150<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;;tag=1839963<br>
&gt; Contact: &lt;sip:1004@192.168.0.35:55150;alias=113.160.24.110~55150~2;transport=tcp&gt;;+g.oma.sip-im;language=&quot;en,fr&quot;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6081 ACK<br>
&gt; Content-Length: 0<br>
&gt; Max-Forwards: 16<br>
&gt; Subject: FIXME<br>
&gt; Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER<br>
&gt; Privacy: none<br>
&gt; P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000<br>
&gt; User-Agent: IM-client/OMA1.0 Boghe/v2.0.130.804<br>
&gt;<br>
&gt;<br>
&gt; BYE sip:1001@192.168.103.107:1059;transport=tcp SIP/2.0<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bK92d7.e0554b27.0;i=2<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;received=113.160.24.110;branch=z9hG4bK891605340;rport=55150<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;;tag=1839963<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6083 BYE<br>
&gt; Content-Length: 0<br>
&gt; Max-Forwards: 16<br>
&gt; Accept-Contact: *;+g.oma.sip-im<br>
&gt; Accept-Contact: *;language=&quot;en,fr&quot;<br>
&gt; Subject: FIXME<br>
&gt; Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER<br>
&gt; Privacy: none<br>
&gt; P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000<br>
&gt; User-Agent: IM-client/OMA1.0 Boghe/v2.0.130.804<br>
&gt; P-Preferred-Identity: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; SIP/2.0 200 OK<br>
&gt; Via: SIP/2.0/TCP 123.30.188.104;branch=z9hG4bK92d7.e0554b27.0;i=2<br>
&gt; From: &lt;<a href="mailto:sip%3A1004@123.30.188.104">sip:1004@123.30.188.104</a>&gt;;tag=891604370<br>
&gt; To: &lt;<a href="mailto:sip%3A1001@123.30.188.104">sip:1001@123.30.188.104</a>&gt;;tag=1839963<br>
&gt; Contact: &lt;sip:1001@192.168.103.107:1059;transport=tcp&gt;<br>
&gt; Call-ID: 5538bbe8-b226-77d1-f14e-8b9ff44f0afd<br>
&gt; CSeq: 6083 BYE<br>
&gt; Content-Length: 0<br>
&gt; Via: SIP/2.0/TCP 192.168.0.35:55150;rport=55150;received=113.160.24.110;branch=z9hG4bK891605340<br>
&gt;<br>
&gt; I run msrprelay and SIP server on same physical server with IP: 123.30.188.104.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; From: Saúl Ibarra Corretgé &lt;<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>&gt;<br>
&gt; To: OpenSIPS users mailling list &lt;<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt;<br>
&gt; Sent: Monday, February 18, 2013 3:10 PM<br>
&gt; Subject: Re: [OpenSIPS-Users] msrp relay<br>
&gt;<br>
&gt;<br>
&gt; On Feb 18, 2013, at 5:03 AM, nguyen khue wrote:<br>
&gt;<br>
&gt; &gt; Hi all,<br>
&gt; &gt;<br>
&gt; &gt; How I can integrates msrprelay (<a href="http://msrprelay.org" target="_blank">msrprelay.org</a>) with opensips to make File Transfer session between SIP end-points located behind NAT?. Please guide me.<br>
&gt; &gt; I tested file transfer between two SIP end-points in LAN and it worked successful.<br>
&gt; &gt;<br>
&gt;<br>
&gt; What problems did you ran into? Did you follow the installation guide <a href="http://msrprelay.org/projects/msrprelay/wiki/InstallationGuide" target="_blank">http://msrprelay.org/projects/msrprelay/wiki/InstallationGuide</a> ?<br>

&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; --<br>
&gt; Saúl Ibarra Corretgé<br>
&gt; AG Projects<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
--<br>
Saúl Ibarra Corretgé<br>
AG Projects<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Dani Popa
</div>