<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
            <div> <span><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">Thank you Michael and Anthony for the help.<br></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">I am trying to add multiple SSRC support in FreeSwitch to normal bridged call to support Jitsi and FreeSwitch integration.</div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">For example, there is a call between a webrtc participant and a SIP phone, the call is a bridged call in FreeSwitch. And later on a new webrtc participant joins Jitsi video bridge, and the second SSRC shows up in the call leg A in FreeSwitch.</div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">The idea is to covert the bridged call to conference call whenever a new SSRC shows up in a bridged call, for each SSRC, a conference member is created.</div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">For the original call leg, RTP reading is switched from timer to poll reading, and I would like to reduce the poll time out value to make reading from network more frequently.</div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">Now the above weird behaviour bugged me, the poll time out value is not honored.</div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">Any input is welcome and I plan contribute back the work to the community.</div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">Thanks,</div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"><br clear="none"></div><div style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">/Kaiduan</div></span><br></div>
            
            <div id="ydp19b9a6f0yahoo_quoted_4239793914" class="ydp19b9a6f0yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Wednesday, April 18, 2018, 5:49:05 p.m. EDT, Anthony Minessale <anthony.minessale@gmail.com> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div id="ydp19b9a6f0yiv6182053585"><div><div dir="ltr">set rtp_timer_name=none to disable timer in RTP</div><div class="ydp19b9a6f0yiv6182053585gmail_extra"><br clear="none"><div class="ydp19b9a6f0yiv6182053585gmail_quote">On Wed, Apr 18, 2018 at 4:00 PM, Michael Jerris <span dir="ltr"><<a shape="rect" href="mailto:mike@jerris.com" rel="nofollow" target="_blank">mike@jerris.com</a>></span> wrote:<br clear="none"><blockquote class="ydp19b9a6f0yiv6182053585gmail_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 clear="none"></div><div><br clear="none"><div><blockquote type="cite"><div class="ydp19b9a6f0yiv6182053585yqt7188280799" id="ydp19b9a6f0yiv6182053585yqt82635"><div>On Apr 17, 2018, at 10:07 PM, kaiduan xie <<a shape="rect" href="mailto:kaiduanx@yahoo.ca" rel="nofollow" target="_blank">kaiduanx@yahoo.ca</a>> wrote:</div><br clear="none" class="ydp19b9a6f0yiv6182053585m_-4951705539174851398Apple-interchange-newline"><div><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hi,</div><div><br clear="none"></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 clear="none"></div><div><span>switch_rtp_clear_flag(rtp_ session, SWITCH_RTP_FLAG_USE_TIMER);</span><br clear="none"></div><div><span><br clear="none"></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 clear="none"></div><div><span></span><div>+                               pt = 10 * 1000; // 10ms</div><div>+                               switch_log_printf(SWITCH_ CHANNEL_SESSION_LOG(rtp_ session->session), SWITCH_LOG_DEBUG, "+poll reading:%d\n", pt);</div><div>                        }</div><div> </div><div>                        poll_status = switch_poll(rtp_session->read_ pollfd, 1, &fdr, pt);</div><div>+                      switch_log_printf(SWITCH_ CHANNEL_SESSION_LOG(rtp_ session->session), SWITCH_LOG_DEBUG, "-poll reading:%d:%d\n", pt, poll_status);</div><div><br clear="none"></div><div>The following is from the log,</div><div><br clear="none"></div><div><span></span><div>0c19d3aa-429e-11e8-bbd0- fb8396b8383d 2018-04-17 20:21:31.453604 [DEBUG] [23807] switch_rtp.c:7001 +poll reading:10000</div><div>0c19d3aa-429e-11e8-bbd0- fb8396b8383d 2018-04-17 20:21:31.473649 [DEBUG] [23807] switch_rtp.c:7005 -poll reading:10000:2</div><br clear="none"></div></div><div>Any idea? This is really weird, I expect switch_poll works as select.</div><div><br clear="none"></div><div>Many thanks for help.</div><div><br clear="none"></div><div>/Kaiduan</div></div></div></div></div></blockquote></div><br clear="none"></div></div><br clear="none">______________________________ ______________________________ _____________<br clear="none">
