$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.

For more info:

https://www.kamailio.org/wiki/cookbooks/5.3.x/pseudovariables#fd_-_from_uri_domain

Sent from mobile, with due apologies for brevity and errors.

On Dec 9, 2019, at 11:32 PM, Robert Lieback <lieback@euratel.de> wrote:

Hello,

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:

  ...

  if (is_method("REGISTER") || from_uri==myself) {
           # authenticate requests
           if (!auth_check("$fd", "subscriber", "1")) {
               auth_challenge("$fd", "0");
               exit;
           }

  ...

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.
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.

Thanks,

Robert Lieback



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users