add flags to state_handler table

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15356 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-11-04 21:07:18 +00:00
parent 2c94b2a924
commit 4a2e4ffc0e
6 changed files with 309 additions and 5 deletions

View File

@@ -1736,7 +1736,14 @@ SWITCH_DECLARE(void) switch_channel_clear_state_handler(switch_channel_t *channe
new_handlers[channel->state_handler_index++] = channel->state_handlers[index];
}
}
} else {
for (index = 0; index < i; index++) {
if (switch_test_flag(channel->state_handlers[index], SSH_FLAG_STICKY)) {
new_handlers[channel->state_handler_index++] = channel->state_handlers[index];
}
}
}
for (index = 0; index < SWITCH_MAX_STATE_HANDLERS; index++) {
channel->state_handlers[index] = NULL;
}