<div dir="ltr">Done: <a href="https://github.com/kamailio/kamailio/issues/2056">https://github.com/kamailio/kamailio/issues/2056</a><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 5, 2019 at 8:18 AM Joel Serrano <<a href="mailto:joel@textplus.com">joel@textplus.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 dir="ltr">Hello Henning, <div><br></div><div>Unfortunately I don't have an older version to test, but I did get a little further with my tests.</div><div><br></div><div>Opening a GH issue with all the current and new details right now.</div><div><br></div><div>Joel.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 8, 2019 at 1:29 PM Henning Westerholt <<a href="mailto:hw@skalatan.de" target="_blank">hw@skalatan.de</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 bgcolor="#FFFFFF">
<p>Hello Joel,</p>
<p>I did a quick look into the code, this is basically unchanged since 2008. I also tested 5.2.3, it shows the same behavior.</p>
<p>NOTICE: {1 1 REGISTER 363545605-1445114084-1880652839} <script>: [DEBUG] <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:Au=82621@116.203.XXX.XXX" target="_blank">
Au=82621@116.203.XXX.XXX</a> au=<null> aU=<null> fU=82621 <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:fu=sip:82621@116.203.XXX.XXX" target="_blank">
fu=sip:82621@116.203.XXX.XXX</a> -<br>
</p>
<p>root@sip:~# kamcmd core.version<br>
kamailio 5.2.3 (x86_64/linux)   <br>
</p>
<p>I certainly would make more sense in a way like it is documented. Can you easily check an older version?</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-cite-prefix">Am 08.08.19 um 21:48 schrieb Joel Serrano:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,<br>
<div><br>
</div>
<div>Testing on latest master deb nightly build from last night I've noticed that when $au is not available, $Au is being set to $fu (uri) instead of $fU (username).</div>
<div><br>
</div>
<div>Docs: <a href="https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables" target="_blank">https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables</a></div>
<div><br>
</div>
<div>...</div>
<div>$Au - Acc username: username for accounting purposes. It's a selective pseudo variable (inherited from acc module). It returns auth username ($au) if exists or From username ($fU) otherwise.<br>
</div>
<div>...</div>
<div><br>
</div>
<div>I have the following log in several places in a test box:</div>
<div><br>
</div>
<div>xlog("L_NOTICE", "[DEBUG] Au=$Au au=$au aU=$aU fU=$fU fu=$fu - \n");<br>
</div>
<div><br>
</div>
<div>And when I run through them (on both request and reply routes) I get the following:</div>
<div><br>
</div>
<div>Aug  8 14:37:43 csbc01 csbc[9478]: NOTICE: {1 21564 REGISTER <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:d8df9be1-1702e20b@A.B.C.D" target="_blank">
d8df9be1-1702e20b@A.B.C.D</a>} <script>: [DEBUG] <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:Au=1002366@some.domain" target="_blank">
Au=1002366@some.domain</a> au=<null> aU=<null> fU=1002366 <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:fu=sip:1002366@some.domain" target="_blank">
fu=sip:1002366@some.domain</a> -<br>
<br>
</div>
<div>Aug  8 14:37:43 csbc01 csbc[9479]: NOTICE: {1 21565 REGISTER <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:d8df9be1-1702e20b@A.B.C.D" target="_blank">
d8df9be1-1702e20b@A.B.C.D</a>} <script>: [DEBUG] <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:Au=1002366@some.domain" target="_blank">
Au=1002366@some.domain</a> au=1002366 aU=1002366 fU=1002366 <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:fu=sip:1002366@some.domain" target="_blank">
fu=sip:1002366@some.domain</a> -<br>
<br>
</div>
<div>Aug  8 14:37:43 csbc01 csbc[9484]: NOTICE: {2 21565 REGISTER <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:d8df9be1-1702e20b@A.B.C.D" target="_blank">
d8df9be1-1702e20b@A.B.C.D</a>} <script>: [DEBUG] <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:Au=1002366@some.domain" target="_blank">
Au=1002366@some.domain</a> au=<null> aU=<null> fU=1002366 <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:fu=sip:1002366@some.domain" target="_blank">
fu=sip:1002366@some.domain</a> -<br>
</div>
<div><br>
</div>
<div>Those 3 logs belong to the same flow from different places in the config script.</div>
<div><br>
</div>
<div>I would expect $Au to never have a "@some.domain" in it, so I assume in some place the replacement is not being done with $fU but with $fu.</div>
<div><br>
</div>
<div>@Devs: I'm happy to create a GH issue for tracking etc if required, please let me know!<br>
</div>
<div><br>
</div>
<div>Cheers, </div>
<div>Joel.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="gmail-m_-835701478674151287gmail-m_-6134542774073709064mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-signature" cols="72">-- 
Henning Westerholt - <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-freetext" href="https://skalatan.de/blog/" target="_blank">https://skalatan.de/blog/</a>
Kamailio services - <a class="gmail-m_-835701478674151287gmail-m_-6134542774073709064moz-txt-link-freetext" href="https://skalatan.de/services" target="_blank">https://skalatan.de/services</a></pre>
</div>

</blockquote></div>
</blockquote></div>