catch dtmf from audio port

amar asontakke at phonologies.com
Thu Dec 5 22:02:26 PST 2013


Hi Nicolas,

Thanks for answer my question. If I am not wrong, dtmfdetect is used for
detect DTMF in the incoming sound. But in my case DTMF come from SIP phone
and it comes as RTP event. on same port which is used for receiving audio.
my pipeline is looks like below :


                           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)audio,payload=(int)96,clock-rate=(int)8000,encoding-name=(string)X-GST,caps=(string)FAKE"
*
I am watching the above pipeline for incoming DTMF event
(GST_MESSAGE_ELEMENT) . I want to catch the DTMF value coming from the
sender(SIP PHONE).

It works well when rtp PCMU audio come on udpsrc0. repbin added pad and
link to rtppcmudepay. But when rtp DTMF event comes on udpsrc0, rtpbin
added new pad but unable to link rtpdtmfdepay. It gives "Internal data flow
error".

How can I link to rtpdtmfdepay ? or Is there any other method to catch dtmf
value from incoming rtp DTMF event on audio port assigned for PCMU data?

Any Help/pointer appreciated....


Thanks,
Amar.


On Thu, Dec 5, 2013 at 9:07 PM, Nicolas Dufresne <
nicolas.dufresne at collabora.com> wrote:

> There is an element called dtmfdetec in -bad. It depends on spansp. It's
> not built on most distro, not sure why. It might be what you are looking
> for ?
>
> Nicolas
>
> _______________________________________________
> 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/20131206/2d278c3f/attachment.html>


More information about the gstreamer-devel mailing list