<div dir="ltr"><div>Hello,</div><div><br></div><div>I think your question would be better suited to the freeswitch-dev mailing list given that is about C development with FreeSWITCH APIs, but I'll answer here anyways.</div>
<div><br></div><div class="gmail_extra"><div class="gmail_quote"><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><div style="font-size:12pt;font-family:'times new roman','new york',times,serif"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<div><div><div><div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<div><div><div><div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">
<div><div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif"><div><font face="times new roman, new york, times, serif">1. What kind of events can cause the exit of "ftdm_channel_wait" function? I've seen the "ftdm_event_type_t" that defines "FTDM_EVENT_DTMF" and "FTDM_EVENT_OOB". Is it the answer to my
question?</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Events such as CAS/RBS events and DTMF events if you have hardware DTMF enabled (and your hardware supports it). Given that you are using Sangoma hardware, it should work if you have a hardware DTMF enabled in the wanpipe configuration files (ie /etc/wanpipe/wanpipe1.conf)</div>
<div> </div><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><div style="font-size:12pt;font-family:'times new roman','new york',times,serif">
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div><div><div><div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif">
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div><div><div><div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif">
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div><div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif">
<div><font face="times new roman, new york, times, serif">2. Is there something that I need to do before call "ftdm_channel_wait" to enable the "events generation"?</font></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Did you call ftdm_span_start() to start the signaling thread on the span?</div><div><br>
</div><div>Cheers,</div><div><br></div><div>Moy<br class=""><br clear="all"><div><table border="0" cellspacing="0" cellpadding="0" width="648" style="width:486.3pt;border-collapse:collapse"><tbody><tr style="height:60.55pt">
<td style="border-style:dotted none none;border-top-color:rgb(128,176,214);border-top-width:1pt;padding:1.45pt 5.75pt;height:60.55pt"><p style="margin:0px;line-height:15px"><b><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)">Moises Silva<br>
</span></b><b><i><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Manager, Software Engineering</span></i></b><b><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)"></span></b></p>
<p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)"><a href="mailto:msilva@sangoma.com" target="_blank">msilva@sangoma.com</a></span></p>
<p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">Sangoma Technologies</span></p><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada</span><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(255,192,0)"></span></p>
</td><td width="187" style="width:140.45pt;border-style:dotted none none;border-top-color:rgb(128,176,214);border-top-width:1pt;padding:1.45pt 5.75pt;height:60.55pt"><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)"><br>
t. +1 800 388 2475 (N. America)</span></p><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">t. +1 905 474 1990 x128</span></p>
<p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">f. +1 905 474 9223</span></p><p style="margin:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(31,73,125)"> </span></p>
</td><td width="149" rowspan="2" style="width:111.55pt;border-style:dotted none;border-top-color:rgb(128,176,214);border-top-width:1pt;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;padding:1.45pt 5.75pt;height:60.55pt">
<p style="margin:0px;line-height:15px"><a href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures" target="_blank"><b><span style="color:rgb(31,73,125);text-decoration:none"><img border="0" width="96" height="15"></span></b></a><span style="color:rgb(31,73,125)"></span></p>
</td></tr><tr><td width="500" colspan="2" style="width:374.75pt;border-style:none none dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;padding:1.45pt 5.75pt"><p style="margin:0px;line-height:15px"><a href="http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Products</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Solutions</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Events</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Contact</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Wiki</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Facebook</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Twitter</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">`| | </span><a href="http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">YouTube</span></a><span style="font-size:8pt;line-height:12px;color:rgb(31,73,125)"></span></p>
</td></tr></tbody></table><p style="margin:0px"><br></p></div><br></div></div></div></div>