mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
bridging: Give bridges a name and a known creator
Bridges have two new optional properties, a creator and a name. Certain consumers of bridges will automatically provide bridges that they create with these properties. Examples include app_bridgewait, res_parking, app_confbridge, and app_agent_pool. In addition, a name may now be provided as an argument to the POST function for creating new bridges via ARI. (closes issue AFS-47) Review: https://reviewboard.asterisk.org/r/3070/ ........ Merged revisions 404042 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -585,7 +585,7 @@ static void control_unlink(struct stasis_app_control *control)
|
||||
ao2_cleanup(control);
|
||||
}
|
||||
|
||||
struct ast_bridge *stasis_app_bridge_create(const char *type)
|
||||
struct ast_bridge *stasis_app_bridge_create(const char *type, const char *name)
|
||||
{
|
||||
struct ast_bridge *bridge;
|
||||
int capabilities;
|
||||
@@ -604,7 +604,7 @@ struct ast_bridge *stasis_app_bridge_create(const char *type)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bridge = ast_bridge_base_new(capabilities, flags);
|
||||
bridge = ast_bridge_base_new(capabilities, flags, "Stasis", name);
|
||||
if (bridge) {
|
||||
if (!ao2_link(app_bridges, bridge)) {
|
||||
ast_bridge_destroy(bridge, 0);
|
||||
|
||||
Reference in New Issue
Block a user