]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix typo that can lead to seg
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 30 Jul 2014 17:17:47 +0000 (22:17 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 30 Jul 2014 17:17:47 +0000 (22:17 +0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 5691da5ade9bbd4ddf03cebca333274c5c9f2a62..0d318b4282fb9bd56245618e82c4940f5d698b5e 100644 (file)
@@ -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;
                                                                }