<p>Kevin Harwell <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18678">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_calendar_icalendar: Send user agent in request.<br><br>Microsoft recently began rejecting all requests for<br>ICS calendars on Office 365 with 400 errors if<br>the request doesn't contain a user agent. See:<br><br>https://docs.microsoft.com/en-us/answers/questions/883904/34the-remote-server-returned-an-error-400-bad-requ.html<br><br>Accordingly, we now send a user agent on requests for<br>ICS files so that requests to Office 365 will work as<br>they did before.<br><br>ASTERISK-30106<br><br>Change-Id: Ie9dcaef12ae8adf37533c684499eb11005fac8f7<br>---<br>M res/res_calendar_icalendar.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_calendar_icalendar.c b/res/res_calendar_icalendar.c</span><br><span>index cab8cf6..29be671 100644</span><br><span>--- a/res/res_calendar_icalendar.c</span><br><span>+++ b/res/res_calendar_icalendar.c</span><br><span>@@ -465,6 +465,7 @@</span><br><span> pvt->session = ne_session_create(pvt->uri.scheme, pvt->uri.host, pvt->uri.port);</span><br><span> ne_redirect_register(pvt->session);</span><br><span> ne_set_server_auth(pvt->session, auth_credentials, pvt);</span><br><span style="color: hsl(120, 100%, 40%);">+ ne_set_useragent(pvt->session, "Asterisk");</span><br><span> if (!strcasecmp(pvt->uri.scheme, "https")) {</span><br><span> ne_ssl_trust_default_ca(pvt->session);</span><br><span> }</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18678">change 18678</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/+/18678"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Ie9dcaef12ae8adf37533c684499eb11005fac8f7 </div>
<div style="display:none"> Gerrit-Change-Number: 18678 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>