diff options
author | Mark Spencer <markster@digium.com> | 2003-08-24 20:08:55 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-24 20:08:55 +0000 |
commit | 384072d44cadd1d8695f74e72103c483ccd4a561 (patch) | |
tree | e78534021190557f93b3ead0e7a738fcb9b0ce7d /pbx.c | |
parent | 730d7655c7016c2b5b7352201ba7349b0599fdf6 (diff) |
Don't run hangup extension when KEEPALIVE is returned (bug #120)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1802,7 +1802,7 @@ int ast_pbx_run(struct ast_channel *c) if (firstpass) ast_log(LOG_WARNING, "Don't know what to do with '%s'\n", c->name); out: - if (ast_exists_extension(c, c->context, "h", 1, c->callerid)) { + if ((res != AST_PBX_KEEPALIVE) && ast_exists_extension(c, c->context, "h", 1, c->callerid)) { strcpy(c->exten, "h"); c->priority = 1; while(ast_exists_extension(c, c->context, c->exten, c->priority, c->callerid)) { |