use switch_event_add_header_string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7341 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fd208eb22a
commit
b576d14d66
|
@ -850,7 +850,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||||
|
|
||||||
switch_event_create(¶ms, SWITCH_EVENT_MESSAGE);
|
switch_event_create(¶ms, SWITCH_EVENT_MESSAGE);
|
||||||
switch_assert(params);
|
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))) {
|
if (!(xml = switch_xml_open_cfg(cf, &cfg, params))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
|
||||||
|
|
Loading…
Reference in New Issue