Re: [SR-Users] Issue in Multi Domain Environment

2014-05-13 Thread aawaise
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

Re: [SR-Users] Issue in Multi Domain Environment

2014-05-13 Thread Daniel-Constantin Mierla
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").

[SR-Users] Issue in Multi Domain Environment

2014-05-13 Thread aawaise
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