Re: [SR-Users] Routing decision based on domain entry in Location Table

2014-04-17 Thread aawaise
Thanks alot. And what will be code for outgoing calls from a server. Like if a user attached to server A calls user at server B, how will server A route call out to other server rather than directly contacting the user ? How can I extract the value in "domain field" of the called user from locatio

Re: [SR-Users] Routing decision based on domain entry in Location Table

2014-04-16 Thread Daniel-Constantin Mierla
Hello, I would go for this logic: if lookup("location") returns false and the source ip different than the other server, then relay to the other server. Say the other server ip is a.b.c.d: if(!lookup("location")) { if(src_ip != a.b.c.d) { $du = "sip:a.b.c.d"; route(RELAY);

Re: [SR-Users] Routing decision based on domain entry in Location Table

2014-04-16 Thread aawaise
Hello, They can register to any of the servers as the registration process is independent of domain part of user id. My scenario is that once there are two users registered to different servers. And one user make a call to other. How will server decide using domain part from location table of dat

Re: [SR-Users] Routing decision based on domain entry in Location Table

2014-04-15 Thread Daniel-Constantin Mierla
Hello, can users register to any of the servers? Or are they partitioned to register only to one server? Cheers, Daniel On 16/04/14 06:43, aawaise wrote: Hello, I have deployed two kamailio servers, both sharing the same database. I want my kamailio servers to make a decision on the routing