diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-02 12:54:31 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-02 12:54:31 +0000 |
commit | b5c2bcb169a9a50bdfb79ef30bb91690e7b32803 (patch) | |
tree | c16a95bc171fe54f832f973df0a9d5aec527ed99 /main/pbx.c | |
parent | 16e33c3791a082de642e77154edec91f4be7a9b5 (diff) |
'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
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 1447eaf07..46fc99392 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -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) { |