Hi All,
When my kamailio server receives an "invite" packet to make a call. I want the kamailio server to make a decision about call routing. Whether to route call to other kamailio server or route it to local user. I want to base this decision on "domain" of called user. This "domain" is to be picked from "Location List" in database. Both servers are using the same database. I have two tasks here. One is to pick the domain of user from "Location Table" of Siremis. And secondly, route this call to other server on basis of the string I get from "Domain" of "Location Table". Need help regarding changes in kamailio.cfg for this.
Any help will be highly appreciated. Thanks, Regards, Aawaise
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Pick-Domain-name-from-Location-Table... Sent from the Users mailing list archive at Nabble.com.
Hello Aawaise,
For a newbie, the easiest way to achieve this might be to use the 'domain' knowledge, whose DB table backing SIREMIS can administer out of the box:
http://kamailio.org/docs/modules/4.1.x/modules/domain.html
You might consider populating the 'domain' table with your list of "local" registrant domains, and checking if(is_uri_host_local()) on incoming INVITEs. If it's positive, do a registrar lookup. If it's negative, send the INVITE elsewhere.
Of course, be careful not to turn your proxy into an open relay in the process!
Best of luck,
-- Alex
On 04/21/2014 04:08 AM, aawaise wrote:
Hi All,
When my kamailio server receives an "invite" packet to make a call. I want the kamailio server to make a decision about call routing. Whether to route call to other kamailio server or route it to local user. I want to base this decision on "domain" of called user. This "domain" is to be picked from "Location List" in database. Both servers are using the same database. I have two tasks here. One is to pick the domain of user from "Location Table" of Siremis. And secondly, route this call to other server on basis of the string I get from "Domain" of "Location Table". Need help regarding changes in kamailio.cfg for this.
Any help will be highly appreciated. Thanks, Regards, Aawaise
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Pick-Domain-name-from-Location-Table... 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