<p dir="ltr">Well, at least the call connects when the other SIP server accepts the port.  But OpenSIPS fails to connect.    Is there a  way to relax the port criteria in OpenSIPS to accept such ports?  Even if the port is in a &#39;bogus&#39; format? </p>
<div class="gmail_quote">On 19 Aug 2015 16:17, &quot;Bogdan-Andrei Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <tt>Make a network capture - if the incoming CANCEL has that broken
      VIA port, simply report it to the vendor. The fact the bogus port
      is accepted by other SIP server implementations is not really
      relevant. <br>
      <br>
      Regards,<br>
    </tt>
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    <div>On 19.08.2015 17:49, Nabeel wrote:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">I used that same client &#39;Lumicall&#39; (<a href="http://lumicall.org" target="_blank">lumicall.org</a>)
        with Repro SIP server and the calls worked, so I&#39;m not sure how
        to fix it. </p>
      <div class="gmail_quote">On 19 Aug 2015 15:24, &quot;Bogdan-Andrei
        Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF"> <tt>Fix the SIP client
              sending you the bogus SIP messages :). You cannot fix
              anything on OpenSIPS side.<br>
              <br>
              Regards,<br>
            </tt>
            <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
            <div>On 19.08.2015 17:16, Nabeel wrote:<br>
            </div>
            <blockquote type="cite">
              <p dir="ltr">Okay, so what caused the bogus port nunber
                and how can I fix it? </p>
              <div class="gmail_quote">On 19 Aug 2015 14:54,
                &quot;Bogdan-Andrei Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;

                wrote:<br type="attribution">
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Nabeel,</tt><tt><br>
                    </tt><tt><br>
                    </tt><tt>This error has nothing to do with the
                      rtpproxy . It is a parsing error of an incoming
                      SIP request. The VIA header in the received CANCEL
                      has a bogus po</tt><tt>rt number:</tt><tt><br>
                    </tt><tt>    Via: </tt><tt>&lt;SIP/2.0/TCP <a href="http://10.61.208.143" target="_blank">10.61.208.143</a>:</tt><tt><b>46032:-1</b></tt><tt>;rport;branch=z9hG4bK78006</tt><tt><br>
                    </tt><tt><br>
                    </tt><tt>Regards,</tt><br>
                    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                    <div>On 19.08.2015 09:02, Nabeel wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <p dir="ltr">I&#39;m using port 12221 for rtpproxy
                        (from default script) and port 12223 for
                        OpenSIPS.  Are those &#39;bad ports&#39; like the error
                        says?</p>
                      <div class="gmail_quote">On 19 Aug 2015 06:48,
                        &quot;Nabeel&quot; &lt;<a href="mailto:nabeelshikder@gmail.com" target="_blank">nabeelshikder@gmail.com</a>&gt;


                        wrote:<br type="attribution">
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div dir="ltr">Hi,
                            <div><br>
                            </div>
                            <div>The rtpproxy error is resolved with
                              your suggestion, but I still get the &#39;bad
                              port&#39; errors in the log followed by CANCEL
                              of the call:</div>
                            <div><br>
                            </div>
                            <div>
                              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ERROR:core:parse_via:


                                bad port<br>
                                ERROR:core:parse_via:  &lt;SIP/2.0/TCP
                                10.61.208.143:46032:-1;rport;branch=z9hG4bK78006#015#012Max-Forwards:
                                70#015#012To: &lt;<a href="mailto:sip%3A%2B447984977774@sipdomain.com" target="_blank">sip:+447984977774@sipdomain.com</a>;transport=tcp&gt;#015#012From:


                                &lt;<a href="mailto:sip%3A%2B447479189410@sipdomain.com" target="_blank">sip:+447479189410@sipdomain.com</a>&gt;;tag=z9hG4bK93013084#015#012Call-ID:


                                <a href="http://358919227046@10.61.208.143#015%23012CSeq" target="_blank">358919227046@10.61.208.143#015#012CSeq</a>:
                                1 CANCEL#015#012Contact: &lt;sip:<a href="tel:%2B447479189410" value="+447479189410" target="_blank">+447479189410</a>@10.61.208.143:46032;transport=tcp&gt;#015#012Expires:


                                3600#015#012User-Agent:
                                Agent/1.3.4/MP-S168#015#012Content-Length:
                                0#015#012#015#012&gt;<br>
                                ERROR:core:parse_via: parsed so
                                far:&lt;SIP/2.0/TCP <a href="http://10.61.208.143:46032" target="_blank">10.61.208.143:46032</a>&gt;<br>
                                ERROR:core:get_hdr_field: bad via<br>
                                DBG:core:set_err_info: ec: 1, el: 3, ei:
                                &#39;error parsing Via&#39;<br>
                                DBG:core:get_hdr_field: error exit<br>
                                <a>INFO:core:parse_headers</a>:
                                bad header field<br>
                                ERROR:core:parse_msg: message=&lt;CANCEL
                                <a href="mailto:sip%3A%2B447984977774@sipdomain.com" target="_blank">sip:+447984977774@sipdomain.com</a>;transport=tcp


                                SIP/2.0#015#012Via: SIP/2.0/TCP
                                10.61.208.143:46032:-1;rport;branch=z9hG4bK78006#015#012Max-Forwards:
                                70#015#012To: &lt;<a href="mailto:sip%3A%2B447984977774@sipdomain.com" target="_blank">sip:+447984977774@sipdomain.com</a>;transport=tcp&gt;#015#012From:


                                &lt;<a href="mailto:sip%3A%2B447479189410@sipdomain.com" target="_blank">sip:+447479189410@sipdomain.com</a>&gt;;tag=z9hG4bK93013084#015#012Call-ID:


                                <a href="http://358919227046@10.61.208.143#015%23012CSeq" target="_blank">358919227046@10.61.208.143#015#012CSeq</a>:
                                1 CANCEL#015#012Contact: &lt;sip:<a href="tel:%2B447479189410" value="+447479189410" target="_blank">+447479189410</a>@10.61.208.143:46032;transport=tcp&gt;#015#012Expires:


                                3600#015#012User-Agent:
                                Agent/1.3.4/MP-S168#015#012Content-Length:
                                0#015#012#015#012&gt;<br>
                                ERROR:core:receive_msg: Unable to parse
                                msg received from [<a href="http://188.29.165.141:46315" target="_blank">188.29.165.141:46315</a>]<br>
                                ERROR:core:tcp_handle_req: receive_msg
                                failed</blockquote>
                              <div><br>
                              </div>
                              <div><br>
                              </div>
                              <div>The SIP trace of the call is here:</div>
                              <div><br>
                              </div>
                              <div><a href="http://pastebin.com/dNpau6GT" target="_blank">http://pastebin.com/dNpau6GT</a></div>
                              <div><br>
                              </div>
                              <div>I am using the default config
                                scripts.  Please advise how to fix this.
                                 </div>
                              <div><br>
                              </div>
                              <div><br>
                              </div>
                              <div> </div>
                            </div>
                          </div>
                          <div class="gmail_extra"><br>
                            <div class="gmail_quote">On 14 August 2015
                              at 18:36, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>
                              wrote:<br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                <div text="#000000" bgcolor="#FFFFFF"> <tt>yes,

                                    you should.<br>
                                    <br>
                                    Regards,<br>
                                  </tt><span>
                                    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                  </span>
                                  <div>
                                    <div>
                                      <div>On 14.08.2015 18:06, Nabeel
                                        wrote:<br>
                                      </div>
                                      <blockquote type="cite">
                                        <p dir="ltr">Should I make the
                                          same change to rtpproxy_offer?</p>
                                        <p dir="ltr">    if
                                          (is_method(&quot;INVITE&quot;))
                                          {           <br>
                                                         if
                                          (isflagset(NAT)) {<br>
                                                               
                                          rtpproxy_offer(&quot;ro&quot;);<br>
                                                        
                                          }                                             
                                          <br>
                                        </p>
                                        <div class="gmail_quote">On 14
                                          Aug 2015 13:09, &quot;Bogdan-Andrei
                                          Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;


                                          wrote:<br type="attribution">
                                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                            <div text="#000000" bgcolor="#FFFFFF"> <tt>I
                                                see....you have a </tt><tt>onreply_route[handle_nat]


                                                in your script, doing:</tt><tt><br>
                                              </tt><tt><br>
                                              </tt><tt>    if (
                                                isflagset(NAT) )</tt><tt><br>
                                              </tt><tt>       
                                                rtpproxy_answer(&quot;ro&quot;);</tt><tt><br>
                                              </tt><tt><br>
                                              </tt><tt>Change that to :</tt><tt><br>
                                              </tt><tt><br>
                                              </tt><tt>    if (
                                                isflagset(NAT)
                                                &amp;&amp;
                                                has_body(&quot;application/sdp&quot;)
                                                )</tt><tt><br>
                                              </tt><tt>       
                                                rtpproxy_answer(&quot;ro&quot;);</tt><tt><br>
                                              </tt><tt><br>
                                              </tt><tt>Regards,</tt><br>
                                              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                              <div>On 14.08.2015 15:04,
                                                Nabeel wrote:<br>
                                              </div>
                                              <blockquote type="cite">
                                                <p dir="ltr">The
                                                  &#39;ringing&#39; stage of a
                                                  call is when the error
                                                  occurs.  Why should
                                                  180 Ringing lead to an
                                                  error? </p>
                                                <div class="gmail_quote">On
                                                  14 Aug 2015 12:47,
                                                  &quot;Bogdan-Andrei Iancu&quot;
                                                  &lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;




                                                  wrote:<br type="attribution">
                                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                    <div text="#000000" bgcolor="#FFFFFF">
                                                      <tt>Hi,<br>
                                                        <br>
                                                        ACK request or
                                                        180 ringing
                                                        reply are part
                                                        of a call and
                                                        they do not have
                                                        a body.<br>
                                                        <br>
                                                        It depends on
                                                        your scripting
                                                        to see when the
                                                        rtpproxy are
                                                        called (for what
                                                        sip message).<br>
                                                        <br>
                                                        You may use the
                                                        script_trace()
                                                        function :<br>
                                                            <a href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42" target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42</a><br>
                                                        to see which sip
                                                        messages to
                                                        generate the err
                                                        log.<br>
                                                        <br>
                                                        Regards,<br>
                                                      </tt>
                                                      <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                                      <div>On 14.08.2015
                                                        14:15, Nabeel
                                                        wrote:<br>
                                                      </div>
                                                      <blockquote type="cite">
                                                        <p dir="ltr">Hi
                                                          Bogdan,</p>
                                                        <p dir="ltr">Thanks,
                                                          but I had no
                                                          intentions of
                                                          using a SIP
                                                          message
                                                          without a
                                                          body; all I&#39;m
                                                          trying to do
                                                          is make a
                                                          normal call
                                                          with OpenSIPS.
                                                        </p>
                                                        <p dir="ltr">Please

                                                          explain why
                                                          I&#39;m getting a
                                                          SIP message
                                                          without a body
                                                          and how do I
                                                          fix it? </p>
                                                        <div class="gmail_quote">On

                                                          14 Aug 2015
                                                          11:12,
                                                          &quot;Bogdan-Andrei
                                                          Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;



                                                          wrote:<br type="attribution">
                                                          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                          <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Nabeel,<br>
                                                          <br>
                                                          You may get
                                                          this error
                                                          when calling
                                                          the rtpproxy
                                                          functions for
                                                          a SIP message
                                                          without a
                                                          body.<br>
                                                          <br>
                                                          Regards,<br>
                                                          </tt>
                                                          <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                                          <div>On
                                                          14.08.2015
                                                          09:58, Nabeel
                                                          wrote:<br>
                                                          </div>
                                                          <blockquote type="cite">
                                                          <div dir="ltr">Hi,


                                                          <div><br>
                                                          </div>
                                                          <div>I am
                                                          getting this
                                                          error when
                                                          making some
                                                          calls:</div>
                                                          <div><br>
                                                          </div>
                                                          <div>
                                                          <div>ERROR:rtpproxy:force_rtp_proxy:



                                                          Unable to
                                                          parse body</div>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>I think
                                                          this may be
                                                          related to
                                                          &#39;rtpproxy_offer&#39;
                                                          and
                                                          &#39;rtpproxy_answer&#39;
                                                          in the config
                                                          file but I
                                                          don&#39;t know how
                                                          to fix it.  I
                                                          am using the
                                                          default
                                                          OpenSIPS
                                                          config.</div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          </blockquote>
                                                        </div>
                                                      </blockquote>
                                                      <br>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                              </blockquote>
                                              <br>
                                            </div>
                                          </blockquote>
                                        </div>
                                      </blockquote>
                                      <br>
                                    </div>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>