projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b52e19
)
Fix "ZapOffHook" (bug #2161)
author
Mark Spencer
<markster@digium.com>
Wed, 28 Jul 2004 18:38:29 +0000
(18:38 +0000)
committer
Mark Spencer
<markster@digium.com>
Wed, 28 Jul 2004 18:38:29 +0000
(18:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3527
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_zap.c
patch
|
blob
|
history
diff --git
a/channels/chan_zap.c
b/channels/chan_zap.c
index
c1e276f
..
ee1ea91
100755
(executable)
--- a/
channels/chan_zap.c
+++ b/
channels/chan_zap.c
@@
-8423,14
+8423,14
@@
static int action_zapdialoffhook(struct mansession *s, struct message *m)
return 0;
}
p = find_channel(atoi(channel));
- if (!p->owner) {
- astman_send_error(s, m, "Channel does not have it's owner");
- return 0;
- }
if (!p) {
astman_send_error(s, m, "No such channel");
return 0;
}
+ if (!p->owner) {
+ astman_send_error(s, m, "Channel does not have it's owner");
+ return 0;
+ }
for (i=0; i<strlen(number); i++) {
struct ast_frame f = { AST_FRAME_DTMF, number[i] };
zap_queue_frame(p, &f);