提交 464ba5a3 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5821 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 56953243
...@@ -55,6 +55,7 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status, ...@@ -55,6 +55,7 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status,
if (session) { if (session) {
channel = switch_core_session_get_channel(session); channel = switch_core_session_get_channel(session);
assert(channel != NULL); assert(channel != NULL);
if (!switch_channel_test_flag(channel, CF_OUTBOUND)) {
switch_channel_answer(channel); switch_channel_answer(channel);
switch_channel_set_variable(channel, "auto_answer_destination", switch_channel_get_variable(channel, "destination_number")); switch_channel_set_variable(channel, "auto_answer_destination", switch_channel_get_variable(channel, "destination_number"));
switch_ivr_session_transfer(session, "auto_answer", NULL , NULL); switch_ivr_session_transfer(session, "auto_answer", NULL , NULL);
...@@ -63,6 +64,7 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status, ...@@ -63,6 +64,7 @@ void sofia_handle_sip_i_notify(switch_core_session_t *session, int status,
} }
} }
} }
}
nua_respond(nh, 481, "Subscription Does Not Exist", NUTAG_WITH_THIS(nua), TAG_END()); nua_respond(nh, 481, "Subscription Does Not Exist", NUTAG_WITH_THIS(nua), TAG_END());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论