2009/9/14 fabien comte <comte_fab...@yahoo.fr>
> I want sofsip cli works with PCMA instead of PCMU. How to modify it ?

Just in case you have not figured out it yet: you have to change the
RTP payload type on m= line to 8, too. The rtpmap should work,
provided the payload number on m=audio line and a=rtpmap are same, at
least in principle, but most implementations just look the payload
type number for well-known codecs like PCMU or PCMA.

> I modified ssc_media_gst.c [...] 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");

       "m=audio 0 RTP/AVP 8\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)

--
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
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

Reply via email to