mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
Don't set guardtime if channel is only reserved (bug #2421)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2158,9 +2158,12 @@ static int zt_hangup(struct ast_channel *ast)
|
||||
case SIG_FXSGS:
|
||||
case SIG_FXSLS:
|
||||
case SIG_FXSKS:
|
||||
/* Make sure we're not made available for at least two seconds */
|
||||
time(&p->guardtime);
|
||||
p->guardtime += 2;
|
||||
/* Make sure we're not made available for at least two seconds assuming
|
||||
we were actually used for an inbound or outbound call. */
|
||||
if (ast->_state != AST_STATE_RESERVED) {
|
||||
time(&p->guardtime);
|
||||
p->guardtime += 2;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
tone_zone_play_tone(p->subs[SUB_REAL].zfd, -1);
|
||||
|
||||
Reference in New Issue
Block a user