From: David Vossel Date: Mon, 9 Feb 2009 17:26:02 +0000 (+0000) Subject: Fixes issue with hangups not being sent and external process never terminating. X-Git-Tag: 1.6.2.0-beta1~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=829b14fc3effe225f5cbe0344395dd00334e2fb1;p=thirdparty%2Fasterisk.git Fixes issue with hangups not being sent and external process never terminating. The ignore_hangup, run_dead, and noanswer flags were never initilized to zero causing hangups to never be issued. If the external script expects to be notified of a hangup and never receives one, it runs indefinitely. (closes issue #14251) Reported by: chris-mac Tested by: dvossel git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@174325 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index 936a111ac6..a615fd76fd 100644 --- a/apps/app_externalivr.c +++ b/apps/app_externalivr.c @@ -322,7 +322,7 @@ static struct playlist_entry *make_entry(const char *filename) static int app_exec(struct ast_channel *chan, void *data) { - struct ast_flags flags; + struct ast_flags flags = { 0, }; char *opts[0]; struct playlist_entry *entry; int child_stdin[2] = { 0, 0 };