From 384072d44cadd1d8695f74e72103c483ccd4a561 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sun, 24 Aug 2003 20:08:55 +0000 Subject: [PATCH] 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 --- pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbx.c b/pbx.c index c1a4a7280e..b500868e0a 100755 --- a/pbx.c +++ b/pbx.c @@ -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)) {