uniqueid: channel linkedid, ami, ari object creation with id's
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 7 Mar 2014 15:47:55 +0000 (15:47 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 7 Mar 2014 15:47:55 +0000 (15:47 +0000)
commit80ef9a21b9d91ff0bafc304923bc29effa230b00
treea67db39a4c17a4b01a87201ef37ffdc43189c119
parentd3ac8b8a0e70049af7b5552c4dfd8adc2cc5df11
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
88 files changed:
addons/chan_mobile.c
addons/chan_ooh323.c
apps/app_agent_pool.c
apps/app_bridgewait.c
apps/app_chanisavail.c
apps/app_confbridge.c
apps/app_dial.c
apps/app_followme.c
apps/app_meetme.c
apps/app_originate.c
apps/app_page.c
apps/app_queue.c
apps/app_voicemail.c
apps/confbridge/conf_chan_announce.c
apps/confbridge/conf_chan_record.c
channels/chan_alsa.c
channels/chan_bridge_media.c
channels/chan_console.c
channels/chan_dahdi.c
channels/chan_gtalk.c
channels/chan_h323.c
channels/chan_iax2.c
channels/chan_jingle.c
channels/chan_mgcp.c
channels/chan_misdn.c
channels/chan_motif.c
channels/chan_multicast_rtp.c
channels/chan_nbs.c
channels/chan_oss.c
channels/chan_phone.c
channels/chan_pjsip.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_unistim.c
channels/chan_vpb.cc
include/asterisk/bridge.h
include/asterisk/bridge_internal.h
include/asterisk/channel.h
include/asterisk/channel_internal.h
include/asterisk/core_unreal.h
include/asterisk/dial.h
include/asterisk/pbx.h
include/asterisk/stasis_app.h
include/asterisk/stasis_app_playback.h
include/asterisk/stasis_app_snoop.h
main/bridge.c
main/bridge_basic.c
main/bridge_channel.c
main/ccss.c
main/cel.c
main/channel.c
main/channel_internal_api.c
main/core_local.c
main/core_unreal.c
main/dial.c
main/manager.c
main/message.c
main/pbx.c
pbx/pbx_spool.c
res/ari/resource_bridges.c
res/ari/resource_bridges.h
res/ari/resource_channels.c
res/ari/resource_channels.h
res/parking/parking_applications.c
res/parking/parking_bridge.c
res/parking/parking_bridge_features.c
res/parking/parking_tests.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_calendar.c
res/res_calendar_caldav.c
res/res_calendar_ews.c
res/res_calendar_exchange.c
res/res_calendar_icalendar.c
res/res_clioriginate.c
res/res_stasis.c
res/res_stasis_playback.c
res/res_stasis_snoop.c
res/stasis/control.c
rest-api/api-docs/bridges.json
rest-api/api-docs/channels.json
tests/test_app.c
tests/test_cdr.c
tests/test_cel.c
tests/test_stasis_channels.c
tests/test_stasis_endpoints.c
tests/test_substitution.c
tests/test_voicemail_api.c