<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi,<br>
      <br>
      As the 200OK belongs to the BYE request, are you sure you arm the
      onreply route when handling the _BYE_ request ?<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and 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 02/07/2017 01:48 PM, Daniel Zanutti
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAN0jgiM6+WFnNPRM_0vUT3AMGqWjQApeEZE3H85MqrTh9v6E0g@mail.gmail.com"
      type="cite">
      <div dir="ltr">The sip client is working fine, I can confirm that
        both BYE and 200 OK are flowing through the proxy, the problem
        is I cannot modify the 200 OK message.
        <div><br>
        </div>
        <div>I need to modify a header on the 200 OK of the BYE but I
          cannot since the message doesn't pass to internal
          on_reply_route or main Route inside Opensips. It's being
          routed internally by Opensips directly to the destination.
          <div><br>
          </div>
          <div>Do you have any idea?</div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Feb 7, 2017 at 5:40 AM, Johan
          De Clercq <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:johan@democon.be" target="_blank">johan@democon.be</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Any chance to have a small capture ? <br>
              </div>
              I tend to agree with Robert, if you use rr consistently
              there should be no problem. It can of course also be that
              the client does something strange ... <br>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">2017-02-06 21:43 GMT+01:00
                    Daniel Zanutti <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:daniel.zanutti@gmail.com"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:daniel.zanutti@gmail.com">daniel.zanutti@gmail.com</a></a>></span>:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Hi Robert
                        <div><br>
                        </div>
                        <div>Yes, all messages are passing through the
                          proxy, but when I receive the 200 OK of the
                          BYE message, it doesn't go to Main Route or
                          Reply Route. It just go to the destination and
                          I cannot change anything on it.</div>
                        <div><br>
                        </div>
                        <div>Any idea?</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Mon, Feb 6, 2017 at
                          6:14 PM, Mundkowsky, Robert <span dir="ltr"><<a
                              moz-do-not-send="true"
                              href="mailto:rmundkowsky@ets.org"
                              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:rmundkowsky@ets.org">rmundkowsky@ets.org</a></a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div link="#0563C1" vlink="#954F72"
                              lang="EN-US">
                              <div
class="m_243933028024949809m_9128096075809787119m_242991819654021409WordSection1">
                                <p class="MsoNormal"><a
                                    moz-do-not-send="true"
name="m_243933028024949809_m_9128096075809787119_m_242991819654021409__MailEndCompose"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Did
                                      you use “record_route”?
                                    </span></a></p>
                                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">For
                                    reference:</span></p>
                                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">               
                                  </span><a moz-do-not-send="true"
                                    href="http://www.iptel.org/sip/intro/scenarios/rr"
                                    target="_blank"><span
                                      style="font-size:11.0pt;font-family:"Calibri",sans-serif">http://www.iptel.org/sip/intro<wbr>/scenarios/rr</span></a><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"></span></p>
                                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Robert
                                    Mundkowsky</span></p>
                                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                                <p class="MsoNormal"><b><span
                                      style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
                                    Users [mailto:<a
                                      moz-do-not-send="true"
                                      href="mailto:users-bounces@lists.opensips.org"
                                      target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.op">users-bounces@lists.op</a><wbr>ensips.org</a>]
                                    <b>On Behalf Of </b>Daniel Zanutti<br>
                                    <b>Sent:</b> Monday, February 6,
                                    2017 3:01 PM<br>
                                    <b>To:</b> OpenSIPS users mailling
                                    list <<a moz-do-not-send="true"
                                      href="mailto:users@lists.opensips.org"
                                      target="_blank">users@lists.opensips.org</a>><br>
                                    <b>Subject:</b> [OpenSIPS-Users]
                                    Change 200 OK of BYE message</span></p>
                                <div>
                                  <div
                                    class="m_243933028024949809m_9128096075809787119h5">
                                    <p class="MsoNormal"> </p>
                                    <div>
                                      <p class="MsoNormal">Hi</p>
                                      <div>
                                        <p class="MsoNormal"> </p>
                                      </div>
                                      <div>
                                        <p class="MsoNormal">I need to
                                          change something on the 200 OK
                                          of BYE message. Tried
                                          everything on Opensips but
                                          looks like this message
                                          doesn't follow standard
                                          message path. Neither Main
                                          Route or Reply route pass this
                                          message.</p>
                                      </div>
                                      <div>
                                        <p class="MsoNormal"> </p>
                                      </div>
                                      <div>
                                        <p class="MsoNormal">Is there
                                          any way to do it? </p>
                                      </div>
                                      <div>
                                        <p class="MsoNormal"> </p>
                                      </div>
                                      <div>
                                        <p class="MsoNormal">Thanks</p>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <br>
                              <hr>
                              <p>This e-mail and any files transmitted
                                with it may contain privileged or
                                confidential information. It is solely
                                for use by the individual for whom it is
                                intended, even if addressed incorrectly.
                                If you received this e-mail in error,
                                please notify the sender; do not
                                disclose, copy, distribute, or take any
                                action in reliance on the contents of
                                this information; and delete it from
                                your system. Any other use of this
                                e-mail is prohibited.</p>
                              <br>
                              <p>Thank you for your compliance.</p>
                              <hr>
                            </div>
                            <br>
                            ______________________________<wbr>_________________<br>
                            Users mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:Users@lists.opensips.org"
                              target="_blank">Users@lists.opensips.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                              rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                      <br>
                      ______________________________<wbr>_________________<br>
                      Users mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:Users@lists.opensips.org"
                        target="_blank">Users@lists.opensips.org</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                        rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank">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>