I have tried extracting the value of $rd right at start of main route
function i.e route()
Still I am getting domain name from the INVITE packet. I have added this
code as I want this check to execute at every incoming INVITE.
if(is_method("INVITE"))
{
xlog("$rd");
xlog("$ru");
}
And I am check
Hello,
the username and domain in location are matched against the username and
domain in r-uri at the moment you execute lookup("location").
Therefore, just use $rd before doing lookup("location") to retrieve the
domain -- you can store it in $var(xyz) to have it after lookup("location").
I have deployed two kamailio servers with independent domain names, BOTH
sharing the same database.
When an "INVITE" packet approaches one server from a user. As per my
understanding it checks "Location Table" (containing online users) to find
about status (online or not) of called user.
If user is