catch dtmf from audio port
Olivier Crête
olivier.crete at collabora.com
Fri Dec 6 11:08:49 PST 2013
On Fri, 2013-12-06 at 11:32 +0530, amar wrote:
> 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"
The caps on your udpsrc should be "application/x-rtp". The other caps
you listen to rtpbin's "request-pt-map" single with the caps for this
specific payload type.
> 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).
When you get a new pad from rtpbin, look at the payload type, and then
you can link the right depayloader.
> Any Help/pointer appreciated....
You may want to have a look at Farstream, which include a higher-level
element (fsrtpconference) which does much of a that for you with a nice
API.
--
Olivier Crête
olivier.crete at collabora.com
More information about the gstreamer-devel
mailing list