sending DTMF RFC 2833

Olivier Crête olivier.crete at collabora.com
Fri Nov 20 15:31:05 PST 2015


Hello,

You need to an the element to actually send the DTMF, between the
rtppcmapay and the sink you wan to add rtpdtmfmux and then connect
rtpdtmfsrc before it. Then it should "just work".

You also need to send the stop event after the start event.

Olivier




On Fri, 2015-11-20 at 07:42 -0800, symeon.mattes wrote:
> I'm going to rephrase a little bit my question in order to simplify
> it. What
> I'm trying to do is send DTMF signals over network. So I would expect
> the
> following to work. Is there anything to do? 
> 
> pipeline_sending=gst_pipeline_new("sending-data"); 
>     dtmf = gst_element_factory_make("rtpdtmfsrc",NULL); 
>     udpsink = gst_element_factory_make("udpsink",NULL); 
>    
> g_object_set(G_OBJECT(udpsink),"port",remotePort.intValue,"host",remo
> teAddress.UTF8String,"bind-port",5004,NULL); 
>     
>     gst_bin_add_many(GST_BIN(pipeline_sending), dtmf,udpsink,NULL); 
> gst_element_link_many(dtmf,udpsink,NULL); 
> 
>     GstStructure *structure = gst_structure_new("dtmf-event", 
>                                   "type",G_TYPE_INT,1, 
>                                   "number",G_TYPE_INT,4, 
>                                   "volume",G_TYPE_INT,25, 
>                                   "start",G_TYPE_BOOLEAN,TRUE,NULL); 
>     GstEvent *event =
> gst_event_new_custom(GST_EVENT_CUSTOM_UPSTREAM,structure); 
>     gst_element_send_event(pipeline_sending,event); 
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/sending-DTMF-RFC-2833-tp4674573p4674576.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-- 
Olivier Crête
olivier.crete at collabora.com




More information about the gstreamer-devel mailing list