causes part 2

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1226 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-04-22 03:05:25 +00:00
parent 0cb0ad7c32
commit 1eb4d491a5
19 changed files with 67 additions and 64 deletions

View File

@@ -48,7 +48,7 @@ static switch_status kill_function(char *dest, char *out, size_t outlen)
if ((session = switch_core_session_locate(dest))) {
switch_channel *channel = switch_core_session_get_channel(session);
switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
switch_channel_hangup(channel);
switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
snprintf(out, outlen, "OK\n");
} else {
snprintf(out, outlen, "No Such Channel!\n");