<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>hmm, then I don't see much other possibilities. Probably it's easier to add the SIP agent functionality to your non-SIP part?</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>If it's a Java application, there are multiple implementations of SIP for java.<br></span></div><div><br></div>  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div
 style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Kees Jan Koster &lt;kjkoster@kjkoster.org&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Stanislav Sinyagin &lt;ssinyagin@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 1, 2014 2:34 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] handling signalling externally, RTP via freeswitch<br> </font> </div> <div class="y_msg_container"><br>Dear Stanislav,<br clear="none"><br clear="none">No, the audio will be bi-directional. Other than the custom signalling it will be a regular voice call.<br clear="none"><br clear="none">Kees
 Jan<br clear="none"><br clear="none"><br clear="none">On 1 Jul 2014, at 14:31, Stanislav Sinyagin &lt;<a shape="rect" ymailto="mailto:ssinyagin@yahoo.com" href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>&gt; wrote:<br clear="none"><br clear="none">&gt; Kees, do I understand it correctly that you're only sending audio towards the SIP endpoint, so it's not a bidirectional conversation?<br clear="none">&gt; <br clear="none">&gt; In this case, you can utilize audio streaming via HTTP, probably it's the easiest way to deliver audio toward FreeSWITCH:<br clear="none">&gt; <br clear="none">&gt; session.streamFile("shout://some.server.com/file.mp3", "")<br clear="none">&gt; <a shape="rect" href="https://wiki.freeswitch.org/wiki/Mod_shout" target="_blank">https://wiki.freeswitch.org/wiki/Mod_shout</a><br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; From: Kees Jan Koster &lt;<a shape="rect"
 ymailto="mailto:kjkoster@java-monitor.com" href="mailto:kjkoster@java-monitor.com">kjkoster@java-monitor.com</a>&gt;<br clear="none">&gt; To: FreeSWITCH Users Help &lt;<a shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;; <a shape="rect" ymailto="mailto:ssinyagin@yahoo.com" href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a> <br clear="none">&gt; Sent: Tuesday, July 1, 2014 1:27 PM<br clear="none">&gt; Subject: Re: [Freeswitch-users] handling signalling externally, RTP via freeswitch<br clear="none">&gt; <br clear="none">&gt; Dear Stanislav,<br clear="none">&gt; <br clear="none">&gt; I was rather hoping to avoid that path. My C is not all that great. :-/ But if I have to...<br clear="none">&gt; <br clear="none">&gt; Any endpoints that come close that I might want to look at?<br clear="none">&gt; <br clear="none">&gt; Kees Jan<br
 clear="none">&gt; <br clear="none">&gt; &gt; AFAIK the RTP parameters and streaming are handled from the endpoint module:<br clear="none">&gt; &gt; <a shape="rect" href="https://wiki.freeswitch.org/wiki/Modules" target="_blank">https://wiki.freeswitch.org/wiki/Modules</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; so, you might end up in writing your own module for what you want.<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; <br clear="none">&gt; &gt; From: Kees Jan Koster &lt;<a shape="rect" ymailto="mailto:kjkoster@kjkoster.org" href="mailto:kjkoster@kjkoster.org">kjkoster@kjkoster.org</a>&gt;<br clear="none">&gt; &gt; To: <a shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a> <br clear="none">&gt; &gt; Sent: Tuesday, July 1, 2014 9:21 AM<br clear="none">&gt; &gt; Subject: [Freeswitch-users] handling signalling
 externally,&nbsp; &nbsp; RTP via freeswitch<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; Dear All,<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; I need some reading advice/pointers on the following: I want to use FreeSwitch as a bridge from a custom client to SIP. The SIP part is easy and works. The non-SIP part is the challenge.<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; I have my audio sending client hooked up via mod_event_socket. I really like the way events and ESL work in FreeSwitch, by the way. Good control and easy to code. But I digress. So I have my client hooked up over ESL for signalling and need to know where to send the RTP stream to from the non-SIP client side.<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; Call flow (A-leg is the custom client, B-leg is sofia-SIP)<br clear="none">&gt; &gt;&nbsp; [1] custom client starts call to SIP side over ESL [1] <br clear="none">&gt; &gt;&nbsp; &nbsp; &nbsp; FreeSwitch
 handles the signalling with the SIP client<br clear="none">&gt; &gt;&nbsp; &nbsp; &nbsp; SIP client answers the call<br clear="none">&gt; &gt;&nbsp; [2] FreeSwitch sends event which tells the client where the RTP stream should go to<br clear="none">&gt; &gt;&nbsp; &nbsp; &nbsp; custom client starts sending RTP audio<br clear="none">&gt; &gt;&nbsp; &nbsp; &nbsp; FreeSwitch bridges the two legs and people talk<br clear="none">&gt; &gt;&nbsp; &nbsp; &nbsp; either side hangs up and the call is done<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; The reverse (SIP dialling the custom client) won't happen and does not have to be supported.<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; My concrete question is how [1] should happen. The custom client should issue an "bgapi originate". The arguments for the SIP side are clear, but what to use for the custom client? What should I fill in for [1], below?<br clear="none">&gt; &gt; <br clear="none">&gt;
 &gt;&nbsp; bgapi originate [1] sofia/internal/<a shape="rect" ymailto="mailto:1002@example.com" href="mailto:1002@example.com">1002@example.com</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; --<br clear="none">&gt; &gt; Kees Jan<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; <a shape="rect" href="http://java-monitor.com/" target="_blank">http://java-monitor.com/</a><br clear="none">&gt; &gt; <a shape="rect" ymailto="mailto:kjkoster@kjkoster.org" href="mailto:kjkoster@kjkoster.org">kjkoster@kjkoster.org</a><br clear="none">&gt; &gt; +31651838192<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; The secret of success lies in the stability of the goal. -- Benjamin Disraeli<br clear="none">&gt; &gt; <br clear="none">&gt; &gt; <br clear="none">&gt; &gt; _________________________________________________________________________<br clear="none">&gt; &gt; Professional FreeSWITCH Consulting Services:<br clear="none">&gt; &gt; <a shape="rect"
 ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br clear="none">&gt; &gt; <a shape="rect" href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; Official FreeSWITCH Sites<br clear="none">&gt; &gt; <a shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br clear="none">&gt; &gt; <br
 clear="none">&gt; &gt; FreeSWITCH-users mailing list<br clear="none">&gt; &gt; <a shape="rect" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br clear="none">&gt; &gt; UNSUBSCRIBE:<a shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br clear="none">&gt; &gt; <a shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; <br clear="none">&gt; &gt; _________________________________________________________________________<br clear="none">&gt; &gt; Professional FreeSWITCH
 Consulting Services:<br clear="none">&gt; &gt; <a shape="rect" ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br clear="none">&gt; &gt; <a shape="rect" href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; Official FreeSWITCH Sites<br clear="none">&gt; &gt; <a shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://www.cluecon.com/"
 target="_blank">http://www.cluecon.com</a><br clear="none">&gt; &gt; <br clear="none">&gt; &gt; FreeSWITCH-users mailing list<br clear="none">&gt; &gt; <a shape="rect" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br clear="none">&gt; &gt; <a shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br clear="none">&gt; &gt; UNSUBSCRIBE:<a shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br clear="none">&gt; &gt; <a shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; --<br clear="none">&gt; Kees Jan<br clear="none">&gt; <br
 clear="none">&gt; <a shape="rect" ymailto="mailto:kjkoster@java-monitor.com" href="mailto:kjkoster@java-monitor.com">kjkoster@java-monitor.com</a><br clear="none">&gt; <br clear="none">&gt; <a shape="rect" href="http://java-monitor.com/" target="_blank">http://java-monitor.com/</a><br clear="none">&gt; +31651838192<br clear="none">&gt; <br clear="none">&gt; The secret of success lies in the stability of the goal. -- Benjamin Disraeli<div class="qtdSeparateBR"><br><br></div><div class="yqt9212553544" id="yqtfd49804"><br clear="none">&gt; <br clear="none">&gt; <br clear="none"><br clear="none"><br clear="none">--<br clear="none">Kees Jan<br clear="none"><br clear="none"><a shape="rect" href="http://java-monitor.com/" target="_blank">http://java-monitor.com/</a><br clear="none"><a shape="rect" ymailto="mailto:kjkoster@kjkoster.org" href="mailto:kjkoster@kjkoster.org">kjkoster@kjkoster.org</a><br clear="none">+31651838192</div><br clear="none"><br
 clear="none">Change is good. Granted, it is good in retrospect, but change is good.<div class="yqt9212553544" id="yqtfd20550"><br clear="none"></div><br><br></div> </div> </div>  </div></body></html>