use same port for sending and reseiveing
Wim Taymans
wim.taymans at gmail.com
Wed Nov 27 03:05:54 PST 2013
The easiest way to reuse ports is to let udpsrc allocate a port when it
goes to PAUSED, then you use the "used-socket" property on udpsrc to get
the socket and set this as the "socket" property on udpsink.
Wim
On 27 November 2013 11:54, amar <asontakke at phonologies.com> wrote:
> Hi,
>
> I am developing a media stack for a SIP communication. In that, I want to
> receive/catch DTMF on the port from which I am sending the audio (PCMU)
> media. I am trying to build this functionality using following pipelines :
>
> In first pipeline: I am binding port to socket with SO_REUSEADDR from
> which I want to stream audio and assign socket to udpsink.
>
> In second pipeline: I am using udpsrc for catching the dtmf signal. For
> receiving dtmf I am using same port which is bind in first pipeline to
> stream audio from it.
>
> In above operation as I change the state of second pipeline
> GST_STATE_PLAYING. Ii throws error GST_STATE_CHANGE_FAILURE.
>
> Please, Tell me What is going wrong in above implementation? or Is there
> any other way to use same port for sending audio and receiving dtmf on same
> port ?
>
> Any help/pointer appreciable...
>
> Thanks
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131127/7a5d8711/attachment.html>
More information about the gstreamer-devel
mailing list