<div dir="ltr">Great! I will waiting for answer. If it needed I may make some tests. We building new system and want to use this technology insread of classic gateway. We will happy to cooperate with you for findinf issues and solve it as faster as we may. Thanks! </div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-03 20:03 GMT+04:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <span style="font-family:arial,sans-serif;white-space:pre-wrap">$dlg_var(cseq_diff)
      is incremented after sending the invite out from failure route,
      being done when forwarding callback in dialog detects that the
      cseq value has to be incremented.<br>
      <br>
      I am going to test and see if there is an issue -- uac_auth()
      should set some internal flag to tell dialog to increment cseq.<br>
      <br>
      Cheers,<br>
      Daniel<br>
      <br>
    </span><div><div class="h5">
    <div>On 01/11/14 16:29, Yuriy Gorlichenko
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hello. I need to increment CSeq value for INVITE
        with Auth params when use UAC_AUTH for outgoing calls to
        provider.<br>
        <br>
        Kamailio 4.2 may increment this using dialog module <br>
        <br>
        <a href="http://by-miconda.blogspot.de/2014/10/kamailio-42-tips-7-increment-cseq-for.html" target="_blank">http://by-miconda.blogspot.de/2014/10/kamailio-42-tips-7-increment-cseq-for.html</a><br>
        <br>
        Now I experements with this and var $dlg_var(cseq_diff) and at
        transaction way int have NULL value. I can not understand why<br>
        <br>
        My config is:<br>
        <br>
        <div> # ----- dialog params</div>
        <div>modparam("dialog", "db_url",DBURL)</div>
        <div>modparam("dialog", "db_mode", 1)</div>
        <div>modparam("dialog","table_name","dialog")</div>
        <div>modparam("dialog", "dlg_flag", 4)</div>
        <div>modparam("dialog", "initial_cbs_inscript", 1)</div>
        <div>modparam("dialog", "profiles_with_value", "caller")</div>
        <div>modparam("dialog", "default_timeout", 60)</div>
        <div>modparam("dialog", "track_cseq_updates", 1)<br>
          <br>
          <br>
          route config is <br>
          <br>
          at request route<br>
          <br>
          <div style="font-family:arial,sans-serif;font-size:13px">if(is_method("INVITE")
            && !has_totag()){</div>
          <div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"> </span>$dlg_ctx(timeout_route)
            = "DIALOG_END";</div>
          <div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"> </span>$dlg_ctx(timeout_bye)
            = 1;</div>
          <div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"> </span>dlg_manage();</div>
          <div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"> </span>xlog("L_INFO","Dialog
            manage is {$ct}\n");</div>
          <div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"> </span>}<span style="white-space:pre-wrap"> }
              t_relay();</span></div>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px"><span style="white-space:pre-wrap"><br>
          </span></div>
        <div><font face="arial, sans-serif"><span style="white-space:pre-wrap">next I handle failure reply
              because 407 reply is recieved </span></font>
          <font face="arial, sans-serif"><span style="white-space:pre-wrap">failure_route[MANAGE_FAILURE]
              { route(NATMANAGE); if (t_check_status("401|407")){
              xlog("L_INFO", "Reply from provider on failure: $tU");
              xlog("L_ERR","401/407 - Unauthorized. ($ci .) ($rm) from
              ($fu) (IP:$si:$sp) to ($Ri:$Rp). Must be authorized with
              digest Auth."); avp_print(); xlog("L_INFO", "CSeq diff:
              $dlg_var(cseq_diff)"); uac_auth(); xlog("L_INFO",
              "UAC_AUTH(): $tU"); append_branch(); t_relay(); } if
              (t_is_canceled()) { exit; }
              }
              As you may see i logging </span></font><span style="font-family:arial,sans-serif;white-space:pre-wrap">$dlg_var(cseq_diff)
            value and now it NULL. So I can not understand why? What
            wrong I do?
            Thanks for advice.</span></div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Nov 24-27, Berlin - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>