mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
fix a bunch of stuff you want this version
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2752 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -126,7 +126,6 @@ static switch_status_t kill_function(char *dest, switch_core_session_t *isession
|
||||
|
||||
if (dest && (session = switch_core_session_locate(dest))) {
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
switch_core_session_kill_channel(session, SWITCH_SIG_KILL);
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
|
||||
switch_core_session_rwunlock(session);
|
||||
stream->write_function(stream, "OK\n");
|
||||
|
||||
@@ -952,12 +952,10 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_runtime(void)
|
||||
|
||||
if (globals.calls == 0) {
|
||||
waitlen = 10000;
|
||||
} else if (globals.calls == 1) {
|
||||
waitlen = 1000;
|
||||
} else if (globals.calls < 10) {
|
||||
waitlen = 100;
|
||||
waitlen = 1000;
|
||||
} else {
|
||||
waitlen = 10;
|
||||
waitlen = 500;
|
||||
}
|
||||
|
||||
switch_yield(waitlen);
|
||||
|
||||
Reference in New Issue
Block a user