On 14 Mar 2014, at 04:34, Neville D'Souza ncd@gogopay.com wrote:
Hi Daniel,
Just a query regarding the same. I will be building 2 live kamailio servers based in 2 different countries which will be a backend to a mobile app. I already have a test server running fine. I need to know how to have 2 kamailio servers relay calls to each other, could you specify the below if applicable in my case. What is the specific config I need to do which will be different from hosting just one Kamailio server. Please note I am not using domains or dns but IP addresses, for example user01@111.111.111.111. I have also suppress reverse lookups in config file.
I think you need to play with the base configuration. If you place a call to "user01@111.111.111.111" with the default configuration it will just work (TM).
Just change the domain part of the URI if needed, then relay. Kamailio will take care of the rest. If you don't want to change the domain part of the URI, you can change the $du pseudo-variable before you relay.
Relaying can be done statelessly with the forward* family of functions and statefully with functions in the t_relay* family in the TM module.
Have fun!
/O
Regards, Neville
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Thursday, March 13, 2014 1:46 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Inter domain routing
Hello,
if the domains are in DNS, then simply relay (e.g., using t_relay()) from each instance. Kamailio does dns query and will send it to the other one.
Cheers, Daniel
On 13/03/14 07:00, Owais ul Haq wrote: Hello, I have two kamailio servers running independently with different domain names. I want to route calls between those two servers. Can it be done ? If yes then How ? Thanks.
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference - April 2-4, 2014, Berlin, Germany http://www.kamailioworld.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