diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 28ab613fa7..5acdce7307 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -850,7 +850,7 @@ switch_status_t config_sofia(int reload, char *profile_name) switch_event_create(¶ms, SWITCH_EVENT_MESSAGE); switch_assert(params); - switch_event_add_header(params, SWITCH_STACK_BOTTOM, "profile", profile_name); + switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "profile", profile_name); if (!(xml = switch_xml_open_cfg(cf, &cfg, params))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);