<p>Trevor Peirce has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18636">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Actually enable session timers when timers=always<br><br>When a pjsip endpoint is defined with timers=always, this has been a<br>functional noop.  This patch correctly sets the feature bitmap to both<br>enable support for session timers and to enable them even when the<br>endpoint itself does not request or support timers.<br><br>ASTERISK-29603<br>Reported-By: Ray Crumrine<br><br>Change-Id: I8b5eeaa9ec7f50cc6d96dd34c2b4aa9c53fb5440<br>---<br>M res/res_pjsip/pjsip_configuration.c<br>1 file changed, 1 insertion(+), 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/36/18636/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c</span><br><span>index 39c3dab..ace68d2 100644</span><br><span>--- a/res/res_pjsip/pjsip_configuration.c</span><br><span>+++ b/res/res_pjsip/pjsip_configuration.c</span><br><span>@@ -220,7 +220,7 @@</span><br><span>      } else if (!strcasecmp(var->value, "required")) {</span><br><span>               endpoint->extensions.flags |= PJSIP_INV_REQUIRE_TIMER;</span><br><span>    } else if (!strcasecmp(var->value, "always") || !strcasecmp(var->value, "forced")) {</span><br><span style="color: hsl(0, 100%, 40%);">-          endpoint->extensions.flags |= PJSIP_INV_ALWAYS_USE_TIMER;</span><br><span style="color: hsl(120, 100%, 40%);">+          endpoint->extensions.flags |= (PJSIP_INV_SUPPORT_TIMER | PJSIP_INV_ALWAYS_USE_TIMER);</span><br><span>     } else if (!ast_false(var->value)) {</span><br><span>              return -1;</span><br><span>   }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18636">change 18636</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/+/18636"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I8b5eeaa9ec7f50cc6d96dd34c2b4aa9c53fb5440 </div>
<div style="display:none"> Gerrit-Change-Number: 18636 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Trevor Peirce <trev@acrovoice.ca> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>