summaryrefslogtreecommitdiff
path: root/include/asterisk/frame.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-03-07 11:22:18 +0000
committerJoshua Colp <jcolp@digium.com>2017-03-07 12:08:51 +0000
commit3ed05badb9f6ce3c3a3848b56c0747334624e0c3 (patch)
tree91a2893ebefae4fa7b5ccc93d68e9a108b375678 /include/asterisk/frame.h
parentc9296b23d1574332ccbc83f3fc7ba492cfc34cfe (diff)
core: Add stream topology changing primitives with tests.
This change adds a few things to facilitate stream topology changing: 1. Control frame types have been added for use by the channel driver to notify the application that the channel wants to change the stream topology or that a stream topology change has been accepted. They are also used by the indicate interface to the channel that the application uses to indicate it wants to do the same. 2. Legacy behavior has been adopted in ast_read() such that if a channel requests a stream topology change it is denied automatically and the current stream topology is preserved if the application is not capable of handling streams. Tests have also been written which confirm the multistream and non-multistream behavior. ASTERISK-26839 Change-Id: Ia68ef22bca8e8457265ca4f0f9de600cbcc10bc9
Diffstat (limited to 'include/asterisk/frame.h')
-rw-r--r--include/asterisk/frame.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index c56539af4..2f6c365ad 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -297,6 +297,8 @@ enum ast_control_frame_type {
AST_CONTROL_UPDATE_RTP_PEER = 32, /*!< Interrupt the bridge and have it update the peer */
AST_CONTROL_PVT_CAUSE_CODE = 33, /*!< Contains an update to the protocol-specific cause-code stored for branching dials */
AST_CONTROL_MASQUERADE_NOTIFY = 34, /*!< A masquerade is about to begin/end. (Never sent as a frame but directly with ast_indicate_data().) */
+ AST_CONTROL_STREAM_TOPOLOGY_REQUEST_CHANGE = 35, /*!< Channel indication that a stream topology change has been requested */
+ AST_CONTROL_STREAM_TOPOLOGY_CHANGED = 36, /*!< Channel indication that a stream topology change has occurred */
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING