[asterisk-dev] [Code Review] 3191: channel uniqueid phases 1&2: convert string uniqueid values to structure with time, add ami origination & assignedid

Scott Griepentrog reviewboard at asterisk.org
Fri Feb 21 11:29:24 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3191/
-----------------------------------------------------------

(Updated Feb. 21, 2014, 11:29 a.m.)


Review request for Asterisk Developers.


Changes
-------

New combined phase1 + 2 + revisions from phase1 review


Summary (updated)
-----------------

channel uniqueid phases 1&2: convert string uniqueid values to structure with time, add ami origination & assignedid


Bugs: ASTERISK-23120
    https://issues.asterisk.org/jira/browse/ASTERISK-23120


Repository: Asterisk


Description (updated)
-------

This is the first and second phase of channel uniqueid changes for ASTERISK-23120, including AMI origination UniqueId parameter to assign id on creation.

* ast_channel_uniqueid structure replaces ast_string values uniqueid and linkedid in channel structure

    struct ast_channel_id {
      char unique_id[AST_MAX_UNIQUEID];   /*!< Unique Identifier - can be set on originate */
      time_t creation_time;               /*!< Creation time */
      int creation_unique;                /*!< sub-second unique value */
    }

* ast_channel_linkedid() and ast_channel_uniqueid() return char* as before, referencing only unique_id element

* ast_channel_xxxxxxid_set() are removed, new ast_channel_internal_xxx() functions added to provided needed functions regarding entire ast_channel_id structure

* an issue with argument order to ast_channel_alloc() in chan_mgcp.c was corrected [BUGFIX].

* an issue with argument order to ast_channel_alloc() in chan_gtalk.c was corrected [BUGFIX].

* new parameter const char *assignedid added to chain of functions used to create channels (including all channel drivers xxx_request())

* where channel drivers took struct ast_channel *reqeustor and converted it to linkedid string, these now pass channel as requestor all the way through to ast_channel_alloc so that channel_internal can copy full ast_channel_id linkedid structure with zero penalty.


Diffs (updated)
-----

  /branches/12/tests/test_voicemail_api.c 408523 
  /branches/12/tests/test_substitution.c 408523 
  /branches/12/tests/test_stasis_endpoints.c 408523 
  /branches/12/tests/test_stasis_channels.c 408523 
  /branches/12/tests/test_cel.c 408523 
  /branches/12/tests/test_cdr.c 408523 
  /branches/12/tests/test_app.c 408523 
  /branches/12/res/stasis/control.c 408523 
  /branches/12/res/res_stasis_snoop.c 408523 
  /branches/12/res/res_stasis.c 408523 
  /branches/12/res/res_clioriginate.c 408523 
  /branches/12/res/res_calendar.c 408523 
  /branches/12/res/parking/parking_tests.c 408523 
  /branches/12/res/parking/parking_bridge_features.c 408523 
  /branches/12/res/parking/parking_applications.c 408523 
  /branches/12/res/ari/resource_channels.c 408523 
  /branches/12/res/ari/resource_bridges.c 408523 
  /branches/12/pbx/pbx_spool.c 408523 
  /branches/12/main/pbx.c 408523 
  /branches/12/main/message.c 408523 
  /branches/12/main/manager.c 408523 
  /branches/12/main/dial.c 408523 
  /branches/12/main/core_unreal.c 408523 
  /branches/12/main/core_local.c 408523 
  /branches/12/main/channel_internal_api.c 408523 
  /branches/12/main/channel.c 408523 
  /branches/12/main/cel.c 408523 
  /branches/12/main/ccss.c 408523 
  /branches/12/main/bridge_channel.c 408523 
  /branches/12/main/bridge_basic.c 408523 
  /branches/12/main/bridge.c 408523 
  /branches/12/include/asterisk/pbx.h 408523 
  /branches/12/include/asterisk/dial.h 408523 
  /branches/12/include/asterisk/core_unreal.h 408523 
  /branches/12/include/asterisk/channel_internal.h 408523 
  /branches/12/include/asterisk/channel.h 408523 
  /branches/12/channels/chan_vpb.cc 408523 
  /branches/12/channels/chan_unistim.c 408523 
  /branches/12/channels/chan_skinny.c 408523 
  /branches/12/channels/chan_sip.c 408523 
  /branches/12/channels/chan_pjsip.c 408523 
  /branches/12/channels/chan_phone.c 408523 
  /branches/12/channels/chan_oss.c 408523 
  /branches/12/channels/chan_nbs.c 408523 
  /branches/12/channels/chan_multicast_rtp.c 408523 
  /branches/12/channels/chan_motif.c 408523 
  /branches/12/channels/chan_misdn.c 408523 
  /branches/12/channels/chan_mgcp.c 408523 
  /branches/12/channels/chan_jingle.c 408523 
  /branches/12/channels/chan_iax2.c 408523 
  /branches/12/channels/chan_h323.c 408523 
  /branches/12/channels/chan_gtalk.c 408523 
  /branches/12/channels/chan_dahdi.c 408523 
  /branches/12/channels/chan_console.c 408523 
  /branches/12/channels/chan_bridge_media.c 408523 
  /branches/12/channels/chan_alsa.c 408523 
  /branches/12/apps/confbridge/conf_chan_record.c 408523 
  /branches/12/apps/confbridge/conf_chan_announce.c 408523 
  /branches/12/apps/app_voicemail.c 408523 
  /branches/12/apps/app_queue.c 408523 
  /branches/12/apps/app_page.c 408523 
  /branches/12/apps/app_originate.c 408523 
  /branches/12/apps/app_meetme.c 408523 
  /branches/12/apps/app_followme.c 408523 
  /branches/12/apps/app_dial.c 408523 
  /branches/12/apps/app_confbridge.c 408523 
  /branches/12/apps/app_chanisavail.c 408523 
  /branches/12/addons/chan_ooh323.c 408523 
  /branches/12/addons/chan_mobile.c 408523 

Diff: https://reviewboard.asterisk.org/r/3191/diff/


Testing (updated)
-------

Ran new linkedid_check test and received same results.  Also ran some bridge tests to check for asserts.

Also ran new Originate with assignedid test: https://reviewboard.asterisk.org/r/3243/


Thanks,

Scott Griepentrog

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140221/61ecf452/attachment-0001.html>


More information about the asterisk-dev mailing list