提交 d97f6028 authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #1134 in FS/freeswitch from ~J0SH/freeswitch:byereason to master

* commit '7248a4f3':
  FS-9910 [mod_sofia]: Set SIP reason header for BYE events.
......@@ -1011,6 +1011,7 @@ void sofia_handle_sip_i_bye(switch_core_session_t *session, int status,
char *reason_header = sip_header_as_string(nh->nh_home, (void *) sip->sip_reason);
if (!zstr(reason_header)) {
switch_channel_set_variable(channel, "sip_reason", reason_header);
switch_channel_set_variable_partner(channel, "sip_reason", reason_header);
}
}
......@@ -1627,6 +1628,7 @@ static void our_sofia_event_callback(nua_event_t event,
char *reason_header = sip_header_as_string(nh->nh_home, (void *) sip->sip_reason);
if (!zstr(reason_header)) {
switch_channel_set_variable(channel, "sip_reason", reason_header);
switch_channel_set_variable_partner(channel, "sip_reason", reason_header);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论