fixing RTP term id allocation issue(redmine issue#5598)

This commit is contained in:
Kapil 2012-08-20 09:39:08 -04:00
parent 3eba8a7940
commit 946d45fa8e

View 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;
}
}