<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/2545/">https://reviewboard.asterisk.org/r/2545/</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.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Asterisk Developers, Matt Jordan and rmudgett.</div>
<div>By jrose.</div>
<p style="color: grey;"><i>Updated June 5, 2013, 8:50 p.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</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;">Address kmoore's feedback (mostly style changes). As a reminder, the review has changed a bit:
1) Parking space extension+context overlaps are now forbidden when making extensions even in parkext_exclusive=no mode. This couldn't be reconciled with hints without changing the hint device state format. This means parkext_exclusive now only affects the extension indicated by parkext.
2) added parking_devicestate.c which has a device state provider as well as a function for setting device state. The device state provider function may be somewhat slower than what it replaces since it has to find which lot owns a parked call extension and then determine if a call is parked in that position. O(n1) + O(n2) where n1 = number of lots and n2 = number of parked users currently in the lot picked from n1. Previously it just searched for the existence of the extension which is no longer possible since extensions are created on configuration rather than when parking. Actually it was probably never really correct since people could still just write extensions wherever, but it is what it is.</pre>
</td>
</tr>
</table>
<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-21645">ASTERISK-21645</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;">Extension generation and removal for:
Park a call to the parkext in the parking context
Retrieve parked calls from the space numbers in the parking context
Hints for ParkedCall extensions
Extension generation (but no removal yet) for:
Dial the peer which parked the call on parking timeout in the park-dial context
Extension removal for the park-dial extensions will eventually be handled when reloads are implemented. Since they can't reliably be said to belong to
the parking lot, they are registered to the base registrar for the parking system instead.
Applying bridge features in the way features.c did (as arguments to dial) is no longer necessary on account of how features are handled now.
Each parking lot has its own registrar which is 'res_parking/<parking lot name>'
The registrar used for non-lot-specific extensions is just 'res_parking'
When a parking lot is destroyed or reloaded, all of its registered extensions are flushed and rebuilt.
Note: ParkedCall extensions no longer belong to the parked user involved with them unlike how old parking works. This means that if a parking lot is reloaded and the new configuration specifies that the slot the old call was parked at no longer exists, the extension to retrieve that call will go away even though the call is still parked there. This will resolve itself when the parked call times out (provided timeout hasn't been disabled), and manually created ParkedCall extensions can still retrieve that call if the parking space option isn't provided.</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;">Checked that extensions are generated and destroyed for Park and ParkedCall as expected with multiple parking lots.
Overlaps are currently allowed. If two parking lots occupy the same space and parkext exclusive is in use, it's possible for one parking lot's extensions to be overwritten in favor of another. When parking lot extensions are overwritten by other parking lot extensions, warnings are issued.
Checked that extensions are generated and appropriately called in park-dial when a parked call times out.
Checked that the timeout is set to the parking lot's parkdialtimeout value.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> (updated)</h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>/team/group/bridge_construction/CHANGES <span style="color: grey">(390539)</span></li>
<li>/team/group/bridge_construction/include/asterisk/pbx.h <span style="color: grey">(390539)</span></li>
<li>/team/group/bridge_construction/main/pbx.c <span style="color: grey">(390539)</span></li>
<li>/team/group/bridge_construction/res/parking/parking_bridge.c <span style="color: grey">(390539)</span></li>
<li>/team/group/bridge_construction/res/parking/parking_bridge_features.c <span style="color: grey">(390539)</span></li>
<li>/team/group/bridge_construction/res/parking/parking_controller.c <span style="color: grey">(390539)</span></li>
<li>/team/group/bridge_construction/res/parking/parking_devicestate.c <span style="color: grey">(PRE-CREATION)</span></li>
<li>/team/group/bridge_construction/res/parking/res_parking.h <span style="color: grey">(390539)</span></li>
<li>/team/group/bridge_construction/res/res_parking.c <span style="color: grey">(390539)</span></li>
</ul>
<p><a href="https://reviewboard.asterisk.org/r/2545/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>