<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div style="" class=""><span style="" class="">Kees, do I understand it correctly that you're only sending audio towards the SIP endpoint, so it's not a bidirectional conversation?</span></div><div class="" 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 style="" class=""><span style="" class=""></span></div><div class="" 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 style="" class="">In this case, you can utilize audio streaming via HTTP, probably it's the easiest way to deliver audio toward
 FreeSWITCH:</span></div><div class="" 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 style="" class=""><span style="" class=""></span></div><pre style="" class="">session.streamFile("shout://some.server.com/file.mp3", "")</pre><div class="" 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;"><a style="" class="" href="https://wiki.freeswitch.org/wiki/Mod_shout">https://wiki.freeswitch.org/wiki/Mod_shout</a><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: 'Georgia','Times','Times New Roman','serif'; background-color: rgb(229, 229, 229); font-style: normal;"><span style="" class=""><br style=""
 class=""></span></div><div style="" class=""><br></div><div style="" class=""><br></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;" class=""><br style="" class=""></div>  <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <hr style="" class="" size="1">  <font style="" class="" face="Arial" size="2"> <b style="" class=""><span class="" style="font-weight:bold;">From:</span></b> Kees Jan Koster &lt;kjkoster@java-monitor.com&gt;<br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help
 &lt;freeswitch-users@lists.freeswitch.org&gt;; ssinyagin@yahoo.com <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Sent:</span></b> Tuesday, July 1, 2014 1:27 PM<br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] handling signalling externally, RTP via freeswitch<br style="" class=""> </font> </div> <div style="" class=""><br style="" class="">Dear Stanislav,<br style="" class="" clear="none"><br style="" class="" clear="none">I was rather hoping to avoid that path. My C is not all that great. :-/ But if I have to...<br style="" class="" clear="none"><br style="" class="" clear="none">Any endpoints that come close that I might want to look at?<br style="" class="" clear="none"><br style="" class="" clear="none">Kees Jan<br style="" class="" clear="none"><br style="" class="" clear="none">&gt; AFAIK the RTP parameters and streaming are
 handled from the endpoint module:<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="https://wiki.freeswitch.org/wiki/Modules" target="_blank">https://wiki.freeswitch.org/wiki/Modules</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; so, you might end up in writing your own module for what you want.<br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; From: Kees Jan Koster &lt;<a style="" class="" shape="rect" ymailto="mailto:kjkoster@kjkoster.org" href="mailto:kjkoster@kjkoster.org">kjkoster@kjkoster.org</a>&gt;<br style="" class="" clear="none">&gt; To: <a style="" class="" shape="rect" ymailto="mailto:freeswitch-users@lists.freeswitch.org" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a> <br style="" class="" clear="none">&gt; Sent: Tuesday, July 1, 2014 9:21 AM<br style=""
 class="" clear="none">&gt; Subject: [Freeswitch-users] handling signalling externally,&nbsp;&nbsp;&nbsp; RTP via freeswitch<br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; Dear All,<br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&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 style="" class="" clear="none">&gt; <br style="" class="" clear="none">&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 style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; Call flow (A-leg is
 the custom client, B-leg is sofia-SIP)<br style="" class="" clear="none">&gt;&nbsp;  [1] custom client starts call to SIP side over ESL [1] <br style="" class="" clear="none">&gt;&nbsp; &nbsp; &nbsp;  FreeSwitch handles the signalling with the SIP client<br style="" class="" clear="none">&gt;&nbsp; &nbsp; &nbsp;  SIP client answers the call<br style="" class="" clear="none">&gt;&nbsp;  [2] FreeSwitch sends event which tells the client where the RTP stream should go to<br style="" class="" clear="none">&gt;&nbsp; &nbsp; &nbsp;  custom client starts sending RTP audio<br style="" class="" clear="none">&gt;&nbsp; &nbsp; &nbsp;  FreeSwitch bridges the two legs and people talk<br style="" class="" clear="none">&gt;&nbsp; &nbsp; &nbsp;  either side hangs up and the call is done<br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; The reverse (SIP dialling the custom client) won't happen and does not have to be supported.<br style=""
 class="" clear="none">&gt; <br style="" class="" clear="none">&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 style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt;&nbsp;  bgapi originate [1] sofia/internal/<a style="" class="" shape="rect" ymailto="mailto:1002@example.com" href="mailto:1002@example.com">1002@example.com</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; --<br style="" class="" clear="none">&gt; Kees Jan<br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://java-monitor.com/" target="_blank">http://java-monitor.com/</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" ymailto="mailto:kjkoster@kjkoster.org"
 href="mailto:kjkoster@kjkoster.org">kjkoster@kjkoster.org</a><br style="" class="" clear="none">&gt; +31651838192<br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; The secret of success lies in the stability of the goal. -- Benjamin Disraeli<br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; _________________________________________________________________________<br style="" class="" clear="none">&gt; Professional FreeSWITCH Consulting Services:<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br style="" class="" clear="none">&gt; <br style="" class=""
 clear="none">&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; Official FreeSWITCH Sites<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; FreeSWITCH-users mailing list<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect"
 ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br style="" class="" clear="none">&gt; UNSUBSCRIBE:<a style="" class="" shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; _________________________________________________________________________<br style=""
 class="" clear="none">&gt; Professional FreeSWITCH Consulting Services:<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; Official FreeSWITCH Sites<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.freeswitch.org/"
 target="_blank">http://www.freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br style="" class="" clear="none">&gt; <br style="" class="" clear="none">&gt; FreeSWITCH-users mailing list<br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br style="" class="" clear="none">&gt; UNSUBSCRIBE:<a style=""
 class="" shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br style="" class="" clear="none">&gt; <a style="" class="" shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br style="" class="" clear="none"><br style="" class="" clear="none"><br style="" class="" clear="none">--<br style="" class="" clear="none">Kees Jan<br style="" class="" clear="none"><br style="" class="" clear="none"><a style="" class="" shape="rect" ymailto="mailto:kjkoster@java-monitor.com" href="mailto:kjkoster@java-monitor.com">kjkoster@java-monitor.com</a><div style="" class="" id="yqtfd77833"><br style="" class="" clear="none"><a style="" class="" shape="rect" href="http://java-monitor.com/" target="_blank">http://java-monitor.com/</a><br style="" class="" clear="none">+31651838192<br style="" class="" clear="none"><br style=""
 class="" clear="none">The secret of success lies in the stability of the goal. -- Benjamin Disraeli<br style="" class="" clear="none"></div><br style="" class=""><br style="" class=""></div> </div> </div>  </div></body></html>