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
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);
}