<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>Can you do an xlog("sipmsg_validate error: $rc\n") in the
        error block, please?</tt><br>
    </p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 24.05.2017 22:00, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADzurOL0YRWMb6dWH9gqWO-JdN6vmYqBbW2vjEAn+yzniu8+8Q@mail.gmail.com">
      <div dir="ltr">
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>if
          (!sipmsg_validate("shr")) {</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>send_reply("400",
          "Bad Request/Body");</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>exit;</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>};</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-05-24 21:46 GMT+03:00 Liviu Chircu
          <span dir="ltr"><<a href="mailto:liviu@opensips.org"
              target="_blank" moz-do-not-send="true">liviu@opensips.org</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p><tt>Are you using sipmsg_validate()? If yes, note that
                  it can also receive an additional parameter, holding
                  the error reason, which would be very helpful if
                  printed.</tt><span class="HOEnZb"><font
                    color="#888888"><br>
                  </font></span></p>
              <span class="HOEnZb"><font color="#888888">
                  <pre class="m_5097594307280287993moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="m_5097594307280287993moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a></pre>
                </font></span>
              <div>
                <div class="h5">
                  <div class="m_5097594307280287993moz-cite-prefix">On
                    24.05.2017 19:15, Dragomir Haralambiev wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div class="gmail_extra">In Opensips log I not see
                        any errors.</div>
                      <div class="gmail_extra"><br>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On May 24, 2017 10:37,
                          "Răzvan Crainea" <<a
                            href="mailto:razvan@opensips.org"
                            target="_blank" moz-do-not-send="true">razvan@opensips.org</a>>
                          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,
                                Dragomir!<br>
                                <br>
                                This doesn't help us at all. Can you
                                check the OpenSIPS logs for any errors?<br>
                                <br>
                                Best regards,<br>
                              </tt>
                              <pre class="m_5097594307280287993m_3337055302445408315m_-8119155774147526160moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_5097594307280287993m_3337055302445408315m_-8119155774147526160moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
                              <div
class="m_5097594307280287993m_3337055302445408315m_-8119155774147526160moz-cite-prefix">On
                                05/23/2017 09:39 PM, Dragomir
                                Haralambiev wrote:<br>
                              </div>
                              <blockquote type="cite">
                                <div dir="ltr">Hello,
                                  <div><br>
                                    <div>After update from Opensips
                                      2.2.3 to 2.2.4 I have follow
                                      problem with WebRTC (sip.js):</div>
                                    <div>When WebRTC send CANCEL
                                      Opensips return  SIP/2.0 400 Bad
                                      Request/Body.</div>
                                    <div><br>
                                    </div>
                                    <div>Here is WebSocket log:<br>
                                      <br>
                                      <div>Tue May 23 2017 21:10:47
                                        GMT+0300 (FLE Daylight Time) |
                                        sip.transport | sending
                                        WebSocket message:</div>
                                      <div><br>
                                      </div>
                                      <div>CANCEL <a
                                          class="m_5097594307280287993moz-txt-link-freetext"
                                          moz-do-not-send="true">sip:3287423512@</a><IP:Opensips>
                                        SIP/2.0</div>
                                      <div>Via: SIP/2.0/WSS
                                        192.0.2.16;branch=z9hG4bK82966<wbr>49</div>
                                      <div>To: <<a
                                          class="m_5097594307280287993moz-txt-link-freetext"
                                          moz-do-not-send="true">sip:3287423512@</a><IP:Opensips>></div>
                                      <div>From: "Tester"
                                        <sip:<Sip.js_ID>@<IP:Opensips><wbr>>;tag=6mmehombk4</div>
                                      <div>Call-ID: ncgujo0cn2a6neb0hguj</div>
                                      <div>CSeq: 9374 CANCEL</div>
                                      <div>Content-Length: 0</div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>sip-0.7.7.js:2900 Tue May 23
                                        2017 21:10:47 GMT+0300 (FLE
                                        Daylight Time) | sip.transport |
                                        received WebSocket text message:</div>
                                      <div><br>
                                      </div>
                                      <div>SIP/2.0 400 Bad Request/Body</div>
                                      <div>Via: SIP/2.0/WSS
                                        192.0.2.16;received=<Sip.js_IP<wbr>>;branch=z9hG4bK8296649</div>
                                      <div>To: <<a
                                          class="m_5097594307280287993moz-txt-link-freetext"
                                          moz-do-not-send="true">sip:3287423512@</a><IP:Opensips>><wbr>;tag=1fdc427fd21267a1733a000b0<wbr>1d225fc.005b</div>
                                      <div>From: "Tester"
                                        <sip:<Sip.js_ID>@<IP:Opensips><wbr>>;tag=6mmehombk4</div>
                                      <div>Call-ID: ncgujo0cn2a6neb0hguj</div>
                                      <div>CSeq: 9374 CANCEL</div>
                                      <div>Server: SIP Proxy</div>
                                      <div>Content-Length: 0</div>
                                    </div>
                                  </div>
                                </div>
                                <br>
                                <fieldset
class="m_5097594307280287993m_3337055302445408315m_-8119155774147526160mimeAttachmentHeader"></fieldset>
                                <br>
                                <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_5097594307280287993m_3337055302445408315m_-8119155774147526160moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_5097594307280287993m_3337055302445408315m_-8119155774147526160moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
                              </blockquote>
                              <br>
                            </div>
                            <br>
                            ______________________________<wbr>_________________<br>
                            Users mailing list<br>
                            <a href="mailto:Users@lists.opensips.org"
                              target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a><br>
                            <a
                              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                              rel="noreferrer" target="_blank"
                              moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
                            <br>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset
                      class="m_5097594307280287993mimeAttachmentHeader"></fieldset>
                    <br>
                    <pre>______________________________<wbr>_________________
Users mailing list
<a class="m_5097594307280287993moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_5097594307280287993moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opensips.org"
              moz-do-not-send="true">Users@lists.opensips.org</a><br>
            <a
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>