FS-5429: --resolve add minimal idivert support for skinny

This commit is contained in:
Nathan Neulinger 2013-05-22 09:58:28 -05:00
parent 582e3699f6
commit 32bddaa6cd
1 changed files with 11 additions and 0 deletions

View File

@ -1871,6 +1871,17 @@ switch_status_t skinny_handle_soft_key_event_message(listener_t *listener, skinn
status = skinny_session_answer(session, listener, line_instance);
}
break;
case SOFTKEY_IDIVERT:
session = skinny_profile_find_session(listener->profile, listener, &line_instance, call_id);
if(session) {
switch_channel_t *channel = NULL;
channel = switch_core_session_get_channel(session);
if (channel) {
switch_channel_hangup(channel, SWITCH_CAUSE_NO_ANSWER);
}
}
break;
default:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,
"Unknown SoftKeyEvent type: %d.\n", request->data.soft_key_event.event);