<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>do you track both legs of the call in kamailio? From freeswitch
      comes back a completely new call.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 04.05.21 16:59, David Villasmil
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFGRPVqnCd=npOoVPEB5U7NFwfdeG95-ZpB6fsAbVAsyfXbMFQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello guys,
        <div><br>
        </div>
        <div>I'm using the dialog module, params are:</div>
        <div><br>
        </div>
        <div><font face="monospace"># ----- dialog params -----<br>
            modparam("dialog", "db_mode", 0)<br>
            modparam("dialog", "dlg_flag", 20)<br>
            modparam("dialog", "ka_timer", 10)<br>
            modparam("dialog", "ka_interval", 30)<br>
            modparam("dialog", "ka_failed_limit", 2)<br>
            modparam("dialog", "send_bye", 1)<br>
            modparam("dialog", "timer_procs", 1)</font><br>
        </div>
        <div><br>
        </div>
        <div>When receiving an INVITE, i'm doing</div>
        <div><br>
        </div>
        <div><span style="font-family:monospace">dlg_set_property("ka-src");</span><br>
        </div>
        <div><font face="monospace">dlg_set_property("ka-dst");<br>
            dlg_set_property("timeout-noreset");</font><br>
        </div>
        <div><br>
        </div>
        <div>I have a couple questions:</div>
        <div><br>
        </div>
        <div>The flow is the following:</div>
        <div><br>
        </div>
        <div>
          <div><font face="monospace">clientA>-\</font></div>
          <div><font face="monospace">         
              kamailio<->freeswitch</font></div>
        </div>
        <div>
          <div><span style="font-family:monospace">clientB<-/</span></div>
        </div>
        <div><br>
        </div>
        <div>Kamailio receives an INVITE from ClientA, which I forward
          to freeswitch, which in turn forwards it back to Kamailio.</div>
        <div><br>
        </div>
        <div>In reality I would like to monitor only the client legs,
          but I'm having problems, so I'm enabling OPTIONS on all legs.</div>
        <div><br>
        </div>
        <div>On the ClientA legs, I see OPTIONS going from kamailio to
          both freeswitch and the client.</div>
        <div>But on the ClientB legs i don't see any OPTIONS at all.</div>
        <div><br>
        </div>
        <div>Can someone point me in the right direction to enable it on
          all legs?</div>
        <div><br>
        </div>
        <div>Something else i'm seeing is even though i set
          "ka_failed_limit" to 2, kamailio is sending several OPTIONS
          before sending BYEs to both legs (clientA, since there are no
          OPTIONS on clientB)</div>
        <div><br>
        </div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>Thanks all,</div>
                <div><br>
                </div>
                David Villasmil
                <div>email: <a
                    href="mailto:david.villasmil.work@gmail.com"
                    target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
                <div>phone: +34669448337</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>