From: Anthony Minessale Date: Thu, 8 Mar 2007 02:52:31 +0000 (+0000) Subject: update X-Git-Tag: v1.0-beta1~934 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=752a51915e796c6c1ff089df7bd1b04cffdf108e;p=thirdparty%2Ffreeswitch.git update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4479 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index c323a386f8..e2fc5111ce 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -789,7 +789,9 @@ static void set_local_sdp(private_object_t *tech_pvt, char *ip, uint32_t port, c } if (tech_pvt->cng_pt) { snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "a=rtpmap:%d CN/%d\n", tech_pvt->cng_pt, rate); - tech_pvt->cng_pt = 0; + if (!tech_pvt->rm_encoding) { + tech_pvt->cng_pt = 0; + } } if (ptime) { snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "a=ptime:%d\n", ptime);