<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19326">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_bridgewait: Add option to not answer channel.<br><br>Adds the n option to not answer the channel when calling<br>BridgeWait, so the application can be used without<br>forcing answer supervision.<br><br>ASTERISK-30216 #close<br><br>Change-Id: I6b85ef300b1f7b5170f8537e2b10889cc2e6605a<br>---<br>M apps/app_bridgewait.c<br>A doc/CHANGES-staging/app_bridgewait.txt<br>2 files changed, 26 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/19326/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_bridgewait.c b/apps/app_bridgewait.c</span><br><span>index 9326ed1..86a4f7b 100644</span><br><span>--- a/apps/app_bridgewait.c</span><br><span>+++ b/apps/app_bridgewait.c</span><br><span>@@ -100,6 +100,9 @@</span><br><span> <para>Automatically exit the bridge and return to the PBX after</span><br><span> <emphasis>duration</emphasis> seconds.</para></span><br><span> </option></span><br><span style="color: hsl(120, 100%, 40%);">+ <option name="n"></span><br><span style="color: hsl(120, 100%, 40%);">+ <para>Do not automatically answer the channel.</para></span><br><span style="color: hsl(120, 100%, 40%);">+ </option></span><br><span> </optionlist></span><br><span> </parameter></span><br><span> </syntax></span><br><span>@@ -108,7 +111,7 @@</span><br><span> The channel will then wait in the holding bridge until some event occurs</span><br><span> which removes it from the holding bridge.</para></span><br><span> <note><para>This application will answer calls which haven't already</span><br><span style="color: hsl(0, 100%, 40%);">- been answered.</para></note></span><br><span style="color: hsl(120, 100%, 40%);">+ been answered, unless the n option is provided.</para></note></span><br><span> </description></span><br><span> </application></span><br><span> ***/</span><br><span>@@ -186,6 +189,7 @@</span><br><span> MUXFLAG_MOHCLASS = (1 << 0),</span><br><span> MUXFLAG_ENTERTAINMENT = (1 << 1),</span><br><span> MUXFLAG_TIMEOUT = (1 << 2),</span><br><span style="color: hsl(120, 100%, 40%);">+ MUXFLAG_NOANSWER = (1 << 3),</span><br><span> };</span><br><span> </span><br><span> enum bridgewait_args {</span><br><span>@@ -199,6 +203,7 @@</span><br><span> AST_APP_OPTION_ARG('e', MUXFLAG_ENTERTAINMENT, OPT_ARG_ENTERTAINMENT),</span><br><span> AST_APP_OPTION_ARG('m', MUXFLAG_MOHCLASS, OPT_ARG_MOHCLASS),</span><br><span> AST_APP_OPTION_ARG('S', MUXFLAG_TIMEOUT, OPT_ARG_TIMEOUT),</span><br><span style="color: hsl(120, 100%, 40%);">+ AST_APP_OPTION('n', MUXFLAG_NOANSWER),</span><br><span> });</span><br><span> </span><br><span> static int bridgewait_timeout_callback(struct ast_bridge_channel *bridge_channel, void *hook_pvt)</span><br><span>@@ -458,7 +463,7 @@</span><br><span> }</span><br><span> </span><br><span> /* Answer the channel if needed */</span><br><span style="color: hsl(0, 100%, 40%);">- if (ast_channel_state(chan) != AST_STATE_UP) {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (ast_channel_state(chan) != AST_STATE_UP && !ast_test_flag(&flags, MUXFLAG_NOANSWER)) {</span><br><span> ast_answer(chan);</span><br><span> }</span><br><span> </span><br><span>diff --git a/doc/CHANGES-staging/app_bridgewait.txt b/doc/CHANGES-staging/app_bridgewait.txt</span><br><span>new file mode 100644</span><br><span>index 0000000..aa2e00b</span><br><span>--- /dev/null</span><br><span>+++ b/doc/CHANGES-staging/app_bridgewait.txt</span><br><span>@@ -0,0 +1,4 @@</span><br><span style="color: hsl(120, 100%, 40%);">+Subject: app_bridgewait</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Adds the n option to not answer the channel when</span><br><span style="color: hsl(120, 100%, 40%);">+the BridgeWait application is called.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19326">change 19326</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/19326"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: I6b85ef300b1f7b5170f8537e2b10889cc2e6605a </div>
<div style="display:none"> Gerrit-Change-Number: 19326 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>