]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Mar 2007 02:52:31 +0000 (02:52 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Mar 2007 02:52:31 +0000 (02:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4479 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index c323a386f8fe0c0627fbbabde22e065fba0ec21c..e2fc5111ce16ba0b6f9b4dfe646ebd5829ff3f60 100644 (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);