<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>If you don't use dialog for something else than tracking cseq
      updates, then maybe it works by not using dlg_manage() for this
      calls. Otherwise, digging in the code would be the way to go.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 22.03.21 15:28, Tyler Moore wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMk+dbJX1dRFKxwOcFxAo6jM9LO20pTjw=X=6eSJD-FPQO=Kug@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Thanks for the
          reply Daniel,</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">I did see
          references to it in the source but was hoping that there was
          some way to implement this in config.</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">If you do find
          a workaround please let me know, otherwise I'll just create
          the patch and upstream it to the next development release.</div>
        <div>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <p
                                    style="color:rgb(0,0,0);width:220px"><font
                                      face="arial, helvetica,
                                      sans-serif">Regards,</font></p>
                                  <p
                                    style="color:rgb(0,0,0);width:210px;margin-left:10px"><font
                                      face="arial, helvetica,
                                      sans-serif"><a title="x-name"
                                        rel="noopener noreferrer author"
                                        href="https://devopsec.net/"
                                        style="color:rgb(0,0,0);display:inline-block"
                                        target="_blank"
                                        moz-do-not-send="true"><strong>Tyler
                                          Moore</strong></a> <br>
                                      <a rel="noopener noreferrer"
href="http://www.google.com/search?q=full+stack+software+engineer+job+description"
                                        style="color:black"
                                        target="_blank"
                                        moz-do-not-send="true"
                                        lang="x-link">Full Stack
                                        Software Engineer</a><br>
                                      <a rel="noopener noreferrer"
                                        href="http://goflyball.com/"
                                        style="color:black"
                                        target="_blank"
                                        moz-do-not-send="true"
                                        lang="x-link">Flyball Labs</a><br>
                                      Office: <a
                                        href="tel:8889072085;ext=34"
                                        style="color:black"
                                        target="_blank"
                                        moz-do-not-send="true"
                                        lang="x-link">888-907-2085, ext:
                                        34</a><br>
                                      Cell: <a href="tel:2489092769"
                                        style="color:black"
                                        target="_blank"
                                        moz-do-not-send="true"
                                        lang="x-link">248-909-2769</a><br>
                                      Email: <a
                                        href="mailto:tmoore@goflyball.com"
                                        style="color:black"
                                        target="_blank"
                                        moz-do-not-send="true"
                                        lang="x-link">tmoore@goflyball.com</a></font></p>
                                  <p
                                    style="color:rgb(0,0,0);width:210px;margin-left:10px"><img
                                      alt="FLYBALL TECHNICAL SOLUTIONS,
                                      LLC" moz-do-not-send="true"
                                      width="200" height="56"><br>
                                  </p>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 5:42
          AM Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Hello,</p>
            <p>the callbacks are in the code, executed just after
              receiving and before sending to the network, I don't think
              there is no possibility to interact with the callbacks
              from the config file.</p>
            <p>Having the possibility to turn on/off the cseq update
              likely requires some C coding, I don't remember by heart
              any way to do it right now, but I haven't had the time to
              check the code and refresh how is done to see if any
              workaround can be used at this moment.</p>
            <p>Cheers.<br>
              Daniel<br>
            </p>
            <div>On 19.03.21 16:51, Tyler Moore wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div class="gmail_default"
                  style="font-family:arial,helvetica,sans-serif">
                  <div class="gmail_default">Hey kamailio team, </div>
                  <div class="gmail_default"><br>
                  </div>
                  <div class="gmail_default">When are the callbacks in
                    the dialog module for updating $dlg_var(cseq_diff)
                    called?</div>
                  <div class="gmail_default">I am trying to dynamically
                    enable / disable cseq updates (some specific
                    carriers need it and some don't) by setting
                    $dlg_var(cseq_diff)=$null prior to sending the
                    request but it seems like the callback happens after
                    relaying.<br clear="all">
                  </div>
                  <div class="gmail_default">For example I tried various
                    locations:</div>
                  <div class="gmail_default">- prior to t_relay()</div>
                  <div class="gmail_default">- in onreply_route[]</div>
                  <div class="gmail_default">- in failure_route[]</div>
                  <div class="gmail_default">-
                    in event_route[tm:local-request]</div>
                  <div class="gmail_default">-
                    in event_route[tm:local-response]</div>
                  <div class="gmail_default"><br>
                  </div>
                  <div class="gmail_default">I also tried
                    setting modparam("dialog", "initial_cbs_inscript",
                    1) and calling dlg_manage() prior to routing and
                    those didn't seem to be the right callbacks either.</div>
                  <div class="gmail_default"><br>
                  </div>
                  <div class="gmail_default">Either the callback that
                    updates $dlg_var(cseq_diff) occurs after t_relay() /
                    forward() is called or
                    setting $dlg_var(cseq_diff)=$null has no effect.</div>
                  <div class="gmail_default"><br>
                  </div>
                  <div class="gmail_default">Is dynamically turning CSEQ
                    updates on / off possible by
                    overwriting $dlg_var(cseq_diff)?</div>
                  <div class="gmail_default">Or would this require new
                    logic in the dialog module to be supported?</div>
                </div>
                <div>
                  <div dir="ltr">
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div dir="ltr">
                                        <div dir="ltr">
                                          <p
                                            style="color:rgb(0,0,0);width:220px"><font
                                              face="arial, helvetica,
                                              sans-serif">Regards,</font></p>
                                          <p
                                            style="color:rgb(0,0,0);width:210px;margin-left:10px"><font
                                              face="arial, helvetica,
                                              sans-serif"><a
                                                title="x-name"
                                                rel="noopener noreferrer
                                                author"
                                                href="https://devopsec.net/"
style="color:rgb(0,0,0);display:inline-block" target="_blank"
                                                moz-do-not-send="true"><strong>Tyler
                                                  Moore</strong></a> <br>
                                              <a rel="noopener
                                                noreferrer"
href="http://www.google.com/search?q=full+stack+software+engineer+job+description"
                                                style="color:black"
                                                target="_blank"
                                                moz-do-not-send="true"
                                                lang="x-link">Full Stack
                                                Software Engineer</a><br>
                                              <a rel="noopener
                                                noreferrer"
                                                href="http://goflyball.com/"
                                                style="color:black"
                                                target="_blank"
                                                moz-do-not-send="true"
                                                lang="x-link">Flyball
                                                Labs</a><br>
                                              Office: <a
                                                href="tel:8889072085;ext=34"
                                                style="color:black"
                                                target="_blank"
                                                moz-do-not-send="true"
                                                lang="x-link">888-907-2085,
                                                ext: 34</a><br>
                                              Cell: <a
                                                href="tel:2489092769"
                                                style="color:black"
                                                target="_blank"
                                                moz-do-not-send="true"
                                                lang="x-link">248-909-2769</a><br>
                                              Email: <a
                                                href="mailto:tmoore@goflyball.com"
                                                style="color:black"
                                                target="_blank"
                                                moz-do-not-send="true"
                                                lang="x-link">tmoore@goflyball.com</a></font></p>
                                          <p
                                            style="color:rgb(0,0,0);width:210px;margin-left:10px"><img
                                              alt="FLYBALL TECHNICAL
                                              SOLUTIONS, LLC"
                                              moz-do-not-send="true"
                                              width="200" height="56"><br>
                                          </p>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
          </div>
        </blockquote>
      </div>
    </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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>