dect
/
asterisk
Archived
13
0
Fork 0

Fix the ZapHangup, ZapDialOffhook, ZapTransfer manager commands

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1824 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
martinp 2003-12-04 00:03:08 +00:00
parent c195d78aa9
commit 6608f3a0fb
1 changed files with 1 additions and 14 deletions

View File

@ -6853,10 +6853,6 @@ static int action_transfer(struct mansession *s, struct message *m)
return 0;
}
p = find_channel(atoi(channel));
if (p->owner && p->owner->_state != AST_STATE_UP) {
astman_send_error(s, m, "Channel is on hook");
return 0;
}
if (!p) {
astman_send_error(s, m, "No such channel");
return 0;
@ -6875,10 +6871,6 @@ static int action_transferhangup(struct mansession *s, struct message *m)
return 0;
}
p = find_channel(atoi(channel));
if (p->owner && p->owner->_state != AST_STATE_UP) {
astman_send_error(s, m, "Channel is on hook");
return 0;
}
if (!p) {
astman_send_error(s, m, "No such channel");
return 0;
@ -6903,12 +6895,7 @@ static int action_zapdialoffhook(struct mansession *s, struct message *m)
return 0;
}
p = find_channel(atoi(channel));
if (p->owner) {
if (p->owner->_state != AST_STATE_UP) {
astman_send_error(s, m, "Channel is on hook");
return 0;
}
} else {
if (!p->owner) {
astman_send_error(s, m, "Channel does not have it's owner");
return 0;
}