提交 946d45fa authored 作者: Kapil's avatar Kapil

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

上级 3eba8a79
......@@ -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;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论