diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-05-25 16:50:38 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-05-25 16:50:38 +0000 |
commit | 53687fb7eea5eb23afe0e85ec26c95e2906d6752 (patch) | |
tree | 03a00e37f9e8b6a9e09158cd4c9ed5ce1ab3bb9d /include/asterisk | |
parent | 992ae3d53d684297ca31cf55aa01fd0aa813d29f (diff) |
Merged revisions 320796 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r320796 | rmudgett | 2011-05-25 11:23:11 -0500 (Wed, 25 May 2011) | 17 lines
Give zombies a safe channel driver to use.
Recent crashes from zombie channels suggests that they need a safe home to
goto. When a masquerade happens, the physical part of the zombie channel
is hungup. The hangup normally sets the channel private pointer to NULL.
If someone then blindly does a callback to the channel driver, a crash is
likely because the private pointer is NULL.
The masquerade now sets the channel technology of zombie channels to the
kill channel driver.
Related to the following issues:
(issue #19116)
(issue #19310)
Review: https://reviewboard.asterisk.org/r/1224/
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@320820 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/channel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 46039ac85..c1b99db7d 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -633,6 +633,9 @@ struct ast_channel_tech { int (* cc_callback)(struct ast_channel *inbound, const char *dest, ast_cc_callback_fn callback); }; +/*! Kill the channel channel driver technology descriptor. */ +extern const struct ast_channel_tech ast_kill_tech; + struct ast_epoll_data; /*! |