From 60e7c855a2c7c37f382d5927ab1d81e90106469d Mon Sep 17 00:00:00 2001 From: Josh Hunt <43971524+DoduRH@users.noreply.github.com> Date: Wed, 7 Sep 2022 17:10:03 +0100 Subject: [PATCH] Fixed remote SSRC Changed atol to atoll to correctly read SSRC values above 2,147,483,647 --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index d1397a833e..dcede97320 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -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); } 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) { switch_rtp_set_remote_ssrc(engine->rtp_session, engine->remote_ssrc);