Hello,
I want to display the value from domain field of Location List in SER Monitor Menu. I extracted the value of $rd using xlog. It gave me the domain of callee but from invite packet. Not from the location list of SER Monitor Menu.
If callee is logged in to same database with another kamailio server and hence another domain name. How can I pick domain name by which its logged in Thanks.
Regards, Aawaise
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Name-of-pseudo-variable-by-which-dom... Sent from the Users mailing list archive at Nabble.com.
I have set the domain name (which I am looking for) using the example given in link below. Now I want to print the domain name in logs using xlog
http://kamailio.org/docs/modules/3.1.x/modules_k/usrloc.html#id2995652
Here is the exact text from the above link.
""""3.16. use_domain (integer)
If the domain part of the user should be also saved and used for identifing the user (along with the username part). Useful in multi domain scenarios. Non 0 value means true.
Default value is “0 (false)”.
... modparam("usrloc", "use_domain", 1) ... """"
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Name-of-pseudo-variable-by-which-dom... Sent from the Users mailing list archive at Nabble.com.
Hey,
I think the variable you want is $td.
See this for reference: To URI Domain
$td - reference to domain in URI of 'To' header
To display name
$tn - reference to display name of 'To' header
To tag
$tt - reference to tag parameter of 'To' header
To URI
$tu - reference to URI of 'To' header
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Name-of-pseudo-variable-by-which-dom... Sent from the Users mailing list archive at Nabble.com.
But $td picks domain name from the TO header. I want to pick domain name from Location Table. Domain name in TO header and Location Table are different in multi domain scenario.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Name-of-pseudo-variable-by-which-dom... Sent from the Users mailing list archive at Nabble.com.
Could you give me an example of the scenario you're trying to solve.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Name-of-pseudo-variable-by-which-dom... Sent from the Users mailing list archive at Nabble.com.
I have two servers with kamailio-3.1.1 working perfectly on them. Both have independent public IP's and domain names. BUT both are connected to SAME database at backend i.e both using same database. NOW during registeration process, my "client A" can connect to any of two servers. Lets say it is connected to "Server A". There is a "client B" who is connected to "Server B". THEN my client A calls client B. Request comes to Server A from Client A. Server doesn't drop the CALL REQUEST finding that Client B is present in LOCATION LIST in SER MONITOR MENU. But I want Server A to forward the call to Server B instead of making an attempt to directly connect to Client B. I have to make this decision for every call based on the string value in DOMAIN field of that called user i.e Client B to know it is connected to which server (domain). Thanks.
Regards
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Name-of-pseudo-variable-by-which-dom... Sent from the Users mailing list archive at Nabble.com.