<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>BTW, your SIP trace shows all communication is in UDP, whereas you mentioned TCP in subject...</p>
<p>Thank you.</p>
<p>&nbsp;</p>
<p>On 2013-07-31 01:29, Muhammad Shahzad Shafi wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Either destination is off line or you do not have NAT keep-alive enabled, resulting relay failure. Make sure you have NAT Helper and / or NAT Traversal module enabled and configured correctly for NAT handing.</p>
<p>Thank you.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>On 2013-07-30 17:17, Jason Sia wrote:</p>
<blockquote style="padding-left: 5px; border-left: #1010ff  2px  solid; margin-left: 5px; width: 100%;">
<div dir="ltr">
<div>I installed opensips 1.8.&nbsp; I used the default configuration.&nbsp;&nbsp; I have two clients one is an android phone using native sip client, and the other one x-lite.&nbsp; I can call x-lite to phone but not the other way around.&nbsp;&nbsp; How do I fix it?&nbsp;</div>
<div>&nbsp;</div>
<div>Here is a sample of the logs: I think it does not allow the TCP connection.&nbsp; Is NAT a problem here?&nbsp; I use a vps to host the opensips.<br /><br />U 2013/07/29 18:23:52.994331 <a href="http://49.144.184.97:41998">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060">198.23.160.81:5060</a><br /> INVITE <a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a> SIP/2.0.<br />Via: SIP/2.0/UDP 192.168.0.107:41998;branch=z9hG4bK-d8754z-
<div dir="ltr">2999840441d3d05a-1---d8754z-;rport.<br />Max-Forwards: 70.<br />Contact: &lt;<a href="http://sip:639178864952@49.144.184.97:41998">sip:639178864952@49.144.184.97:41998</a>&gt;.<br /> To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>&gt;.<br />From: "639178864952"&lt;<a href="mailto:sip%3A639178864952@198.23.160.81">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br /> Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br />CSeq: 1 INVITE.<br />Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br />Content-Type: application/sdp.<br />Supported: replaces.<br /> User-Agent: X-Lite release 4.5.3 stamp 70576.<br /> Content-Length: 357.<br />.<br />v=0.<br />o=- 1375107832761441 1 IN IP4 192.168.0.107.<br />s=X-Lite 4 release 4.5.3 stamp 70576.<br />c=IN IP4 192.168.0.107.<br />t=0 0.<br />m=audio 53084 RTP/AVP 123 9 0 8 97 100 98 101.<br />a=rtpmap:123 opus/48000/2.<br /> a=fmtp:123 useinbandfec=1.<br />a=rtpmap:97 speex/8000.<br />a=rtpmap:100 speex/16000.<br />a=rtpmap:98 ILBC/8000.<br />a=rtpmap:101 telephone-event/8000.<br />a=fmtp:101 0-15.<br />a=sendrecv.<br /><br /><br />U 2013/07/29 18:23:52.994422 <a href="http://198.23.160.81:5060">198.23.160.81:5060</a> -&gt; <a href="http://49.144.184.97:41998">49.144.184.97:41998</a><br /> SIP/2.0 407 Proxy Authentication Required.<br />Via: SIP/2.0/UDP 192.168.0.107:41998;received=49.144.184.97;branch=z9hG4bK-d8754z-2999840441d3d05a-1---d8754z-;rport=41998.<br />To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>&gt;;tag=80403214130c49515b8f7d7842a4c119.ef65.<br /> From: "639178864952"&lt;<a href="mailto:sip%3A639178864952@198.23.160.81">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br />Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br />CSeq: 1 INVITE.<br /> Proxy-Authenticate: Digest realm="198.23.160.81", nonce="51f67b16000000fae8c70592af760c78fa39cd43f84c1a6b".<br /> Server: OpenSIPS (1.8.3-notls (x86_64/linux)).<br />Content-Length: 0.<br />.<br /><br /><br />U 2013/07/29 18:23:53.299025 <a href="http://49.144.184.97:41998">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060">198.23.160.81:5060</a><br /> ACK <a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a> SIP/2.0.<br />Via: SIP/2.0/UDP 192.168.0.107:41998;branch=z9hG4bK-d8754z-2999840441d3d05a-1---d8754z-;rport.<br />Max-Forwards: 70.<br /> To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>&gt;;tag=80403214130c49515b8f7d7842a4c119.ef65.<br /> From: "639178864952"&lt;<a href="mailto:sip%3A639178864952@198.23.160.81">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br />Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br />CSeq: 1 ACK.<br /> Content-Length: 0.<br /> .<br /><br /><br />U 2013/07/29 18:23:53.317842 <a href="http://49.144.184.97:41998">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060">198.23.160.81:5060</a><br />INVITE <a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a> SIP/2.0.<br /> Via: SIP/2.0/UDP 192.168.0.107:41998;branch=z9hG4bK-d8754z-1cfc096228010333-1---d8754z-;rport.<br />Max-Forwards: 70.<br />Contact: &lt;<a href="http://sip:639178864952@49.144.184.97:41998">sip:639178864952@49.144.184.97:41998</a>&gt;.<br /> To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>&gt;.<br />From: "639178864952"&lt;<a href="mailto:sip%3A639178864952@198.23.160.81">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br /> Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br />CSeq: 2 INVITE.<br />Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br />Content-Type: application/sdp.<br />Proxy-Authorization: Digest username="639178864952",realm="198.23.160.81",nonce="51f67b16000000fae8c70592af760c78fa39cd43f84c1a6b",uri="<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>",response="1605e4e6b20dbbd6be5917c94dd3961e",algorithm=MD5.<br /> Supported: replaces.<br />User-Agent: X-Lite release 4.5.3 stamp 70576.<br />Content-Length: 357.<br />.<br />v=0.<br />o=- 1375107832761441 1 IN IP4 192.168.0.107.<br />s=X-Lite 4 release 4.5.3 stamp 70576.<br />c=IN IP4 192.168.0.107.<br /> t=0 0.<br />m=audio 53084 RTP/AVP 123 9 0 8 97 100 98 101.<br />a=rtpmap:123 opus/48000/2.<br />a=fmtp:123 useinbandfec=1.<br />a=rtpmap:97 speex/8000.<br />a=rtpmap:100 speex/16000.<br />a=rtpmap:98 ILBC/8000.<br />a=rtpmap:101 telephone-event/8000.<br /> a=fmtp:101 0-15.<br />a=sendrecv.<br /><br /><br />U 2013/07/29 18:23:53.318191 <a href="http://198.23.160.81:5060">198.23.160.81:5060</a> -&gt; <a href="http://49.144.184.97:41998">49.144.184.97:41998</a><br /> SIP/2.0 100 Giving a try.<br /> Via: SIP/2.0/UDP 192.168.0.107:41998;received=49.144.184.97;branch=z9hG4bK-d8754z-1cfc096228010333-1---d8754z-;rport=41998.<br />To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>&gt;.<br /> From: "639178864952"&lt;<a href="mailto:sip%3A639178864952@198.23.160.81">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br />Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br />CSeq: 2 INVITE.<br /> Server: OpenSIPS (1.8.3-notls (x86_64/linux)).<br /> Content-Length: 0.<br />.<br /><br /><br />U 2013/07/29 18:24:03.328456 <a href="http://198.23.160.81:5060">198.23.160.81:5060</a> -&gt; <a href="http://49.144.184.97:41998">49.144.184.97:41998</a><br /> SIP/2.0 477 Send failed (477/TM).<br /> Via: SIP/2.0/UDP 192.168.0.107:41998;received=49.144.184.97;branch=z9hG4bK-d8754z-1cfc096228010333-1---d8754z-;rport=41998.<br />To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>&gt;;tag=eb0b3ccde0b882baee99bc071578cb61-d8d9.<br /> From: "639178864952"&lt;<a href="mailto:sip%3A639178864952@198.23.160.81">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br />Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br />CSeq: 2 INVITE.<br /> Server: OpenSIPS (1.8.3-notls (x86_64/linux)).<br /> Content-Length: 0.<br />.<br /><br /><br />U 2013/07/29 18:24:03.582094 <a href="http://49.144.184.97:41998">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060">198.23.160.81:5060</a><br /> ACK <a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a> SIP/2.0.<br /> Via: SIP/2.0/UDP 192.168.0.107:41998;branch=z9hG4bK-d8754z-1cfc096228010333-1---d8754z-;rport.<br />Max-Forwards: 70.<br />To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81">sip:639195015475@198.23.160.81</a>&gt;;tag=eb0b3ccde0b882baee99bc071578cb61-d8d9.<br /> From: "639178864952"&lt;<a href="mailto:sip%3A639178864952@198.23.160.81">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br />Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br />CSeq: 2 ACK.<br /> Content-Length: 0.</div>
</div>
</div>
</blockquote>
<div>
<pre>-- 
Mit freundlichen Gr&uuml;&szlig;en
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_786pk@hotmail.com
Email: shaheryarkh@googlemail.com</pre>
</div>
</blockquote>
<div>
<pre>-- 
Mit freundlichen Gr&uuml;&szlig;en
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_786pk@hotmail.com
Email: shaheryarkh@googlemail.com</pre>
</div>
</body></html>