<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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 class="moz-cite-prefix">On 19.03.21 16:51, Tyler Moore wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMk+dbJkobPt_BT4hofRFcOj6-Q805cB0MsvoFE6C=2Y3uBjMg@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">
          <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" 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>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>