提交 111ef49f authored 作者: Stefan Knoblich's avatar Stefan Knoblich

mod_sofia: Use switch_add_event_header_string() for string values.

Errors fixed:
	sofia.c: In function 'sofia_handle_sip_i_refer':
	sofia.c:7323:5: error: format not a string literal and no format arguments
	sofia.c:7324:5: error: format not a string literal and no format arguments
Signed-off-by: 's avatarStefan Knoblich <stkn@openisdn.net>
上级 e79e6146
...@@ -7320,9 +7320,8 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t ...@@ -7320,9 +7320,8 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, MY_EVENT_ERROR)) { if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, MY_EVENT_ERROR)) {
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Error-Type", "attended_transfer"); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Error-Type", "attended_transfer");
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Transfer-Exten", exten); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Transfer-Exten", exten);
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Full-Refer-To", full_ref_to); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Full-Refer-To", full_ref_to);
switch_channel_event_set_data(channel, event); switch_channel_event_set_data(channel, event);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论