sofia-sip-devel@lists.sourceforge.net
Hello,
I want sofsip cli works with PCMA instead of PCMU. How to modify it ?
I modified ssc_media_gst.c
self->sm_pt = 0; /* PT=0 => PCMU */
/* step: initialize the PT<->caps hash table */
pt_caps = gst_caps_new_simple ("application/x-rtp",
"clock-rate", G_TYPE_INT, 8000,
"encoding-name", G_TYPE_STRING, PCMU
NULL);
/* step: describe capabilities in SDP terms */
/* support only G711/PCMA */
caps_sdp_str = su_strcat(home, caps_sdp_str,
"v=0\r\n"
"m=audio 0 RTP/AVP 0\r\n"
"a=rtpmap:0 PCMU/8000\r\n");
*dest = strdup(caps_sdp_str);
su_free(home, caps_sdp_str);
->
self->sm_pt = 0; /* PT=0 => PCMA */
/* step: initialize the PT<->caps hash table */
pt_caps = gst_caps_new_simple ("application/x-rtp",
"clock-rate", G_TYPE_INT, 8000,
"encoding-name", G_TYPE_STRING, "PCMA",
NULL);
/* step: describe capabilities in SDP terms */
/* support only G711/PCMA */
caps_sdp_str = su_strcat(home, caps_sdp_str,
"v=0\r\n"
"m=audio 0 RTP/AVP 0\r\n"
"a=rtpmap:0 PCMA/8000\r\n");
*dest = strdup(caps_sdp_str);
su_free(home, caps_sdp_str);
and
gsdp_codec_factories_t *factories = gsdp_codec_factories_create("PCMU");
->
gsdp_codec_factories_t *factories = gsdp_codec_factories_create("PCMA");
It does not work (FAILED with 501 Not Implemented Yet)
I tryed
->
self->sm_pt = 8; /* PT=0 => PCMA */
/* step: initialize the PT<->caps hash table */
pt_caps = gst_caps_new_simple ("application/x-rtp",
"clock-rate", G_TYPE_INT, 8000,
"encoding-name", G_TYPE_STRING, "PCMA",
NULL);
/* step: describe capabilities in SDP terms */
/* support only G711/PCMA */
caps_sdp_str = su_strcat(home, caps_sdp_str,
"v=0\r\n"
"m=audio 0 RTP/AVP 0\r\n"
"a=rtpmap:8 PCMA/8000\r\n");
*dest = strdup(caps_sdp_str);
su_free(home, caps_sdp_str);
It does not work (FAILED with 501 Not Implemented Yet)
Does anyone have an idea ?
Thank you,
Fabien
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel