<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="margin: 0px; font-size: 14px;">Hi Sebastian,</div><div style="margin: 0px; font-size: 14px;">I’ve found the issue, it is due to VoIP protocol, how it opens the rtp streams are opened by the endpoint.</div><div style="margin: 0px; font-size: 14px; min-height: 17px;"><br></div><div style="margin: 0px; font-size: 14px;">My soft phone (linphone again) want a symmetric RTP and changes the destination port in case “udpsink” and “udpsrc” differs.</div><div style="margin: 0px; font-size: 14px;">This is the scenario:</div><div style="margin: 0px; font-size: 14px; min-height: 17px;"><br></div><div style="margin: 0px; font-size: 14px;">PIPELINE#1</div><div style="margin: 0px; font-size: 14px;">audiotestsrc ! audioconvert ! alawenc ! rtppcmapay ! udpsink host=192.168.1.6 port=7078</div><div style="margin: 0px; font-size: 14px; min-height: 17px;"><br></div><div style="margin: 0px; font-size: 14px;">PIPELINE#2</div><div style="margin: 0px; font-size: 14px;">rtpbin udpsrc caps=application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA port=5008 ! rtppcmadepay ! alawdec ! audioconvert ! audioresample ! osxaudiosink</div><div style="margin: 0px; font-size: 14px; min-height: 17px;"><br></div><div style="margin: 0px; font-size: 14px; min-height: 17px;"><br></div><div style="margin: 0px; font-size: 14px;">GSTREAMER ————————————————> LINPHONE</div><div style="margin: 0px; font-size: 14px;">ipadders: 192.168.1.3 ipaddress: 192.168.1.6</div><div style="margin: 0px; font-size: 14px;">port(random): 57401 PORT: 7078</div><div style="margin: 0px; font-size: 14px; min-height: 17px;"><br></div><div style="margin: 0px; font-size: 14px;">GSTREAMER <--------------------------------------------------- LINPHONE</div><div style="margin: 0px; font-size: 14px;">ipadders: 192.168.1.3 ipaddress: 192.168.1.6</div><div style="margin: 0px; font-size: 14px;">port(random): 5008 PORT: 7078</div><div style="margin: 0px; font-size: 14px; min-height: 17px;"><br></div><div style="margin: 0px; font-size: 14px;">I was expecting this behaviour, but linphone sends the rtp packets to 57401 instead of 5008 (symmetric RTP)</div><div style="margin: 0px; min-height: 14px;"><br></div><p style="margin: 0px; font-size: 14px;"> </p><div style="margin: 0px; font-size: 14px; min-height: 17px;">So I was wondering if it is possible solving the issue creating the pipeline#1 using source port defined by the user, in my case: 5008</div><div style="margin: 0px; font-size: 14px;"><br></div><div style="margin: 0px; font-size: 14px;">Thanks</div><div style="margin: 0px; font-size: 14px;">Elio</div><div><div>On 31 Oct 2013, at 16:41, Sebastian Dröge <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Do, 2013-10-31 at 14:51 +0100, Elio Francesconi wrote:<br><blockquote type="cite">This is the pseudocode, where the app invoke RtpSink::loop and RtpSource::loop in two different threads(description of my pipeline is as described in the previous mail), it is based on these two example<br><a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp/server-alsasrc-PCMA.c">http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp/server-alsasrc-PCMA.c</a><br>http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp/client-PCMA.c <br>I was expecting to create multiple pipelines each one with their structures and with our interaction, I think I’m in wrong :-)<br></blockquote><br>Nothing looking wrong in that code, but you could as well run both<br>pipelines from the same thread with a single mainloop.<br><br>How exactly do they fail? Does the receiver receive any packets at all?<br>Check that with a simpler pipeline that only has udpsrc and a fakesink.<br><br>-- <br>Sebastian Dröge <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>><br>Centricular Ltd - <a href="http://www.centricular.com">http://www.centricular.com</a><br>Expertise, Straight from the Source<br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br></blockquote></div><br></body></html>