mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
fixing RTP term id allocation issue(redmine issue#5598)
This commit is contained in:
parent
3eba8a7940
commit
946d45fa8e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user