From: Joshua Colp Date: Thu, 30 Aug 2007 14:23:40 +0000 (+0000) Subject: (issue #10599) X-Git-Tag: 1.4.12~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a47dcc167cf7673b61d91734f5a6b76c54688a62;p=thirdparty%2Fasterisk.git (issue #10599) Reported by: dimas Handle the -1 control subclass during feature dialing (it indicates to stop sounds). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81369 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_features.c b/res/res_features.c index 90e79650c8..405af454fa 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1230,6 +1230,13 @@ static struct ast_channel *ast_feature_request_and_dial(struct ast_channel *call f = NULL; ready=1; break; + } else if (f->subclass == -1) { + if (option_verbose > 2) + ast_verbose( VERBOSE_PREFIX_3 "%s stopped sounds\n", chan->name); + ast_indicate(caller, -1); + ast_frfree(f); + f = NULL; + break; } else { ast_log(LOG_NOTICE, "Don't know what to do about control frame: %d\n", f->subclass); }