<div dir="ltr">I have a OpenSIPS server that acts as a load balancing server for a couple of asterisk servers, and lately I&#39;m having a issue with asterisk responding with a 488 Not acceptable here for transfer requests when it comes to port 5060 on the Opensips server, but if I send it to another port it works fine, I realized that when using port 5060 the sdp has port 0  ie  (m=audio 0 RTP/AVP 0 8 101.) but when using another port it does have a port number (ie m=audio 16422 RTP/AVP 0 8 101.)<div><br></div><div>Im attaching both traces, I changed ips for security 212.212.212.212. is the opensips server, 212.212.212.213 is the asterisk server, and 91.176.221.245 is the end user.<br><br>Can anyone please help me make this work on port 5060 too, and can you please explain why it would act differently, the NAT is also handeled differently as can be seen in the VIA header (maybe router is trying to use some ALG?)<br><br></div><div>Here is the trace using port 5060</div><div><div><br></div><div>U <a href="http://91.176.221.245:49242">91.176.221.245:49242</a> -&gt; <a href="http://212.212.212.212:5060">212.212.212.212:5060</a></div><div>INVITE sip:19174250000@212.212.212.213:5060;nat=yes SIP/2.0.</div><div>Via: SIP/2.0/UDP 91.176.221.245:32781;branch=z9hG4bK-a6635dda.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=3189bbd5cf53a984o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as7f636018.</div><div>Call-ID: <a href="mailto:f8a392e9-f1139d80@192.168.0.101">f8a392e9-f1139d80@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Max-Forwards: 70.</div><div>Route: &lt;sip:212.212.212.212:5060;lr;ftag=3189bbd5cf53a984o0;did=d97.6c4d2422&gt;.</div><div>Proxy-Authorization: Digest </div><div><br></div><div>username=&quot;WindowP1&quot;,realm=&quot;myserver&quot;,nonce=&quot;54f468a5000180cd88bd6cead37ab9d1920cc4c54a0ecdd3&quot;,uri=&quot;sip:19174250000@212.212.</div><div><br></div><div>212.213:5060&quot;,algorithm=MD5,response=&quot;0a5a118e2b318621f32b5d60b600229c&quot;.</div><div>Contact: &quot;EXT 101&quot; &lt;<a href="http://sip:WindowP1@91.176.221.245:32781">sip:WindowP1@91.176.221.245:32781</a>&gt;.</div><div>Expires: 30.</div><div>User-Agent: Cisco/SPA525G2-7.5.6.</div><div>Content-Length: 226.</div><div>Content-Type: application/sdp.</div><div>.</div><div>v=0.</div><div>o=- 33523926 33523927 IN IP4 192.168.0.101.</div><div>s=-.</div><div>c=IN IP4 0.0.0.0.</div><div>t=0 0.</div><div>m=audio 0 RTP/AVP 0 8 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-15.</div><div>a=ptime:30.</div><div>a=sendonly.</div><div><br></div><div>U <a href="http://212.212.212.212:5060">212.212.212.212:5060</a> -&gt; <a href="http://91.176.221.245:49242">91.176.221.245:49242</a></div><div>SIP/2.0 100 Giving a try.</div><div>Via: SIP/2.0/UDP 91.176.221.245:32781;received=91.176.221.245;rport=49242;branch=z9hG4bK-a6635dda.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=3189bbd5cf53a984o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as7f636018.</div><div>Call-ID: <a href="mailto:f8a392e9-f1139d80@192.168.0.101">f8a392e9-f1139d80@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Server: OpenSIPS (1.7.2-notls (x86_64/linux)).</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>U <a href="http://212.212.212.212:5060">212.212.212.212:5060</a> -&gt; <a href="http://212.212.212.213:5060">212.212.212.213:5060</a></div><div>INVITE <a href="http://sip:19174250000@212.212.212.213:5060">sip:19174250000@212.212.212.213:5060</a> SIP/2.0.</div><div>Record-Route: &lt;sip:212.212.212.212;lr;ftag=3189bbd5cf53a984o0&gt;.</div><div>Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe66e.0702ec92.0.</div><div>Via: SIP/2.0/UDP 91.176.221.245:32781;rport=49242;received=91.176.221.245;branch=z9hG4bK-a6635dda.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=3189bbd5cf53a984o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as7f636018.</div><div>Call-ID: <a href="mailto:f8a392e9-f1139d80@192.168.0.101">f8a392e9-f1139d80@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Max-Forwards: 69.</div><div>Proxy-Authorization: Digest </div><div><br></div><div>username=&quot;WindowP1&quot;,realm=&quot;myserver&quot;,nonce=&quot;54f468a5000180cd88bd6cead37ab9d1920cc4c54a0ecdd3&quot;,uri=&quot;sip:19174250000@212.212.</div><div><br></div><div>212.213:5060&quot;,algorithm=MD5,response=&quot;0a5a118e2b318621f32b5d60b600229c&quot;.</div><div>Contact: &quot;EXT 101&quot; &lt;sip:WindowP1@91.176.221.245:49242;nat=yes&gt;.</div><div>Expires: 30.</div><div>User-Agent: Cisco/SPA525G2-7.5.6.</div><div>Content-Length: 226.</div><div>Content-Type: application/sdp.</div><div>.</div><div>v=0.</div><div>o=- 33523926 33523927 IN IP4 192.168.0.101.</div><div>s=-.</div><div>c=IN IP4 0.0.0.0.</div><div>t=0 0.</div><div>m=audio 0 RTP/AVP 0 8 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-15.</div><div>a=ptime:30.</div><div>a=sendonly.</div><div><br></div><div>U <a href="http://212.212.212.213:5060">212.212.212.213:5060</a> -&gt; <a href="http://212.212.212.212:5060">212.212.212.212:5060</a></div><div>SIP/2.0 488 Not acceptable here.</div><div>Via: SIP/2.0/UDP 212.212.212.212;branch=z9hG4bKe66e.0702ec92.0;received=212.212.212.212;rport=5060.</div><div>Via: SIP/2.0/UDP 91.176.221.245:32781;rport=49242;received=91.176.221.245;branch=z9hG4bK-a6635dda.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=3189bbd5cf53a984o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as7f636018.</div><div>Call-ID: <a href="mailto:f8a392e9-f1139d80@192.168.0.101">f8a392e9-f1139d80@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Server: SIP Server 9.21/CS.</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH.</div><div>Supported: replaces, timer.</div><div>X-Asterisk-HangupCause: Normal Clearing.</div><div>X-Asterisk-HangupCauseCode: 16.</div><div>Content-Length: 0.</div><div>.</div><div>here is the trace using port 5744</div></div><div><div>U <a href="http://91.176.221.245:63719">91.176.221.245:63719</a> -&gt; <a href="http://212.212.212.212:5744">212.212.212.212:5744</a></div><div>INVITE sip:19174250000@212.212.212.213:5060;nat=yes SIP/2.0.</div><div>Via: SIP/2.0/UDP 192.168.0.101:5060;branch=z9hG4bK-6f0161f0.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=f8c2b14a55549ac2o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as1fcb82f4.</div><div>Call-ID: <a href="mailto:5832b9ea-a4a32aa2@192.168.0.101">5832b9ea-a4a32aa2@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Max-Forwards: 70.</div><div>Route: &lt;sip:212.212.212.212:5744;lr;ftag=f8c2b14a55549ac2o0;did=9ae.775cc5c5&gt;.</div><div>Proxy-Authorization: Digest username=&quot;WindowP1&quot;,realm=&quot;myserver&quot;,nonce=&quot;54f46d7a0000081272baa39f9e34a0ee81f471dec7b034ba&quot;,uri=&quot;<a href="http://sip:19174250000@212.212.212.213:5060">sip:19174250000@212.212.212.213:5060</a>&quot;,algorithm=MD5,response=&quot;4096f485853bf6a209424c36dac2342b&quot;.</div><div>Contact: &quot;EXT 101&quot; &lt;<a href="http://sip:WindowP1@192.168.0.101:5060">sip:WindowP1@192.168.0.101:5060</a>&gt;.</div><div>Expires: 30.</div><div>User-Agent: Cisco/SPA525G2-7.5.6.</div><div>Content-Length: 224.</div><div>Content-Type: application/sdp.</div><div>.</div><div>v=0.</div><div>o=- 30981 30982 IN IP4 192.168.0.101.</div><div>s=-.</div><div>c=IN IP4 0.0.0.0.</div><div>t=0 0.</div><div>m=audio 16422 RTP/AVP 0 8 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-15.</div><div>a=ptime:30.</div><div>a=sendonly.</div><div><br></div><div>U <a href="http://212.212.212.212:5744">212.212.212.212:5744</a> -&gt; <a href="http://91.176.221.245:63719">91.176.221.245:63719</a></div><div>SIP/2.0 100 Giving a try.</div><div>Via: SIP/2.0/UDP 192.168.0.101:5060;received=91.176.221.245;rport=63719;branch=z9hG4bK-6f0161f0.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=f8c2b14a55549ac2o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as1fcb82f4.</div><div>Call-ID: <a href="mailto:5832b9ea-a4a32aa2@192.168.0.101">5832b9ea-a4a32aa2@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Server: OpenSIPS (1.7.2-notls (x86_64/linux)).</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div><br></div><div>U <a href="http://212.212.212.212:5744">212.212.212.212:5744</a> -&gt; <a href="http://212.212.212.213:5060">212.212.212.213:5060</a></div><div>INVITE <a href="http://sip:19174250000@212.212.212.213:5060">sip:19174250000@212.212.212.213:5060</a> SIP/2.0.</div><div>Record-Route: &lt;sip:212.212.212.212:5744;lr;ftag=f8c2b14a55549ac2o0&gt;.</div><div>Via: SIP/2.0/UDP 212.212.212.212:5744;branch=z9hG4bKa7d5.c5b6d177.0.</div><div>Via: SIP/2.0/UDP 192.168.0.101:5060;rport=63719;received=91.176.221.245;branch=z9hG4bK-6f0161f0.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=f8c2b14a55549ac2o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as1fcb82f4.</div><div>Call-ID: <a href="mailto:5832b9ea-a4a32aa2@192.168.0.101">5832b9ea-a4a32aa2@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Max-Forwards: 69.</div><div>Proxy-Authorization: Digest username=&quot;WindowP1&quot;,realm=&quot;myserver&quot;,nonce=&quot;54f46d7a0000081272baa39f9e34a0ee81f471dec7b034ba&quot;,uri=&quot;<a href="http://sip:19174250000@212.212.212.213:5060">sip:19174250000@212.212.212.213:5060</a>&quot;,algorithm=MD5,response=&quot;4096f485853bf6a209424c36dac2342b&quot;.</div><div>Contact: &quot;EXT 101&quot; &lt;sip:WindowP1@91.176.221.245:63719;nat=yes&gt;.</div><div>Expires: 30.</div><div>User-Agent: Cisco/SPA525G2-7.5.6.</div><div>Content-Length: 224.</div><div>Content-Type: application/sdp.</div><div>.</div><div>v=0.</div><div>o=- 30981 30982 IN IP4 192.168.0.101.</div><div>s=-.</div><div>c=IN IP4 0.0.0.0.</div><div>t=0 0.</div><div>m=audio 16422 RTP/AVP 0 8 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-15.</div><div>a=ptime:30.</div><div>a=sendonly.</div><div><br></div><div>U <a href="http://212.212.212.213:5060">212.212.212.213:5060</a> -&gt; <a href="http://212.212.212.212:5744">212.212.212.212:5744</a></div><div>SIP/2.0 100 Trying.</div><div>Via: SIP/2.0/UDP 212.212.212.212:5744;branch=z9hG4bKa7d5.c5b6d177.0;received=212.212.212.212;rport=5744.</div><div>Via: SIP/2.0/UDP 192.168.0.101:5060;rport=63719;received=91.176.221.245;branch=z9hG4bK-6f0161f0.</div><div>Record-Route: &lt;sip:212.212.212.212:5744;lr;ftag=f8c2b14a55549ac2o0&gt;.</div><div>From: &quot;EXT 101&quot; &lt;<a href="mailto:sip%3AWindowP1@sip.myserver.com">sip:WindowP1@sip.myserver.com</a>&gt;;tag=f8c2b14a55549ac2o0.</div><div>To: &lt;<a href="mailto:sip%3A19174250000@sip.myserver.com">sip:19174250000@sip.myserver.com</a>&gt;;tag=as1fcb82f4.</div><div>Call-ID: <a href="mailto:5832b9ea-a4a32aa2@192.168.0.101">5832b9ea-a4a32aa2@192.168.0.101</a>.</div><div>CSeq: 103 INVITE.</div><div>Server: SIP Server 9.21/CS.</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE.</div><div>Supported: replaces, timer.</div><div>Contact: &lt;<a href="http://sip:19174250000@212.212.212.213:5060">sip:19174250000@212.212.212.213:5060</a>&gt;.</div><div>Content-Length: 0.</div><div>.</div></div><div><br></div></div>