catch dtmf from audio port

amar asontakke at phonologies.com
Thu Dec 5 01:39:04 PST 2013


Hi,

I am not using gstreamer to send dtmf. Dtmf come from SIP phone.

For receiving i am catching audio from one port and video from other port
using udpsrc. On same audio port dtmf also come. I am using rtpbin to
connect input audio or dtmf for specific depayloader using pad_added call
back. It works well for audio but when dtmf comes, it gives data flow
error. Please see the following flow which give idea of my pipeline for
receiving :


                           pad_added    payload==101--->rtpdtmfdepay--
->fakesink
 udpsrc0 -----> rtpbin ------------->
 audio port                               payload
==0---->rtppcmudepay-->mulawdec---I

|

v
udpsrc1------------>
rtph263pdepay---------->avdec_h263------------------------matroskamux
video
port
|

v

filesink

Note Caps using for udpsrc0 (for audio source) :

*"application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998,payload=(int)96")
*
I am watching the above pipeline for incoming DTMF event
(GST_MESSAGE_ELEMENT) . I want to catch the DTMF value comming from the
sender(SIP PHONE).


On Tue, Dec 3, 2013 at 3:24 PM, Sebastian Dröge
<sebastian at centricular.com>wrote:

> On Di, 2013-12-03 at 11:27 +0530, amar wrote:
> > Hi,
> >
> > I am writing a pipeline which is receiving rtp PCMU on one port and rtp
> > H263p on other port and mux it into a .mpg file. Up to this part its
> > working fine.
> > I want to catch rtp DTMF which come on the same port which used to
> receive
> > PCMU. I wrote bus watch function for catching GST_MESSAGE_ELEMENT
> singnal,
> > But I am unable to get it.
> > How can I catch the DTMF value come on audio port ?
>
> How are you building your pipeline for the receiver, and if GStreamer is
> used on the sender... how does your pipeline look there?
>
> You should get a GST_MESSAGE_ELEMENT on the bus of the receiver
> pipeline, with a "dtmf-event" message. This is emitted by the DTMF
> depayloader. Is that payloader in the pipeline?
>
> --
> Sebastian Dröge <sebastian at centricular.com>
> Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> 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/20131205/a3d75dbc/attachment.html>


More information about the gstreamer-devel mailing list