<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>why do you set the variable cseq_diff to 1? From the module README:</p>
<p>"The CSeq difference is stored in $dlg_var(cseq_diff), be sure this variable is not overwritten via config operation."</p>
<p>A suggestion would be to test this with DBG log level, so see if the dialog module is logging something related to the CSEQ update code path. There is some log output that should be visible.<br>
</p>
<p>Cheers,</p>
<p>Henning</p>
<div class="moz-cite-prefix">Am 27.04.19 um 18:27 schrieb Karsten Horsmann:<br>
</div>
<blockquote type="cite" cite="mid:CAFArqsZEBvNLx3J+YshtP0ok_5CVT4GrtmRs2vozFw_mSMxbhw@mail.gmail.com">
<div dir="auto">
<div>Hi,
<div dir="auto"><br>
</div>
<div dir="auto">AFAIK the uac module don't support cseq autoupdate.</div>
<div dir="auto"><br>
</div>
<div dir="auto">CSeq is not increased automatically by uac_auth() during authentication - the follow up request may be rejected. CSeq can be increased when authenticating INVITE requests - dialog module has to be used, with CSeq tracking feature enabled (see
 the readme of dialog module).</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hmm are you sure that the dialog module is taking care of your second INVITE? </div>
<br>
Kind regards </div>
<div dir="auto">Karsten </div>
<div dir="auto"><br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">Andrew White <<a href="mailto:andrew@uconnected.com.au" moz-do-not-send="true">andrew@uconnected.com.au</a>> schrieb am Fr., 26. Apr. 2019, 19:15:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space">Hi all,
<div><br>
</div>
<div>I’m still building with app_ruby and loving it - for the most part!</div>
<div><br>
</div>
<div>I’m having an issue with one of my providers responding with a 482 on auth invite. Researching, it appears that my CSeq isn’t incrementing and this is the reason for the issue.</div>
<div><br>
</div>
<div>I already have the relevant flag set in my kamailio.cfg however:</div>
<div><br>
</div>
<div>modparam("dialog", "track_cseq_updates", 1) </div>
<div><br>
</div>
<div>During my uac_auth, I’ve tried manually setting the diff, as well as running msg_iflag_reset (as suggested by Daniel -
<a href="https://github.com/kamailio/kamailio/issues/1359" target="_blank" rel="noreferrer" moz-do-not-send="true">
https://github.com/kamailio/kamailio/issues/1359</a> - unfortunately the function isn’t exported in KEMI):</div>
<div><br>
</div>
<div>
<div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;line-height:18px;white-space:pre-wrap">
<div><span style="color:#c586c0">if</span> <span style="color:#4ec9b0">KSR</span>::<span style="color:#4ec9b0">UAC</span>.uac_auth()
<span style="color:#c586c0">then</span></div>
<div><span style="color:#4ec9b0">KSR</span>.info(<span style="color:#ce9178">"UAC authed, relaying"</span>)</div>
<div><span style="color:#6a9955">#KSR::COREX.msg_iflag_reset("UAC_AUTH")</span></div>
<div><span style="color:#4ec9b0">KSR</span>::<span style="color:#4ec9b0">PV</span>.sets(<span style="color:#ce9178">"$dlg_var(cseq_diff)"</span>,
<span style="color:#ce9178">"1"</span>)</div>
<div><span style="color:#4ec9b0">KSR</span>.info(<span style="color:#ce9178">"CSeq diff:
</span><span style="color:#569cd6">#{</span><span style="color:#4ec9b0">KSR</span>::<span style="color:#4ec9b0">PV</span>.gete(<span style="color:#ce9178">"$dlg_var(cseq_diff)"</span>)<span style="color:#569cd6">}</span><span style="color:#ce9178">"</span>)</div>
<div><span style="color:rgb(78,201,176)">KSR</span>::<span style="color:rgb(78,201,176)">TM</span>.t_relay()</div>
</div>
<div>
<div dir="auto" style="text-align:start;text-indent:0px;word-wrap:break-word;line-break:after-white-space">
<div dir="auto" style="word-wrap:break-word;line-break:after-white-space">
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
<br>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
Unfortunately in both cases the actual CSeq doesn’t increment in the second INVITE:</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
<br>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
INVITE 1 (unauthenticated):</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
 > CSeq: 102 INVITE</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
<br>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
INVITE 2 (with Authorization header):</div>
<div style="text-align:start;text-indent:0px">> CSeq: 102 INVITE</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
<br>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
I’m unsure if I’ve missed something silly around the track_cseq_updates flag, or if app_ruby somehow isn’t interacting with the dialog module when running uac_auth to trigger the increment?</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
<br>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
Thanks!</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
<br>
Kind regards,</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
<br>
</div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;text-align:start;text-indent:0px">
Andrew</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</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">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>