Hello,
I have multidomain scenario with parameters (both domains (servers) using common database): modparam("usrloc", "use_domain", 1); and modparam("domain", "db_mode", 1). I want to know using domain and usrloc what kind of tweaking is possibe ??
Secondly, I wanto to print domain of callee in the logs on arrival of INVITE packet. How can it be done ?
Regards, Awaise
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Print-callee-domain-in-logs-tp130597... Sent from the Users mailing list archive at Nabble.com.
Hello,
callee is in the sip signaling, respectively the r-uri. its domain is $rd, so you can print that with xlog().
Cheers, Daniel
On 13/09/14 10:33, aawaise wrote:
Hello,
I have multidomain scenario with parameters (both domains (servers) using common database): modparam("usrloc", "use_domain", 1); and modparam("domain", "db_mode", 1). I want to know using domain and usrloc what kind of tweaking is possibe ??
Secondly, I wanto to print domain of callee in the logs on arrival of INVITE packet. How can it be done ?
Regards, Awaise
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Print-callee-domain-in-logs-tp130597... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
What if in INVITE packet, callee's domain is domain1. For example user1@domain1 --------> calls --------> user2@domain1 but user2 is registered with domain2. its aor is user2@domain2 in location table. Now I want to somehow route my Invite packet to domain2. How is it possible ??
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Print-callee-domain-in-logs-tp130597... Sent from the Users mailing list archive at Nabble.com.
On 16/09/14 06:26, aawaise wrote:
What if in INVITE packet, callee's domain is domain1. For example user1@domain1 --------> calls --------> user2@domain1 but user2 is registered with domain2. its aor is user2@domain2 in location table. Now I want to somehow route my Invite packet to domain2. How is it possible ??
if the username is the identifier (e.g., it is unique across domains, like telephone numbers), then disable multi domain support. Otherwise you should look at subscriber table to identify which domain is, but there can be always conflicts, like, what happens if user2 is in domain1, domain2 and domain3? Cheers, Daniel
How can we extract domain from the subscriber table to logs ?? Its beyond my control at the moment to shift to kamailio-4.1. So have to persist with kamailio-3.1 ?
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Print-callee-domain-in-logs-tp130597... Sent from the Users mailing list archive at Nabble.com.
On Wed, Sep 17, 2014 at 6:39 PM, aawaise owaisulhaq@hotmail.com wrote:
How can we extract domain from the subscriber table to logs ?? Its beyond my control at the moment to shift to kamailio-4.1. So have to persist with kamailio-3.1 ?
Look at the pseudovariable documentation. It sounds like $rd is what you want.
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#domain_in_si...
Corey