aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-24 20:08:55 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-24 20:08:55 +0000
commit3eed7bdef0615716f7047206db0edf20e74c2cff (patch)
treee78534021190557f93b3ead0e7a738fcb9b0ce7d /pbx.c
parent11e7b4f0e93df04a71ec67f29fea7e67bc4c241d (diff)
Don't run hangup extension when KEEPALIVE is returned (bug #120)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1415 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index c1a4a7280..b500868e0 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)) {