]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix crash in ParkAndAnnounce.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 9 Feb 2012 02:54:14 +0000 (02:54 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 9 Feb 2012 02:54:14 +0000 (02:54 +0000)
Well, thats embarrasing.  I forgot to initialize the caller_id storage.

(closes issue ASTERISK-19311)
Reported by: tootai
Tested by: rmudgett
........

Merged revisions 354495 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@354496 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_parkandannounce.c

index c899bd2202fd0bfbfa5b7b39476de75a45d5aaf4..69b8267efbec35dd4d5f99f648ef63fc2e5759a5 100644 (file)
@@ -150,6 +150,7 @@ static int parkandannounce_exec(struct ast_channel *chan, const char *data)
        }
 
        /* Save the CallerID because the masquerade turns chan into a ZOMBIE. */
+       ast_party_id_init(&caller_id);
        ast_channel_lock(chan);
        ast_party_id_copy(&caller_id, &chan->caller.id);
        ast_channel_unlock(chan);