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