diff options
author | Kinsey Moore <kmoore@digium.com> | 2012-06-19 21:13:41 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2012-06-19 21:13:41 +0000 |
commit | f080be134edec9e9fd7dc9175170db6fd946a010 (patch) | |
tree | 3531d5107d293d97ba5ef1e9dd955e4f63fbdc86 /include | |
parent | 91157d5c2bdbc9eb44b799fde0df0841a34bfa4c (diff) |
Ensure that pvt cause information does not break native bridging
Channel drivers that allow native bridging need to handle
AST_CONTROL_PVT_CAUSE_CODE frames and previously did not handle them
properly, usually breaking out of the native bridge. This change
corrects that behavior and exposes the available cause code information
to the dialplan while native bridges are in place. This required
exposing the HANGUPCAUSE hash setter outside of channel.c, so
additional documentation has been added.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/channel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 170755b79..06be07b2a 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -3565,6 +3565,15 @@ int ast_channel_get_cc_agent_type(struct ast_channel *chan, char *agent_type, si */ void ast_channel_unlink(struct ast_channel *chan); +/*! + * \brief Sets the HANGUPCAUSE hash and optionally the SIP_CAUSE hash + * on the given channel + * + * \param chan channel on which to set the cause information + * \param cause_code ast_control_pvt_cause_code structure containing cause information + */ +void ast_channel_hangupcause_hash_set(struct ast_channel *chan, const struct ast_control_pvt_cause_code *cause_code); + /* ACCESSOR FUNTIONS */ /*! \brief Set the channel name */ void ast_channel_name_set(struct ast_channel *chan, const char *name); |