<div dir="ltr">set rtp_timer_name=none to disable timer in RTP</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 18, 2018 at 4:00 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">what exactly are you trying to accomplish by not using the timers?<div><br></div><div><br><div><blockquote type="cite"><div>On Apr 17, 2018, at 10:07 PM, kaiduan xie <<a href="mailto:kaiduanx@yahoo.ca" target="_blank">kaiduanx@yahoo.ca</a>> wrote:</div><br class="m_-4951705539174851398Apple-interchange-newline"><div><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div>Hi,</div><div><br></div><div>For my application, I made some changes in switch_rtp to use poll to read from network instead of synchronising on timer,</div><div><br></div><div><span>switch_rtp_clear_flag(rtp_<wbr>session, SWITCH_RTP_FLAG_USE_TIMER);</span><br></div><div><span><br></span></div><div>I observed a weird behaviour with regarding to switch_poll, it blocks with 20ms always even the timer value is 10 ms when there are no packet received on network.</div><div><br></div><div><span><div>+ pt = 10 * 1000; // 10ms</div><div>+ switch_log_printf(SWITCH_<wbr>CHANNEL_SESSION_LOG(rtp_<wbr>session->session), SWITCH_LOG_DEBUG, "+poll reading:%d\n", pt);</div><div> }</div><div> </div><div> poll_status = switch_poll(rtp_session->read_<wbr>pollfd, 1, &fdr, pt);</div><div>+ switch_log_printf(SWITCH_<wbr>CHANNEL_SESSION_LOG(rtp_<wbr>session->session), SWITCH_LOG_DEBUG, "-poll reading:%d:%d\n", pt, poll_status);</div><div><br></div><div>The following is from the log,</div><div><br></div><div><span><div>0c19d3aa-429e-11e8-bbd0-<wbr>fb8396b8383d 2018-04-17 20:21:31.453604 [DEBUG] [23807] switch_rtp.c:7001 +poll reading:10000</div><div>0c19d3aa-429e-11e8-bbd0-<wbr>fb8396b8383d 2018-04-17 20:21:31.473649 [DEBUG] [23807] switch_rtp.c:7005 -poll reading:10000:2</div></span><br></div></span></div><div>Any idea? This is really weird, I expect switch_poll works as select.</div><div><br></div><div>Many thanks for help.</div><div><br></div><div>/Kaiduan</div></div></div></div></blockquote></div><br></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" rel="noreferrer" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Anthony Minessale II</div><div dir="ltr">Founder, FreeSWITCH.</div><div dir="ltr"><div><a href="http://freeswitch.com" target="_blank">http://freeswitch.com</a></div><div><br></div><div><br></div><div><span style="font-size:12.8px"><a href="https://youtu.be/l_hOxzCt6X4" target="_blank">https://youtu.be/l_hOxzCt6X4</a></span><br></div><div><a href="https://www.youtube.com/watch?v=oAxXgyx5jUw" target="_blank">https://www.youtube.com/watch?v=oAxXgyx5jUw</a><br></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div></div></div>
</div>