From: Kapil Date: Mon, 20 Aug 2012 13:39:08 +0000 (-0400) Subject: fixing RTP term id allocation issue(redmine issue#5598) X-Git-Tag: v1.2.3^2~71^2^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=946d45fa8e918bcdf3786b1c44a45bebd8d6da38;p=thirdparty%2Ffreeswitch.git fixing RTP term id allocation issue(redmine issue#5598) --- diff --git a/src/mod/endpoints/mod_media_gateway/media_gateway.c b/src/mod/endpoints/mod_media_gateway/media_gateway.c index cad73bd4aa..f501d43c3a 100644 --- a/src/mod/endpoints/mod_media_gateway/media_gateway.c +++ b/src/mod/endpoints/mod_media_gateway/media_gateway.c @@ -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; } }