mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user