diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-30 14:26:05 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-30 14:26:05 +0000 |
commit | 9fa69c31d44fa1a95869a05fd8284c88e03fcf97 (patch) | |
tree | 9c9f1f8b921d8b5b6fa4dc86e46f9af9109112fb /res/res_features.c | |
parent | 1f969f6ba9198bf309b8095180f845d3f8a4eb9e (diff) |
Merged revisions 81369 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r81369 | file | 2007-08-30 11:23:40 -0300 (Thu, 30 Aug 2007) | 4 lines
(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/trunk@81370 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r-- | res/res_features.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_features.c b/res/res_features.c index 88958807a..3f74296e5 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1625,6 +1625,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); } |