<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/4085/">https://reviewboard.asterisk.org/r/4085/</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, Matt Jordan and Mark Michelson.</div>
<div>By Jonathan Rose.</div>
<p style="color: grey;"><i>Updated Oct. 16, 2014, 2:06 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;">Updated to respond to mmichelson's findings. Hopefully this is adequate.
*CLI> manager show event ExtensionStatus
Event: ExtensionStatus
[Synopsis]
Raised when a hint changes due to a device state change.
[Syntax]
Event: ExtensionStatus
Exten: <value>
Context: <value>
Hint: <value>
Status: <value>
StatusText: <value>
[Arguments]
Exten
Name of the extension.
Context
Context that owns the extension.
Hint
Hint set for the extension
Status
Numerical value of the extension status. Extension status is
determined by the combined device state of all items contained in the
hint.
-2 - The extension was removed from the dialplan.
-1 - The extension's hint was removed from the dialplan.
0 - 'Idle' - Related device(s) are in an idle state.
1 - 'InUse' - Related device(s) are in active calls but may take
more calls.
2 - 'Busy' - Related device(s) are in active calls and may not take
any more calls.
4 - 'Unavailable' - Related device(s) are not reachable.
8 - 'Ringing' - Related device(s) are currently ringing.
9 - 'InUse&Ringing' - Related device(s) are currently ringing and
in active calls.
16 - 'Hold' - Related device(s) are currently on hold.
17 - 'InUse&Hold' - Related device(s) are currently on hold and in
active calls.
StatusText
Text representation of 'Status'.
Idle
InUse
Busy
Unavailable
Ringing
InUse&Ringing
Hold
InUse&Hold
Unknown - Status does not match any of the above values.
</pre>
</td>
</tr>
</table>
<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;">Some internals developers pointed out that this event was poorly documented, particularly when it comes to Status and StatusText which really need to be explained in order to be useful.</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 the output of
> manager show event ExtensionStatus
Exten
Name of the extension.
Context
Context that owns the extension.
Hint
Devices mapped to the extension which determine the extension status
Status
Numerical data indicating the status of the extension based on its
devices. Negative values indicate that the extension was removed (-2)
or deactivated (-1). Zero indicates that the extension is idle. Positive
values work as bitflags and may combine to indicate different things.
For example 1 would mean inuse, 2 would mean busy, and the two can add
together additively into 3 to mean that a line is both inuse and busy.
Each of the major classifications is a power of two and they can
potentailly be added in any combination.
-2 - Removed - The extension was removed. Not additive.
-1 - Deactivated - The extension's hit was removed. Not additive.
0 - Idle - No device INUSE or BUSY. Not additive.
1 - In Use - one or more devices INUSE. Additive.
2 - Busy - All devices are BUSY. Additive.
4 - Unavailable - All devices are UNAVAILABLE and/or UNREGISTERED.
Additive.
8 - Ringing - All devices are RINGING. Additive.
16 - Onhold - All devices are ONHOLD. Additive.
StatusText
Human readable representation of the status. The options are also
more strictly defined and may only be one thing from the following
enumerator.
Idle - No device INUSE or BUSY.
InUse - One or more devices are INUSE.
Busy - All devices are BUSY.
Unavailable - All devices are UNAVAILABLE and/or UNREGISTERED
Ringing - All devices are RINGING
InUse&Ringing - All devices are RINGING and one or more devices are
INUSE
Hold - All devices are ONHOLD.
InUse&Hold - All devices are ONHOLD and one or more devices are INUSE
Unknown - None of the above descriptions matched the status
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>/branches/13/main/manager.c <span style="color: grey">(425546)</span></li>
</ul>
<p><a href="https://reviewboard.asterisk.org/r/4085/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>