From: Anthony Minessale Date: Wed, 30 Jul 2014 17:17:47 +0000 (+0500) Subject: fix typo that can lead to seg X-Git-Tag: v1.4.8~10^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5075d4af0de3dbf351d45b7431a1429d1c97ef15;p=thirdparty%2Ffreeswitch.git fix typo that can lead to seg --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 5691da5ade..0d318b4282 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4915,7 +4915,7 @@ void sofia_presence_handle_sip_i_message(int status, reps++; switch_snprintf(new_name, sizeof(new_name), "%s%s%s", SOFIA_SIP_HEADER_PREFIX, un->un_name, postfix); - if (switch_channel_get_variable(channel, new_name)) { + if (switch_event_get_header(event, new_name)) { continue; }