<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">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">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div></div>