]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fixing RTP term id allocation issue(redmine issue#5598)
authorKapil <kgupta@sangoma.com>
Mon, 20 Aug 2012 13:39:08 +0000 (09:39 -0400)
committerKapil <kgupta@sangoma.com>
Mon, 20 Aug 2012 13:39:08 +0000 (09:39 -0400)
src/mod/endpoints/mod_media_gateway/media_gateway.c

index cad73bd4aa8ba1e0d9c925d8dd92124aad4e1e0d..f501d43c3ad38f8e7158b88709ae2220cddbffdc 100644 (file)
@@ -608,6 +608,7 @@ uint32_t mg_rtp_request_id(megaco_profile_t *profile)
     for (; profile->rtpid_next < MG_MAX_RTPID; profile->rtpid_next++) {
         if ((profile->rtpid_bitmap[profile->rtpid_next % 8] & (1 << (profile->rtpid_next / 8))) == 0) {
             profile->rtpid_bitmap[profile->rtpid_next % 8] |= 1 << (profile->rtpid_next / 8);
+            profile->rtpid_next++;
             return profile->rtpid_next;
         }
     }