<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span style="font-size: 12pt;">Dear guys,</span><br></div><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 class="y_msg_container"><div id="yiv7761831142"><div class="yiv7761831142yqt2465971578" id="yiv7761831142yqtfd16735"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); 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 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div class="yiv7761831142y_msg_container"><div id="yiv7761831142"><div class="yiv7761831142yqt4167192460" id="yiv7761831142yqtfd70821"><div><div
 style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); 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 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div class="yiv7761831142y_msg_container"><div id="yiv7761831142"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div><font face="times new roman, new york, times, serif"><br clear="none"></font></div><div><font face="times new roman, new york, times, serif">I'm new to the list so first of all let me thank the FreeSWITCH developers for their great work.</font></div><div><font face="times new roman, new york, times, serif"><br clear="none"></font></div><div><font face="times new roman, new york, times, serif">But now I must come to the
 point.</font></div><div><font face="times new roman, new york, times, serif">I have an A104 Sangoma board and I'm developing an application based on FreeTDM library.</font></div><div><font face="times new roman, new york, times, serif">I've started by using and modifying the examples "freeswitch/libs/freetdm/src/test*.c" and now I'm able to retreive and
 send the audio data from/to the board. I'm using the "ftdm_channel_wait" to know when I can read/write from the freetdm's queues and all seems to work well. But I have a big issue when I try to use "ftdm_channel_wait" with the flag "FTDM_EVENTS" (flags=(ftdm_wait_flags_t)FTDM_EVENTS). Basically, what happen is that the "ftdm_channel_wait(ftdmchan,&amp;flags,-1)" never exits even if the channel receives DTMF or is been hung-up. I've also tried to use "ftdm_channel_command(ftdmchan,FTDM_COMMAND_ENABLE_DTMF_DETECT,NULL)" before the "ftdm_channel_wait" but nothing changed.</font></div><div><font face="times new roman, new york, times, serif">Now, my questions are the following:</font></div><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><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><font face="times new roman, new york, times, serif"><br clear="none"></font></div><div><font face="times new roman, new york, times, serif">I hope to be in the right place for these questions. Otherwise, please let me know where I can find someone that can help me.</font></div><div><font face="times new roman, new york, times, serif"><br clear="none"></font></div><div><font face="times new roman, new york, times, serif">I haven't put a lot in this mail because I wasn't really sure if this is the right mail-list but, of course, if you need more information and details to help me don't esitate to ask.</font></div><div><font face="times new roman, new york, times, serif"><br clear="none"></font></div><div><font face="times new roman, new york, times, 
 serif">Excuse me for my bad
 english.</font></div><div><font face="times new roman, new york, times, serif"><br clear="none"></font></div><div><font face="times new roman, new york, times, serif">Have a nice day!</font></div><div><font face="times new roman, new york, times, serif"><br clear="none"></font></div><div><font face="times new roman, new york, times, serif">Andrea</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br clear="none"></div></div></div><br clear="none"><br clear="none"></div> </div> </div>  </div></div></div></div><br clear="none"><br clear="none"></div> </div> </div>  </div></div></div></div><br><br></div> </div> </div>  </div></body></html>