Fixed remote SSRC

Changed atol to atoll to correctly read SSRC values above 2,147,483,647
This commit is contained in:
Josh Hunt 2022-09-07 17:10:03 +01:00 committed by GitHub
parent 7b18e8c902
commit 60e7c855a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4281,7 +4281,7 @@ static switch_status_t check_ice(switch_media_handle_t *smh, switch_media_type_t
switch_channel_set_flag(smh->session->channel, CF_DTLS); switch_channel_set_flag(smh->session->channel, CF_DTLS);
} else if (!engine->remote_ssrc && !strcasecmp(attr->a_name, "ssrc") && attr->a_value) { } else if (!engine->remote_ssrc && !strcasecmp(attr->a_name, "ssrc") && attr->a_value) {
engine->remote_ssrc = (uint32_t) atol(attr->a_value); engine->remote_ssrc = (uint32_t) atoll(attr->a_value);
if (engine->rtp_session && engine->remote_ssrc) { if (engine->rtp_session && engine->remote_ssrc) {
switch_rtp_set_remote_ssrc(engine->rtp_session, engine->remote_ssrc); switch_rtp_set_remote_ssrc(engine->rtp_session, engine->remote_ssrc);