<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 14 Mar 2014, at 04:34, Neville D'Souza <<a href="mailto:ncd@gogopay.com">ncd@gogopay.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="Section1" style="page: Section1;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Hi Daniel,<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">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<span class="Apple-converted-space"> </span><a href="mailto:user01@111.111.111.111" style="color: purple; text-decoration: underline;">user01@111.111.111.111</a>. I have also suppress reverse lookups in config file.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div></div></div></blockquote><div>I think you need to play with the base configuration. If you place a call to "<a href="mailto:user01@111.111.111.111">user01@111.111.111.111</a>" with the default configuration it will just work (TM). </div><div><br></div><div>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.</div><div><br></div><div>Relaying can be done statelessly with the forward* family of functions and statefully with functions in the t_relay* family in the TM module.</div><div><br></div><div>Have fun!</div><div><br></div><div>/O</div><div><br></div><br><blockquote type="cite"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="Section1" style="page: Section1;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Regards,<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Neville<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"> </span></div><div><div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; color: windowtext;">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif; color: windowtext;"><span class="Apple-converted-space"> </span><a href="mailto:sr-users-bounces@lists.sip-router.org" style="color: purple; text-decoration: underline;">sr-users-bounces@lists.sip-router.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:sr-users-bounces@lists.sip-router.org" style="color: purple; text-decoration: underline;">mailto:sr-users-bounces@lists.sip-router.org</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Daniel-Constantin Mierla<br><b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, March 13, 2014 1:46 PM<br><b>To:</b><span class="Apple-converted-space"> </span>Kamailio (SER) - Users Mailing List<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [SR-Users] Inter domain routing<o:p></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p> </o:p></div><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Hello,<br><br>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.<br><br>Cheers,<br>Daniel<o:p></o:p></p><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">On 13/03/14 07:00, Owais ul Haq wrote:<o:p></o:p></div></div><blockquote style="margin-top: 5pt; margin-bottom: 5pt;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">Hello,<br>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 ?<br>Thanks.<o:p></o:p></div></blockquote><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><br><br><o:p></o:p></div><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';">-- <o:p></o:p></pre><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';">Daniel-Constantin Mierla - <a href="http://www.asipto.com/" style="color: purple; text-decoration: underline;">http://www.asipto.com</a><o:p></o:p></pre><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';"><a href="http://twitter.com/#!/miconda" style="color: purple; text-decoration: underline;">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" style="color: purple; text-decoration: underline;">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';">Kamailio World Conference - April 2-4, 2014, Berlin, Germany<o:p></o:p></pre><pre style="margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: 'Courier New';"><a href="http://www.kamailioworld.com/" style="color: purple; text-decoration: underline;">http://www.kamailioworld.com</a><o:p></o:p></pre></div>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org" style="color: purple; text-decoration: underline;">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" style="color: purple; text-decoration: underline;">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br></div></blockquote></div><br></body></html>