sending DTMF RFC 2833

symeon.mattes symeon.mattes at gmail.com
Fri Nov 20 02:37:23 PST 2015


Hi,

I have created a existing  pipeline that sends rtp audio packages:

    GstElement *audioconvert, *audioresample, *alawenc, *rtppcmapay,
*udpsink;
    
    
    pipeline_sending=gst_pipeline_new("sending-data");
    micinput = gst_element_factory_make("osxaudiosrc","snd-microphone");
    queue[0] = gst_element_factory_make ("queue", NULL);
    blockpad = gst_element_get_static_pad (micinput, "src");
    audioconvert = gst_element_factory_make("audioconvert",NULL);
    audioresample = gst_element_factory_make("audioresample",NULL);
    alawenc = gst_element_factory_make("alawenc","snd-encoder");
    rtppcmapay = gst_element_factory_make("rtppcmapay",NULL);
    queue[1] = gst_element_factory_make ("queue", NULL);
    udpsink = gst_element_factory_make("udpsink",NULL);
   
g_object_set(G_OBJECT(udpsink),"port",remotePort.intValue,"host",remoteAddress.UTF8String,"bind-port",5004,NULL);
    
   
gst_bin_add_many(GST_BIN(pipeline_sending),micinput,queue[0],audioconvert,audioresample,alawenc,rtppcmapay,queue[1],udpsink,NULL);
gst_element_link_many(micinput,queue[0],audioconvert,audioresample,alawenc,rtppcmapay,queue[1],udpsink,NULL);


This works just find. I would like to send some DTMF RFC 2833 packages
through my pipeline_sending channel I have. In 

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-dtmfsrc.html

You can send it through an event. What I did was the following 
    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);

But it didn't send anything. Is there any specific way to send events to the
channel?

Thanks





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/sending-DTMF-RFC-2833-tp4674573.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list