diff options
author | Mark Spencer <markster@digium.com> | 2004-12-11 23:00:20 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-12-11 23:00:20 +0000 |
commit | f88fd2f9e46241b0ea5af6763d9763b6fd012d64 (patch) | |
tree | 49182504145c042d26c1a7e40fd179a4bfc8e7ef /channels/chan_zap.c | |
parent | bbbd682ed66fdef65a9187fbdfd39e4625682a87 (diff) |
Don't send DTMF when there is no owner (partof bug #3011)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-x | channels/chan_zap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 13c913b92..d2cd77d0d 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -880,7 +880,7 @@ static int zt_digit(struct ast_channel *ast, char digit) p = ast->pvt->pvt; ast_mutex_lock(&p->lock); index = zt_get_index(ast, p, 0); - if (index == SUB_REAL) { + if ((index == SUB_REAL) && p->owner) { #ifdef ZAPATA_PRI if (p->sig == SIG_PRI && ast->_state == AST_STATE_DIALING && (p->proceeding < 2)) { if (p->setup_ack) { |