mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
'h' extension doesn't execute past first priority
Reported by: dimas Patch by: dimas Closes bug #11146 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2660,7 +2660,7 @@ static int __ast_pbx_run(struct ast_channel *c)
|
||||
if (c->cdr && ast_opt_end_cdr_before_h_exten)
|
||||
ast_cdr_end(c->cdr);
|
||||
set_ext_pri(c, "h", 1);
|
||||
while ((res = ast_spawn_extension(c, c->context, c->exten, c->priority, c->cid.cid_num, &found,1))) {
|
||||
while ((res = ast_spawn_extension(c, c->context, c->exten, c->priority, c->cid.cid_num, &found, 1)) == 0) {
|
||||
c->priority++;
|
||||
}
|
||||
if (found && res) {
|
||||
|
Reference in New Issue
Block a user