From: Alexey Melnichuk Date: Wed, 26 Apr 2017 14:15:51 +0000 (+0300) Subject: FS-10268. Set correct Event-Name for RECV_EVENT event in sofia endpoint X-Git-Tag: v1.6.18~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c603688b9ba21bb95e7443a1dc15fd677762e5b;p=thirdparty%2Ffreeswitch.git FS-10268. Set correct Event-Name for RECV_EVENT event in sofia endpoint --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index bca0bb2ab0..ab7ea297b2 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4995,7 +4995,7 @@ void sofia_presence_handle_sip_i_message(int status, if (switch_event_dup(&event_dup, event) == SWITCH_STATUS_SUCCESS) { event_dup->event_id = SWITCH_EVENT_RECV_MESSAGE; event_dup->flags |= EF_UNIQ_HEADERS; - switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Event-Name", switch_event_name(event->event_id)); + switch_event_add_header_string(event_dup, SWITCH_STACK_BOTTOM, "Event-Name", switch_event_name(event_dup->event_id)); switch_event_fire(&event_dup); } }