summaryrefslogtreecommitdiff
path: root/apps/app_parkandannounce.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2012-02-09 02:55:59 +0000
committerRichard Mudgett <rmudgett@digium.com>2012-02-09 02:55:59 +0000
commit5816c6065435258e32e791abccc90c254862da8b (patch)
tree881547dddc95a24d63631f513ded6f7a29181765 /apps/app_parkandannounce.c
parent747cd61edf54868689dac7207e09cf9c3011715b (diff)
Fix crash in ParkAndAnnounce.
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 ........ Merged revisions 354496 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_parkandannounce.c')
-rw-r--r--apps/app_parkandannounce.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c
index 2d94db75c..aecd7cebe 100644
--- a/apps/app_parkandannounce.c
+++ b/apps/app_parkandannounce.c
@@ -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);