summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-11 03:03:41 +0000
committerMark Spencer <markster@digium.com>2003-04-11 03:03:41 +0000
commit10a7938b6ea7bc3508b7b1c3805770faf12d6bb6 (patch)
tree46e3661cecd39ef08df1da24ef11164ae61d5c64 /channels
parent15b1b0b0f1d85fca40f217da21546b2b52859513 (diff)
Only consider a RINGOFFHOOK as "UP" when a call is outgoing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index b7a9573dd..f115e9096 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -2634,7 +2634,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
ast_log(LOG_DEBUG, "Ring detected\n");
p->subs[index].f.frametype = AST_FRAME_CONTROL;
p->subs[index].f.subclass = AST_CONTROL_RING;
- } else if ((ast->_state == AST_STATE_RINGING) || (ast->_state == AST_STATE_DIALING)) {
+ } else if (p->outgoing && ((ast->_state == AST_STATE_RINGING) || (ast->_state == AST_STATE_DIALING))) {
if (option_debug)
ast_log(LOG_DEBUG, "Line answered\n");
if (p->confirmanswer) {