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.8.0~563^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd913d1bb59e788380080b3b88b607990cc33efa;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 00d197ec18..bba5d38f3f 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); } }