<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi, Diptesh!</p>
    <p>This is indeed a limitation due to the fact that the module was
      initially designed to work only starting from a 200 OK.</p>
    <p>Please open a bug report for this on github so we can address it.</p>
    <p>Best regards,</p>
    <p>Răzvan<br>
    </p>
    <div class="moz-cite-prefix">On 6/10/20 7:39 AM, Diptesh Patel
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD4_Da3qVGQR_=UbiED3_t5r2ef6i=dut-Oe6_cnZhfOF+91EQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I am using the SIPREC module to send the request to SRS
          with fail-over. While recording early media and after
          Originator Cancel OpenSIPS does not send a BYE request to the
          SRS.  Please look at the script snippet of how I implemented
          that.</div>
        <div><br>
        </div>
        <div>if (is_method ("INVITE"))<br>
              {<br>
                if (siprec_start_recording ("sip:XX.XX.XXX.X00:5060"))<br>
          {<br>
           xlog ("L_INFO", "SIP RECORDING THROUGH XX.XX.XXX.X00");<br>
          }<br>
                else if (siprec_start_recording
          ("sip:XX.XX.XXX.X04:5060"))<br>
          {<br>
           xlog ("L_INFO", "SIP RECORDING THROUGH XX.XX.XXX.X04");<br>
          }<br>
                else<br>
          sl_send_reply ("404", "SIPREC Server NOT FOUND ");<br>
              }<br>
          }<br>
          <br>
          local_route {<br>
              if(is_method("INVITE")) {<br>
                  xlog("L_INFO","LOCAL ROUTE");<br>
                 
subst('/^Contact:(.*)<sip:(.*)>(.*)$/Contact:\1<sip:\2>;+sip.src\3/ig');<br>
              }<br>
          }<br>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div>
              <div>
                <div dir="ltr" class="gmail_signature"
                  data-smartmail="gmail_signature">
                  <div dir="ltr">
                    <div>
                      <div>Thanks & Regards</div>
                      <div dir="ltr"><b>Diptesh Patel</b>
                        <div>Software Developer </div>
                        <div>Ecosmob Technologies Ltd, </div>
                        <div>Ahmedabad</div>
                        <div>Mo:<b>+919898962659</b></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080"><b>Disclaimer</b></font></div>
      <div>
        <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small">In
            addition to generic Disclaimer which you have agreed on our
            website, any views or opinions presented in this email are
            solely those of the originator and do not necessarily
            represent those of the Company or its sister concerns. Any
            liability (in negligence, contract or otherwise) arising
            from any third party taking any action, or refraining from
            taking any action on the basis of any of the information
            contained in this email is hereby excluded.</span></div>
      </div>
      <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><br>
        </span></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080"><b>Confidentiality</b></font></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080">This communication (including any
          attachment/s) is intended only for the use of the addressee(s)
          and contains information that is PRIVILEGED AND CONFIDENTIAL.
          Unauthorized reading, dissemination, distribution, or copying
          of this communication is prohibited. Please inform originator
          if you have received it in error.</font></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080"><br>
        </font></div>
      <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><b>Caution
            for viruses, malware etc.</b></span></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080">This communication, including any attachments,
          may not be free of viruses, trojans, similar or new
          contaminants/malware, interceptions or interference, and may
          not be compatible with your systems. You shall carry out
          virus/malware scanning on your own before opening any
          attachment to this e-mail. The sender of this e-mail and
          Company including its sister concerns shall not be liable for
          any damage that may incur to you as a result of viruses,
          incompleteness of this message, a delay in receipt of this
          message or any other computer problems. </font></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
  </body>
</html>