<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello everybody and many thanks to Moy for its useful reply!</div><div><br></div><div>>>1. What kind of events can cause the exit of "ftdm_channel_wait" function?</div><div>>>I've seen the "ftdm_event_type_t" that defines "FTDM_EVENT_DTMF" and "FTDM_EVENT_OOB". Is it the answer to my question?</div><div><br></div><div>>Events such as CAS/RBS events and DTMF events if you have hardware DTMF enabled (and your hardware supports it).</div><div>>Given that you are using Sangoma hardware, it should work if you have a hardware DTMF enabled in the wanpipe</div><div>>configuration files (ie /etc/wanpipe/wanpipe1.conf)</div><div><br></div><div>I'm using an E1 PRI so, if I've correctly understood, CAS/RBS events don't exist.</div><div>Regarding DTMF I've found some TDMV_HW_DTMF=NO in my wanpipe*.conf, now I will
correct them to TDMV_HW_DTMF=YES and try again.</div><div> </div><div>>>2. Is there something that I need to do before call "ftdm_channel_wait" to enable the "events generation"?</div><div>>Did you call ftdm_span_start() to start the signaling thread on the span?</div><div><br></div><div>Yes, of course! :)</div><div><br></div><div>Thanks again.</div><div><br></div><div>Best regards!</div><div><br></div><div>Andrea</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> </div> </div></body></html>