<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" 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="moz-txt-link-abbreviated" href="mailto:Au=82621@116.203.XXX.XXX">
Au=82621@116.203.XXX.XXX</a> au=<null> aU=<null> fU=82621 <a class="moz-txt-link-abbreviated" href="mailto:fu=sip:82621@116.203.XXX.XXX">
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="moz-cite-prefix">Am 08.08.19 um 21:48 schrieb Joel Serrano:<br>
</div>
<blockquote type="cite" cite="mid:CAMtXxQm_YHtrnu-z6T6iX=_Bd_w+++=kHA=G8t+FNX0ZXSXE7Q@mail.gmail.com">
<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" moz-do-not-send="true">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="moz-txt-link-abbreviated" href="mailto:d8df9be1-1702e20b@A.B.C.D">
d8df9be1-1702e20b@A.B.C.D</a>} <script>: [DEBUG] <a class="moz-txt-link-abbreviated" href="mailto:Au=1002366@some.domain">
Au=1002366@some.domain</a> au=<null> aU=<null> fU=1002366 <a class="moz-txt-link-abbreviated" href="mailto:fu=sip:1002366@some.domain">
fu=sip:1002366@some.domain</a> -<br>
<br>
</div>
<div>Aug  8 14:37:43 csbc01 csbc[9479]: NOTICE: {1 21565 REGISTER <a class="moz-txt-link-abbreviated" href="mailto:d8df9be1-1702e20b@A.B.C.D">
d8df9be1-1702e20b@A.B.C.D</a>} <script>: [DEBUG] <a class="moz-txt-link-abbreviated" href="mailto:Au=1002366@some.domain">
Au=1002366@some.domain</a> au=1002366 aU=1002366 fU=1002366 <a class="moz-txt-link-abbreviated" href="mailto:fu=sip:1002366@some.domain">
fu=sip:1002366@some.domain</a> -<br>
<br>
</div>
<div>Aug  8 14:37:43 csbc01 csbc[9484]: NOTICE: {2 21565 REGISTER <a class="moz-txt-link-abbreviated" href="mailto:d8df9be1-1702e20b@A.B.C.D">
d8df9be1-1702e20b@A.B.C.D</a>} <script>: [DEBUG] <a class="moz-txt-link-abbreviated" href="mailto:Au=1002366@some.domain">
Au=1002366@some.domain</a> au=<null> aU=<null> fU=1002366 <a class="moz-txt-link-abbreviated" href="mailto:fu=sip:1002366@some.domain">
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="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>