<div dir="ltr">Thanks for the quick response.<div><br></div><div>So there is no way to configure the kamailio out of the box for the scenario which I am trying to achieve. But do you think, that it is possible to program some simple kamailo module which will implement some really simple SIP client? (kamailio can create/modify SIP messages, it is able to receive and send them so I think that it is possible I am just not sure)</div><div><br></div><div>What I am trying to achieve is to encapsulate SIP communication between "SIP client A1" and "SIP client B1" eg. communication between these two endpoints will go through data link between "kamailio server A" and "kamailio server B".</div><div><br></div><div>I know that I will need to keep the database of registered users on "kamailio server A" as well as on "kamailio server B" and these "databases" will be synchronized by "kamailio main server" since both servers have this endpoint in common. I am thinking about using Subscribe/Notify for the purposes of updating servers' internal databases. That's why I want to create SIP session between "kamailio server A" and "kamailio server B" - probably for each call between two endpoints (eg. A1:B1, A2:B1) there will be SIP session between these two servers.</div><div><br></div><div>I've programmed simple kamailio module for receiving/sending SIP messages eg. I can parse the SIP messages before the kamailio will send them to UA. I am also able to send RTP packet from one instance to UA and I think that there won't be problem to send it to another instance of kamailio server.</div><div><br></div><div><br></div><div>What do you think?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 14, 2016 at 1:57 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255);line-height:initial">                                                                                      <div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-family:Calibri,'Slate Pro',sans-serif">‎No, because Kamailio is a SIP proxy, not a SIP user agent (UA). Only UAs can originate and receive calls -- that is</span><font face="Calibri, Slate Pro, sans-serif">, to serve as the endpoints of a call. Kamailio plays an entirely different role, which is to relay/route messages _between_ endpoints.</font></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><font face="Calibri, Slate Pro, sans-serif"><br></font></div>                                                                                                                                     <div></div>                                                              <div style="font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">--<br>Alex Balashov | Principal | Evariste Systems LLC<br>303 Perimeter Center North, Suite 300<br>Atlanta, GA 30346<br>United States<br><br>Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a><br><br>Sent from my BlackBerry.</div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px"> <tbody><tr><td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in;font-family:Tahoma,'BB Alpha Sans','Slate Pro';font-size:10pt">  <div><b>From: </b>Cockhootec Yahrabee</div><div><b>Sent: </b>Saturday, February 13, 2016 19:16</div><div><b>To: </b>Kamailio (SER) - Users Mailing List</div><div><b>Reply To: </b>Kamailio (SER) - Users Mailing List</div><div><b>Subject: </b>[SR-Users]  Make SIP session between two kamailio servers</div></div></td></tr></tbody></table><div><div class="h5"><div style="border-style:solid none none;border-top-color:rgb(186,188,209);border-top-width:1pt;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"></div><br><div><div dir="ltr">Hi everyone,<div><br></div><div>I am curious if there is a way to make SIP session between two kamailio server instances eg. if there is way to use kamailio as an SIP client and SIP server at the same time.</div><div><br></div><div>I am thinking about the following configuration:</div><div><br></div><div><br></div><div><font face="monospace, monospace">kamailio main server ----- kamailio server B </font><span style="font-family:monospace,monospace">-----</span><font face="monospace, monospace"> SIP client B1</font></div><div><font face="monospace, monospace">       |<br></font></div><div><font face="monospace, monospace">       |</font></div><div><font face="monospace, monospace">       |</font></div><div><font face="monospace, monospace">kamailio server A </font><span style="font-family:monospace,monospace">-----</span><font face="monospace, monospace"> SIP client A2</font></div><div><font face="monospace, monospace">       |</font></div><div><font face="monospace, monospace">       |</font></div><div><font face="monospace, monospace">       |</font></div><div><font face="monospace, monospace">SIP client A1</font></div><div><br></div><div><br></div><div>I want to be able to make SIP session between:</div><div>SIP client A1 : SIP client A2</div><div>kamailio server A : kamailio server B<br>SIP client A1 : SIP client B1 (this would be great)</div><div><br></div><div>If there is currently no way to do this do you think that it would be possible to create the module which will support this kind of functionality?<br><br>Thanks in advance for the replies</div><div><br></div></div>
<br></div></div></div></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>