Discussion:
[SR-Users] Print callee domain in logs
aawaise
2014-09-13 08:33:36 UTC
Permalink
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.html
Sent from the Users mailing list archive at Nabble.com.
Daniel-Constantin Mierla
2014-09-15 09:36:08 UTC
Permalink
Hello,

callee is in the sip signaling, respectively the r-uri. its domain is
$rd, so you can print that with xlog().

Cheers,
Daniel
Post by aawaise
Hello,
I have multidomain scenario with parameters (both domains (servers) using
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.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany
aawaise
2014-09-16 04:26:50 UTC
Permalink
What if in INVITE packet, callee's domain is domain1.
For example ***@domain1 --------> calls --------> ***@domain1
but user2 is registered with domain2. its aor is ***@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-tp130597p130650.html
Sent from the Users mailing list archive at Nabble.com.
Daniel-Constantin Mierla
2014-09-16 09:54:32 UTC
Permalink
Post by aawaise
What if in INVITE packet, callee's domain is domain1.
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
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany
aawaise
2014-09-18 00:39:00 UTC
Permalink
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-tp130597p130733.html
Sent from the Users mailing list archive at Nabble.com.
Corey Edwards
2014-09-18 03:41:52 UTC
Permalink
Post by aawaise
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_sip_request_s_uri

Corey

Loading...