mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 03:07:59 +00:00
uniqueid: channel linkedid, ami, ari object creation with id's
Much needed was a way to assign id to objects on creation, and much change was necessary to accomplish it. Channel uniqueids and linkedids are split into separate string and creation time components without breaking linkedid propgation. This allowed the uniqueid to be specified by the user interface - and those values are now carried through to channel creation, adding the assignedids value to every function in the chain including the channel drivers. For local channels, the second channel can be specified or left to default to a ;2 suffix of first. In ARI, bridge, playback, and snoop objects can also be created with a specified uniqueid. Along the way, the args order to allocating channels was fixed in chan_mgcp and chan_gtalk, and linkedid is no longer lost as masquerade occurs. (closes issue ASTERISK-23120) Review: https://reviewboard.asterisk.org/r/3191/ ........ Merged revisions 410157 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2237,7 +2237,7 @@ static int recalling_enter(struct attended_transfer_properties *props)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ast_dial_append(props->dial, props->transferer_type, props->transferer_addr)) {
|
||||
if (ast_dial_append(props->dial, props->transferer_type, props->transferer_addr, NULL)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -2360,7 +2360,7 @@ static int retransfer_enter(struct attended_transfer_properties *props)
|
||||
ast_format_cap_add(cap, ast_format_set(&fmt, AST_FORMAT_SLINEAR, 0));
|
||||
|
||||
/* Get a channel that is the destination we wish to call */
|
||||
props->recall_target = ast_request("Local", cap, NULL, destination, &cause);
|
||||
props->recall_target = ast_request("Local", cap, NULL, NULL, destination, &cause);
|
||||
if (!props->recall_target) {
|
||||
ast_log(LOG_ERROR, "Unable to request outbound channel for recall target\n");
|
||||
return -1;
|
||||
@@ -2920,7 +2920,7 @@ static struct ast_channel *dial_transfer(struct ast_channel *caller, const char
|
||||
int cause;
|
||||
|
||||
/* Now we request a local channel to prepare to call the destination */
|
||||
chan = ast_request("Local", ast_channel_nativeformats(caller), caller, destination,
|
||||
chan = ast_request("Local", ast_channel_nativeformats(caller), NULL, caller, destination,
|
||||
&cause);
|
||||
if (!chan) {
|
||||
return NULL;
|
||||
@@ -3239,7 +3239,7 @@ struct ast_bridge *ast_bridge_basic_new(void)
|
||||
bridge = bridge_alloc(sizeof(struct ast_bridge), &ast_bridge_basic_v_table);
|
||||
bridge = bridge_base_init(bridge,
|
||||
AST_BRIDGE_CAPABILITY_NATIVE | AST_BRIDGE_CAPABILITY_1TO1MIX
|
||||
| AST_BRIDGE_CAPABILITY_MULTIMIX, NORMAL_FLAGS, NULL, NULL);
|
||||
| AST_BRIDGE_CAPABILITY_MULTIMIX, NORMAL_FLAGS, NULL, NULL, NULL);
|
||||
bridge = bridge_basic_personality_alloc(bridge);
|
||||
bridge = bridge_register(bridge);
|
||||
return bridge;
|
||||
|
Reference in New Issue
Block a user