<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://reviewboard.asterisk.org/r/3191/">https://reviewboard.asterisk.org/r/3191/</a>
     </td>
    </tr>
   </table>
   <br />




<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Asterisk Developers.</div>
<div>By Scott Griepentrog.</div>








<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="https://issues.asterisk.org/jira/browse/ASTERISK-23120">ASTERISK-23120</a>


</div>



<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
Asterisk
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This is the first phase of channel uniqueid changes for ASTERISK-23120.

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

    struct ast_channel_uniqueid {
      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() now return ptr to struct, not char *

* all references to uniqueid & linkedid updated to either pass entire structure because full uniqueid with time must be propagated, or just the ->unique_id string element.

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

* there should be a slight performance improvement by removing the ast_string handling of id's, but at the cost of +~300 bytes to the channel structure.
</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Ran new linkedid_check test and received same results.  Also ran some bridge tests to check for asserts.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>/branches/12/res/stasis/control.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/stasis/app.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/snmp/agent.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_stasis_snoop.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_stasis_recording.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_stasis_playback.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_stasis.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_pjsip_refer.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_musiconhold.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_monitor.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_fax.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/res_agi.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/parking/parking_bridge_features.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/parking/parking_applications.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/res/ari/resource_channels.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/stasis_channels.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/stasis_bridges.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/pbx.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/manager.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/features.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/endpoints.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/core_unreal.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/channel_internal_api.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/channel.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/cel.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/main/bridge_channel.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/include/asterisk/channel_internal.h <span style="color: grey">(407418)</span></li>

 <li>/branches/12/include/asterisk/channel.h <span style="color: grey">(407418)</span></li>

 <li>/branches/12/funcs/func_channel.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_unistim.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_skinny.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_sip.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_pjsip.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_phone.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_oss.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_multicast_rtp.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_motif.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_mgcp.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_iax2.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/channels/chan_console.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/apps/app_voicemail.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/apps/app_queue.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/apps/app_minivm.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/apps/app_followme.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/apps/app_dumpchan.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/apps/app_confbridge.c <span style="color: grey">(407418)</span></li>

 <li>/branches/12/apps/app_chanspy.c <span style="color: grey">(407418)</span></li>

</ul>

<p><a href="https://reviewboard.asterisk.org/r/3191/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>




  </div>
 </body>
</html>