git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4479 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-03-08 02:52:31 +00:00
parent cc0ea39446
commit 752a51915e
1 changed files with 3 additions and 1 deletions

View File

@ -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);