--- /dev/null
+Subject: ARI
+
+A new parameter 'inhibitConnectedLineUpdates' is now available in the
+'bridges.addChannel' call. This prevents the identity of the newly connected
+channel from being presented to other bridge members.
unsigned int mute:1;
/*! TRUE if DTMF should be passed into the bridge tech. */
unsigned int dtmf_passthrough:1;
+ /*! TRUE to avoid generating COLP frames when joining the bridge */
+ unsigned int inhibit_colp:1;
};
/*!
void stasis_app_control_mute_in_bridge(
struct stasis_app_control *control, int mute);
+/*!
+ * \since 18
+ * \brief Set whether COLP frames should be generated when joining the bridge
+ *
+ * \param control Control whose channel should have its COLP frames inhibited when bridged
+ * \param mute Whether COLP frames should be generated (0) or not (1).
+ */
+void stasis_app_control_inhibit_colp_in_bridge(
+ struct stasis_app_control *control, int inhibit_colp);
+
/*!
* \since 12
* \brief Gets the bridge currently associated with a control object.
if (!stasis_app_control_bridge_features_init(list->controls[i])) {
stasis_app_control_absorb_dtmf_in_bridge(list->controls[i], args->absorb_dtmf);
stasis_app_control_mute_in_bridge(list->controls[i], args->mute);
+ stasis_app_control_inhibit_colp_in_bridge(list->controls[i], args->inhibit_connected_line_updates);
}
}
int absorb_dtmf;
/*! Mute audio from this channel, preventing it to pass through to the bridge */
int mute;
+ /*! Do not present the identity of the newly connected channel to other bridge members */
+ int inhibit_connected_line_updates;
};
/*!
* \brief Body parsing function for /bridges/{bridgeId}/addChannel.
if (field) {
args->mute = ast_json_is_true(field);
}
+ field = ast_json_object_get(body, "inhibitConnectedLineUpdates");
+ if (field) {
+ args->inhibit_connected_line_updates = ast_json_is_true(field);
+ }
return 0;
}
if (strcmp(i->name, "mute") == 0) {
args.mute = ast_true(i->value);
} else
+ if (strcmp(i->name, "inhibitConnectedLineUpdates") == 0) {
+ args.inhibit_connected_line_updates = ast_true(i->value);
+ } else
{}
}
for (i = path_vars; i; i = i->next) {
{
int res;
struct ast_bridge_features *features;
+ int flags = AST_BRIDGE_IMPART_CHAN_DEPARTABLE;
if (!control || !bridge) {
return -1;
/* Pull bridge features from the control */
features = control->bridge_features;
control->bridge_features = NULL;
+ if (features && features->inhibit_colp) {
+ flags |= AST_BRIDGE_IMPART_INHIBIT_JOIN_COLP;
+ }
ast_assert(stasis_app_get_bridge(control) == NULL);
/* We need to set control->bridge here since bridge_after_cb may be run
chan,
swap,
features, /* features */
- AST_BRIDGE_IMPART_CHAN_DEPARTABLE);
+ flags);
if (res != 0) {
/* ast_bridge_impart failed before it could spawn the depart
* thread. The callbacks aren't called in this case.
control->bridge_features->mute = mute;
}
+void stasis_app_control_inhibit_colp_in_bridge(
+ struct stasis_app_control *control, int inhibit_colp)
+{
+ control->bridge_features->inhibit_colp = inhibit_colp;
+}
+
void control_flush_queue(struct stasis_app_control *control)
{
struct ao2_iterator iter;
"allowMultiple": false,
"dataType": "boolean",
"defaultValue": false
+ },
+ {
+ "name": "inhibitConnectedLineUpdates",
+ "description": "Do not present the identity of the newly connected channel to other bridge members",
+ "paramType": "query",
+ "required": false,
+ "allowMultiple": false,
+ "dataType": "boolean",
+ "defaultValue": false
}
],
"errorResponses": [