<p>Alexei Gradinari has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10286">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_dial: 'I' option to block all connected line updates in both directions<br><br>The 'I' option currently blocks CONNECTEDLINE or REDIRECTING updates<br>from the called parties to the caller and only before a call is answered.<br><br>This patch also blocks updates in the other direction before call is<br>answered and blocks CONNECTEDLINE updates in both directions after<br>the call is answered.<br><br>Change-Id: I6ce9e151a2220ce9e95aa66666933cfb9e2a4a01<br>---<br>M apps/app_dial.c<br>1 file changed, 13 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/86/10286/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_dial.c b/apps/app_dial.c</span><br><span>index 855945b..72cf8ec 100644</span><br><span>--- a/apps/app_dial.c</span><br><span>+++ b/apps/app_dial.c</span><br><span>@@ -1329,7 +1329,7 @@</span><br><span>                                         ast_frfree(f);</span><br><span>                               }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-                           if (o->pending_connected_update) {</span><br><span style="color: hsl(120, 100%, 40%);">+                         if (o->pending_connected_update && !ast_test_flag64(o, OPT_IGNORE_CONNECTEDLINE)) {</span><br><span>                                       /*</span><br><span>                                    * Re-seed the chanlist's connected line information with</span><br><span>                                         * previously acquired connected line info from the incoming</span><br><span>@@ -1754,12 +1754,20 @@</span><br><span>                                               ast_indicate(o->chan, f->subclass.integer);</span><br><span>                                            break;</span><br><span>                                       case AST_CONTROL_CONNECTED_LINE:</span><br><span style="color: hsl(120, 100%, 40%);">+                                              if (ast_test_flag64(o, OPT_IGNORE_CONNECTEDLINE)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                                   ast_verb(3, "Connected line update to %s prevented.\n", ast_channel_name(o->chan));</span><br><span style="color: hsl(120, 100%, 40%);">+                                                      break;</span><br><span style="color: hsl(120, 100%, 40%);">+                                                }</span><br><span>                                            if (ast_channel_connected_line_sub(in, o->chan, f, 1) &&</span><br><span>                                                  ast_channel_connected_line_macro(in, o->chan, f, 0, 1)) {</span><br><span>                                                         ast_indicate_data(o->chan, f->subclass.integer, f->data.ptr, f->datalen);</span><br><span>                                                }</span><br><span>                                            break;</span><br><span>                                       case AST_CONTROL_REDIRECTING:</span><br><span style="color: hsl(120, 100%, 40%);">+                                         if (ast_test_flag64(o, OPT_IGNORE_CONNECTEDLINE)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                                   ast_verb(3, "Redirecting update to %s prevented.\n", ast_channel_name(o->chan));</span><br><span style="color: hsl(120, 100%, 40%);">+                                                 break;</span><br><span style="color: hsl(120, 100%, 40%);">+                                                }</span><br><span>                                            if (ast_channel_redirecting_sub(in, o->chan, f, 1) &&</span><br><span>                                                     ast_channel_redirecting_macro(in, o->chan, f, 0, 1)) {</span><br><span>                                                    ast_indicate_data(o->chan, f->subclass.integer, f->data.ptr, f->datalen);</span><br><span>@@ -2917,6 +2925,10 @@</span><br><span>                                                       } else {</span><br><span>                                                             other_chan = chan;</span><br><span>                                                   }</span><br><span style="color: hsl(120, 100%, 40%);">+                                                     if (ast_test_flag64(&opts, OPT_IGNORE_CONNECTEDLINE)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                                           ast_verb(3, "Connected line update to %s prevented.\n", ast_channel_name(other_chan));</span><br><span style="color: hsl(120, 100%, 40%);">+                                                              break;</span><br><span style="color: hsl(120, 100%, 40%);">+                                                        }</span><br><span>                                                    if (ast_channel_connected_line_sub(active_chan, other_chan, fr, 1)</span><br><span>                                                           && ast_channel_connected_line_macro(active_chan,</span><br><span>                                                                     other_chan, fr, other_chan == chan, 1)) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10286">change 10286</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/10286"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I6ce9e151a2220ce9e95aa66666933cfb9e2a4a01 </div>
<div style="display:none"> Gerrit-Change-Number: 10286 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>