<div dir="ltr">Hi Guillermo,<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 12:55 PM, Guillermo Ruiz Camauer <span dir="ltr">&lt;<a href="mailto:grcamauer@gmail.com" target="_blank">grcamauer@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Andrew,<br><br></div>Thanks for the response.  I am wondering if there are any examples using C/C++.<br></div></div></blockquote><div><br></div><div>You can have a look at the fscomm/ directory in FreeSWITCH git repo, then peak at fshost.cpp (<a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/fscomm/fshost.cpp">https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/fscomm/fshost.cpp</a>)</div><div><br></div><div>Pay particular attention to the FSHost::run() method calling the following functions:</div><div><br></div><div>switch_core_init()</div><div>switch_core_init_and_modload()</div><div>switch_core_runtime_loop()</div><div><br></div><div>That&#39;s the gist of it to get started. In my opinion most of the time is better to launch a lean freeswitch process (with only the modules you need in your app) in the background and control it using ESL</div><div><br></div><div>Cheers</div><div><br></div><div>Moy</div><div><br></div><div><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:&#39;Courier New&#39;;color:rgb(31,73,125)">Moises Silva<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:&#39;Courier New&#39;;color:rgb(31,73,125)">Manager, Software Engineering<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:&#39;Courier New&#39;;color:rgb(31,73,125)"><u></u> <u></u></span></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:&#39;Courier New&#39;;color:rgb(31,73,125)">Sangoma Technologies<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:&#39;Courier New&#39;;color:rgb(31,73,125)">100 Renfrew Drive, Suite 100, Markham, Ontario, Canada L3R 9R6<u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:&#39;Courier New&#39;;color:rgb(31,73,125)">T <a value="+19054741990">+1 905 474 1990</a> x128 | toll-free in North America <a value="+18003882475">+1 800 388-2475</a> | F <a value="+19054749223">+1 905 474 9223</a><u></u><u></u></span></p><p style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:&#39;Courier New&#39;;color:rgb(31,73,125)"><a href="http://www.sangoma.com/" target="_blank">www.sangoma.com</a></span></p></div></div></div></div>