Add support to the bridging core for performing COLP updates when channels join a 2 party bridge.

(closes issue ASTERISK-21829)

Review: https://reviewboard.asterisk.org/r/2636/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2013-07-12 21:42:53 +00:00
parent d418e991ee
commit 238a54fa15
4 changed files with 133 additions and 275 deletions

View File

@@ -134,6 +134,11 @@ struct ast_channel {
*/
struct ast_party_connected_line connected;
/*!
* \brief Channel Connected Line ID information that was last indicated.
*/
struct ast_party_connected_line connected_indicated;
/*! \brief Redirecting/Diversion information */
struct ast_party_redirecting redirecting;
@@ -972,6 +977,10 @@ struct ast_party_connected_line *ast_channel_connected(struct ast_channel *chan)
{
return &chan->connected;
}
struct ast_party_connected_line *ast_channel_connected_indicated(struct ast_channel *chan)
{
return &chan->connected_indicated;
}
struct ast_party_id ast_channel_connected_effective_id(struct ast_channel *chan)
{
return ast_party_id_merge(&chan->connected.id, &chan->connected.priv);