Professional FreeSWITCH Consulting Services:<br clear="none">
<a shape="rect" href="mailto:consulting@freeswitch.org" rel="nofollow" target="_blank">consulting@freeswitch.org</a><br clear="none">
<a shape="rect" href="http://www.freeswitchsolutions.com" rel="nofollow" target="_blank">http://www. freeswitchsolutions.com</a><br clear="none">
<br clear="none">
Official FreeSWITCH Sites<br clear="none">
<a shape="rect" href="http://www.freeswitch.org" rel="nofollow" target="_blank">http://www.freeswitch.org</a><br clear="none">
<a shape="rect" href="http://wiki.freeswitch.org" rel="nofollow" target="_blank">http://wiki.freeswitch.org</a><br clear="none">
<a shape="rect" href="http://www.cluecon.com" rel="nofollow" target="_blank">http://www.cluecon.com</a><br clear="none">
<br clear="none">
FreeSWITCH-dev mailing list<br clear="none">
<a shape="rect" href="mailto:FreeSWITCH-dev@lists.freeswitch.org" rel="nofollow" target="_blank">FreeSWITCH-dev@lists. freeswitch.org</a><br clear="none">
<a shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="nofollow" target="_blank">http://lists.freeswitch.org/ mailman/listinfo/freeswitch- dev</a><br clear="none">
UNSUBSCRIBE:<a shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="nofollow" target="_blank">http://lists. freeswitch.org/mailman/ options/freeswitch-dev</a><br clear="none">
<a shape="rect" href="http://www.freeswitch.org" rel="nofollow" target="_blank">http://www.freeswitch.org</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"><br clear="all"><div class="ydp19b9a6f0yiv6182053585yqt7188280799" id="ydp19b9a6f0yiv6182053585yqt59909"><div><br clear="none"></div>-- <br clear="none"><div class="ydp19b9a6f0yiv6182053585gmail_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 shape="rect" href="http://freeswitch.com" rel="nofollow" target="_blank">http://freeswitch.com</a></div><div><br clear="none"></div><div><br clear="none"></div><div><span style="font-size:12.8px;"><a shape="rect" href="https://youtu.be/l_hOxzCt6X4" rel="nofollow" target="_blank">https://youtu.be/l_hOxzCt6X4</a></span><br clear="none"></div><div><a shape="rect" href="https://www.youtube.com/watch?v=oAxXgyx5jUw" rel="nofollow" target="_blank">https://www.youtube.com/watch?v=oAxXgyx5jUw</a><br clear="none"></div><div><a shape="rect" href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px;" rel="nofollow" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a shape="rect" href="https://www.youtube.com/watch?v=NLaDpGQuZDA" rel="nofollow" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br clear="none"></div></div></div></div></div></div></div></div></div></div>
</div></div></div><div class="ydp19b9a6f0yqt7188280799" id="ydp19b9a6f0yqt91443">_________________________________________________________________________<br clear="none">Professional FreeSWITCH Consulting Services:<br clear="none"><a shape="rect" href="mailto:consulting@freeswitch.org" rel="nofollow" target="_blank">consulting@freeswitch.org</a><br clear="none"><a shape="rect" href="http://www.freeswitchsolutions.com" rel="nofollow" target="_blank">http://www.freeswitchsolutions.com</a><br clear="none"><br clear="none">Official FreeSWITCH Sites<br clear="none"><a shape="rect" href="http://www.freeswitch.org" rel="nofollow" target="_blank">http://www.freeswitch.org</a><br clear="none"><a shape="rect" href="http://wiki.freeswitch.org" rel="nofollow" target="_blank">http://wiki.freeswitch.org</a><br clear="none"><a shape="rect" href="http://www.cluecon.com" rel="nofollow" target="_blank">http://www.cluecon.com</a><br clear="none"><br clear="none">FreeSWITCH-dev mailing list<br clear="none"><a shape="rect" href="mailto:FreeSWITCH-dev@lists.freeswitch.org" rel="nofollow" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br clear="none"><a shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="nofollow" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br clear="none">UNSUBSCRIBE:<a shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="nofollow" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br clear="none"><a shape="rect" href="http://www.freeswitch.org" rel="nofollow" target="_blank">http://www.freeswitch.org</a><br clear="none"></div></div>
                </div>
            </div></div></body></html>