<div dir="ltr"><div>I installed opensips 1.8.  I used the
 default configuration.   I have two clients one is an
 android phone using native sip client, and the other one x-lite.  I can
 call x-lite to phone but not the other way around.   How do I fix it?  <br>
</div><div><br></div><div>Here is a sample of the logs: I think it does not allow the TCP connection.  Is NAT a problem here?  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" target="_blank">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060" target="_blank">198.23.160.81:5060</a><br>

INVITE <a href="mailto:sip%3A639195015475@198.23.160.81" target="_blank">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" target="_blank">sip:639178864952@49.144.184.97:41998</a>&gt;.<br>


To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81" target="_blank">sip:639195015475@198.23.160.81</a>&gt;.<br>From: &quot;639178864952&quot;&lt;<a href="mailto:sip%3A639178864952@198.23.160.81" target="_blank">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" target="_blank">198.23.160.81:5060</a> -&gt; <a href="http://49.144.184.97:41998" target="_blank">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" target="_blank">sip:639195015475@198.23.160.81</a>&gt;;tag=80403214130c49515b8f7d7842a4c119.ef65.<br>


From: &quot;639178864952&quot;&lt;<a href="mailto:sip%3A639178864952@198.23.160.81" target="_blank">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br>Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br>CSeq: 1 INVITE.<br>

Proxy-Authenticate: Digest realm=&quot;198.23.160.81&quot;, nonce=&quot;51f67b16000000fae8c70592af760c78fa39cd43f84c1a6b&quot;.<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" target="_blank">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060" target="_blank">198.23.160.81:5060</a><br>


ACK <a href="mailto:sip%3A639195015475@198.23.160.81" target="_blank">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" target="_blank">sip:639195015475@198.23.160.81</a>&gt;;tag=80403214130c49515b8f7d7842a4c119.ef65.<br>
From: &quot;639178864952&quot;&lt;<a href="mailto:sip%3A639178864952@198.23.160.81" target="_blank">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" target="_blank">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060" target="_blank">198.23.160.81:5060</a><br>INVITE <a href="mailto:sip%3A639195015475@198.23.160.81" target="_blank">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" target="_blank">sip:639178864952@49.144.184.97:41998</a>&gt;.<br>


To: &lt;<a href="mailto:sip%3A639195015475@198.23.160.81" target="_blank">sip:639195015475@198.23.160.81</a>&gt;.<br>From: &quot;639178864952&quot;&lt;<a href="mailto:sip%3A639178864952@198.23.160.81" target="_blank">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=&quot;639178864952&quot;,realm=&quot;198.23.160.81&quot;,nonce=&quot;51f67b16000000fae8c70592af760c78fa39cd43f84c1a6b&quot;,uri=&quot;<a href="mailto:sip%3A639195015475@198.23.160.81" target="_blank">sip:639195015475@198.23.160.81</a>&quot;,response=&quot;1605e4e6b20dbbd6be5917c94dd3961e&quot;,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" target="_blank">198.23.160.81:5060</a> -&gt; <a href="http://49.144.184.97:41998" target="_blank">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" target="_blank">sip:639195015475@198.23.160.81</a>&gt;.<br>


From: &quot;639178864952&quot;&lt;<a href="mailto:sip%3A639178864952@198.23.160.81" target="_blank">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" target="_blank">198.23.160.81:5060</a> -&gt; <a href="http://49.144.184.97:41998" target="_blank">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" target="_blank">sip:639195015475@198.23.160.81</a>&gt;;tag=eb0b3ccde0b882baee99bc071578cb61-d8d9.<br>


From: &quot;639178864952&quot;&lt;<a href="mailto:sip%3A639178864952@198.23.160.81" target="_blank">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" target="_blank">49.144.184.97:41998</a> -&gt; <a href="http://198.23.160.81:5060" target="_blank">198.23.160.81:5060</a><br>

ACK <a href="mailto:sip%3A639195015475@198.23.160.81" target="_blank">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" target="_blank">sip:639195015475@198.23.160.81</a>&gt;;tag=eb0b3ccde0b882baee99bc071578cb61-d8d9.<br>


From: &quot;639178864952&quot;&lt;<a href="mailto:sip%3A639178864952@198.23.160.81" target="_blank">sip:639178864952@198.23.160.81</a>&gt;;tag=1b3b463c.<br>Call-ID: NjhmYzk0ODZhNWVmOGE5MTU4ZWExM2Q5NjI1NDVhODg.<br>CSeq: 2 ACK.<br>

Content-Length: 0.</div><br></div></div>