aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 14:23:40 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 14:23:40 +0000
commit032e78ee4e440691f1c86aecbc0374e7ec9da57a (patch)
tree00103f5c1e63fb7d716381789fac153c6148289e /res
parent65b67c080ac659c9b93c7fd25bce084d0227b301 (diff)
(issue #10599)
Reported by: dimas Handle the -1 control subclass during feature dialing (it indicates to stop sounds). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81369 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_features.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 90e79650c..405af454f 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);
}