automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@58207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Automerge Script 19 years ago
parent be2a021189
commit c52232f4f4

@ -885,8 +885,19 @@ static int action_redirect(struct mansession *s, struct message *m)
astman_send_error(s, m, buf);
return 0;
}
if (chan->_state != AST_STATE_UP) {
astman_send_error(s, m, "Redirect failed, channel not up.\n");
ast_mutex_unlock(&chan->lock);
return 0;
}
if (!ast_strlen_zero(name2))
chan2 = ast_get_channel_by_name_locked(name2);
if (chan2 && chan2->_state != AST_STATE_UP) {
astman_send_error(s, m, "Redirect failed, extra channel not up.\n");
ast_mutex_unlock(&chan->lock);
ast_mutex_unlock(&chan2->lock);
return 0;
}
res = ast_async_goto(chan, context, exten, pi);
if (!res) {
if (!ast_strlen_zero(name2)) {

Loading…
Cancel
Save