<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Douglas,<br>
      <br>
      I agree that something like this should be doable in a simpler way
      - once you do the trace_dialog() or sip_trace() is should cover
      the local route also - I will create a ticket for future
      improvements on this.<br>
      <br>
      Thanks and 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>
    <br>
    On 01/25/2013 08:39 PM, Douglas Lopes Pereira wrote:
    <blockquote
cite="mid:CAMWRJkS9_YoWdrN1JX2moWmRg1kFiRyYsbPSXt0OqhZXNrOZAA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Just managed to achieve that by using the
        onreply_route and sip_trace() function.<br>
        <br>
        Thanks for your attention.<br>
        <br>
        Regards,<br>
        Douglas<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">
          On Fri, Jan 25, 2013 at 2:56 PM, Douglas Lopes Pereira <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:douglaslopespereira@gmail.com"
              target="_blank">douglaslopespereira@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div dir="ltr">
              <div>
                <div>Guys, <br>
                  <br>
                  I was able to trace BYE messages after a session
                  expires by adding the sip_trace() function call on
                  local_route as suggested by Bogdan. But unfortunatelly
                  I just realize that the 200OK reply for those messages
                  are not logged.<br>
                  <br>
                </div>
                I tried adding a call back for TMCB_RESPONSE_IN on
                sip_trace for the BYE messages but it didn't work.<br>
                <br>
              </div>
              Do you guys have any suggestion?<br>
              <br>
              Thanks for your help.<br>
              <br>
              Regards,<br>
              Douglas<br>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">On Thu, Jan 24, 2013 at 11:31
                    AM, Douglas Lopes Pereira <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:douglaslopespereira@gmail.com"
                        target="_blank">douglaslopespereira@gmail.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      <div dir="ltr">
                        <div>
                          <div>Fantastic! I didn't know about
                            local_route. I'm now able to log using
                            sip_trace().<br>
                          </div>
                          <br>
                        </div>
                        Thank you very much.<br>
                        <br>
                        Regards,<br>
                        Douglas.<br>
                      </div>
                      <div>
                        <div>
                          <div class="gmail_extra"><br>
                            <br>
                            <div class="gmail_quote">On Thu, Jan 24,
                              2013 at 10:50 AM, Bogdan-Andrei Iancu <span
                                dir="ltr">&lt;<a moz-do-not-send="true"
                                  href="mailto:bogdan@opensips.org"
                                  target="_blank">bogdan@opensips.org</a>&gt;</span>
                              wrote:<br>
                              <blockquote class="gmail_quote"
                                style="margin: 0pt 0pt 0pt 0.8ex;
                                border-left: 1px solid rgb(204, 204,
                                204); padding-left: 1ex;">
                                <div bgcolor="#ffffff" text="#000000"> <tt>Douglas,
                                    all internally generated requests
                                    (including the ones from dlg_end_dlg
                                    ) are visible in local_route.<br>
                                    <br>
                                    Regards,<br>
                                  </tt>
                                  <div>
                                    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                    <br>
                                  </div>
                                  <div>
                                    <div> On 01/24/2013 02:48 PM,
                                      Douglas Lopes Pereira wrote:
                                      <blockquote type="cite">
                                        <div dir="ltr">
                                          <div>
                                            <div>Hi Bogdan,<br>
                                              <br>
                                              thanks for the quick
                                              reply.<br>
                                              <br>
                                            </div>
                                            Unfortunatelly the BYE
                                            messages are sent by the
                                            dlg_end_dlg (triggered on
                                            dlg_ontimeout) so I believe
                                            we don't have a chance to
                                            call sip_trace() from any
                                            local route. Do we?<br>
                                            <br>
                                          </div>
                                          Regards,<br>
                                          Douglas<br>
                                        </div>
                                        <div class="gmail_extra"><br>
                                          <br>
                                          <div class="gmail_quote">On
                                            Thu, Jan 24, 2013 at 10:24
                                            AM, Bogdan-Andrei Iancu <span
                                              dir="ltr">&lt;<a
                                                moz-do-not-send="true"
                                                href="mailto:bogdan@opensips.org"
                                                target="_blank">bogdan@opensips.org</a>&gt;</span>
                                            wrote:<br>
                                            <blockquote
                                              class="gmail_quote"
                                              style="margin: 0pt 0pt 0pt
                                              0.8ex; border-left: 1px
                                              solid rgb(204, 204, 204);
                                              padding-left: 1ex;">
                                              <div bgcolor="#ffffff"
                                                text="#000000"> <tt>Hi
                                                  Douglas,<br>
                                                  <br>
                                                  Indeed, that's an
                                                  interesting case -
                                                  have you tried to call
                                                  sip_trace() from local
                                                  route when the BYEs
                                                  are sent out ?<br>
                                                  <br>
                                                  Regards,</tt><br>
                                                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                                <div>
                                                  <div> <br>
                                                    On 01/24/2013 01:00
                                                    PM, Douglas Lopes
                                                    Pereira wrote: </div>
                                                </div>
                                                <blockquote type="cite">
                                                  <div>
                                                    <div>
                                                      <div dir="ltr">
                                                        <div>
                                                          <div>
                                                          <div>
                                                          <div>Hi guys,<br>
                                                          <br>
                                                          </div>
                                                          Let's say my
                                                          current
                                                          opensips
                                                          application is
                                                          reponsible for
                                                          finishing a
                                                          call if the
                                                          session is not
                                                          refreshed by
                                                          the endpoints.
                                                          At that point
                                                          what we do is
                                                          to send BYE
                                                          messages to
                                                          both legs and
                                                          get the 200OK
                                                          from them to
                                                          finish the
                                                          dialog.<br>
                                                          <br>
                                                          </div>
                                                          My question
                                                          is, is it
                                                          possible to
                                                          trace those
                                                          BYE generated
                                                          internally on
                                                          opensips and
                                                          200OK replies
                                                          using
                                                          Siptrace? I've
                                                          looked into
                                                          the callback
                                                          flags and none
                                                          seems to apply
                                                          to this case.<br>
                                                          <br>
                                                          </div>
                                                          My plan was to
                                                          change the
                                                          function t_uac
                                                          on uac.c to
                                                          call the log
                                                          callback but I
                                                          would like to
                                                          hear from you
                                                          if there is
                                                          any other
                                                          option.<br>
                                                          <br>
                                                        </div>
                                                        <div>Thanks in
                                                          advace.<br>
                                                        </div>
                                                        <br>
                                                        Regards,<br>
                                                        Douglas<br>
                                                      </div>
                                                    </div>
                                                  </div>
                                                  <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                                                </blockquote>
                                              </div>
                                            </blockquote>
                                          </div>
                                          <br>
                                        </div>
                                      </blockquote>
                                    </div>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>