<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">$fd contains the From URI domain. The registering UA is free to set this as they wish, and it may not align with your authentication realm. That’s why overriding it worked for you.<div><br></div><div>For more info:<br><div><br></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.3.x/pseudovariables#fd_-_from_uri_domain">https://www.kamailio.org/wiki/cookbooks/5.3.x/pseudovariables#fd_-_from_uri_domain</a></div><div><br><div dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br><blockquote type="cite">On Dec 9, 2019, at 11:32 PM, Robert Lieback <lieback@euratel.de> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Hello,</span><br><span></span><br><span>i'm looking into kamalio (btw: thanks to asipto for the great book) and i hope someone can push me in the right direction. I have a question/problem with some lines in the default config (kamailio.cfg) around line 754:</span><br><span></span><br><span>   ...</span><br><span></span><br><span>   if (is_method("REGISTER") || from_uri==myself) {</span><br><span>            # authenticate requests</span><br><span>            if (!auth_check("$fd", "subscriber", "1")) {</span><br><span>                auth_challenge("$fd", "0");</span><br><span>                exit;</span><br><span>            }</span><br><span></span><br><span>   ...</span><br><span></span><br><span>auth_check() and auth_challenge doesn't work, but i've provided the correct credentials. When i replace "$fd" with domain "voip.XXXXXX.de" it works. This domain is also defined as alias in the config and all sip messages i send to the server have a correct from header with this domain.</span><br><span>First step for me would be to look whats stored in $fd, but how can i output the content of $fd? Cause log(2, "$fd") or xlog("$fd") doesn't work and throws errors about unknown variables.</span><br><span></span><br><span>Thanks,</span><br><span></span><br><span>Robert Lieback</span><br><span></span><br><span></span><br><span></span><br><span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span>sr-users@lists.kamailio.org</span><br><span>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</span><br></div></blockquote></div></div></body></html>