<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15248">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Sean Bright: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_pidf_digium_body_supplement: Support Sangoma user agent.<br><br>This adds support for both Digium and Sangoma user agent strings<br>for the Sangoma specific body supplement.<br><br>Change-Id: Ib99362b24b91d3cbe888d8b2fce3fad5515d9482<br>---<br>M res/res_pjsip_pidf_digium_body_supplement.c<br>1 file changed, 5 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_pidf_digium_body_supplement.c b/res/res_pjsip_pidf_digium_body_supplement.c</span><br><span>index 832f423..4150340 100644</span><br><span>--- a/res/res_pjsip_pidf_digium_body_supplement.c</span><br><span>+++ b/res/res_pjsip_pidf_digium_body_supplement.c</span><br><span>@@ -42,9 +42,11 @@</span><br><span> pj_xml_node *node;</span><br><span> char sanitized[1024];</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* The res_pjsip_exten_state module converts the user agent to lower case */</span><br><span> if (ast_strlen_zero(state_data->user_agent) ||</span><br><span style="color: hsl(0, 100%, 40%);">- !strstr(state_data->user_agent, "digium")) {</span><br><span style="color: hsl(0, 100%, 40%);">- /* not a digium phone */</span><br><span style="color: hsl(120, 100%, 40%);">+ (!strstr(state_data->user_agent, "digium") &&</span><br><span style="color: hsl(120, 100%, 40%);">+ !strstr(state_data->user_agent, "sangoma"))) {</span><br><span style="color: hsl(120, 100%, 40%);">+ /* not a Sangoma phone */</span><br><span> return 0;</span><br><span> }</span><br><span> </span><br><span>@@ -107,7 +109,7 @@</span><br><span> return 0;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "PJSIP PIDF Digium presence supplement",</span><br><span style="color: hsl(120, 100%, 40%);">+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "PJSIP PIDF Sangoma presence supplement",</span><br><span> .support_level = AST_MODULE_SUPPORT_CORE,</span><br><span> .load = load_module,</span><br><span> .unload = unload_module,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15248">change 15248</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/+/15248"/><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: Ib99362b24b91d3cbe888d8b2fce3fad5515d9482 </div>
<div style="display:none"> Gerrit-Change-Number: 15248 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>