<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I made a little progress.<div><br></div><div><u>Python</u></div><div><div><font face="monospace, monospace">>>> import requests</font></div><div><font face="monospace, monospace">>>> phone = 'my phone IP here'</font></div><div><font face="monospace, monospace">>>> creds = ('my username', 'my password')</font></div><div><font face="monospace, monospace">>>> xml = {'XML': '<setRingTone><ringTone><a href="https://tftpserver.company.com:6972/NewRingtone.rwb">https://tftpserver.company.com:6972/NewRingtone.rwb</a></ringTone></setRingTone>'}</font></div><div><font face="monospace, monospace">>>> resp = requests.post('http://{}/CGI/Execute'.format(phone), auth=creds, data=xml)</font></div><div><font face="monospace, monospace">>>> resp</font></div><div><font face="monospace, monospace"><Response [200]></font></div><div><font face="monospace, monospace">>>> resp.text</font></div><div><font face="monospace, monospace">u'<?xml version="1.0" encoding="utf-8"?>\r\n<CiscoIPPhoneResponse>\r\n<ResponseItem URL="" Data="Success" Status="0" />\r\n</CiscoIPPhoneResponse>\r\n'</font></div></div><div><br></div><div>At first I got:</div><div><br></div><div><div><span style="font-family:monospace,monospace">>>> resp</span><br></div><div><div><font face="monospace, monospace"><Response [400]></font></div></div><div><span style="font-family:monospace,monospace">>>> resp.text</span></div><div><font face="monospace, monospace">u'<?xml version="1.0" encoding="utf-8"?>\r\n<errorResponse>\r\n<type> Unsupported Operation</type> \r\n<data> Personalization is disabled</data> \r\n</errorResponse>\r\n'</font></div></div><div><br></div><div>After I enabled that, I then got:</div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">>>> resp</span><br></div><div><div><div><font face="monospace, monospace"><Response [400]></font></div></div><div><span style="font-family:monospace,monospace">>>> resp.text</span></div><div><font face="monospace, monospace">u'<?xml version="1.0" encoding="utf-8"?>\r\n<errorResponse>\r\n<type> InvalidResource</type> \r\n<data> Ring Tone Too Large: <a href="https://tftpserver.company.com:6972/">https://tftpserver.company.com:6972/</a></font>
<span style="font-family:monospace,monospace">NewRingtone</span><font face="monospace, monospace">.rwb Size is 264828</data> \r\n</errorResponse>\r\n'</font></div></div><div><br></div><div>Then after I cut the ringtone in half, I got this:</div><div><br></div><div><div><br></div><div><div><div><font face="monospace, monospace">>>> resp</font></div><div><font face="monospace, monospace"><Response [400]></font></div></div></div><div><span style="font-family:monospace,monospace">>>> resp.text</span></div><div><font face="monospace, monospace">u'<?xml version="1.0" encoding="utf-8"?>\r\n<errorResponse>\r\n<type> InvalidResource</type> \r\n<data> Invalid Ring Tone: Number of Ring samples in the ring not evenly divisible by 240: <a href="https://tftpserver.company.com:6972/">https://tftpserver.company.com:6972/</a></font>
<span style="font-family:monospace,monospace">NewRingtone</span><font face="monospace, monospace">.rwb</data> \r\n</errorResponse>\r\n'</font></div></div><div><br></div><div>So, I used the following as a supplement to the previously linked site, so that I could figure out this 240 sample thing:</div><div><a href="https://www.netcraftsmen.com/uc-toolkit-using-audacity-for-cucm-ring-tones/">https://www.netcraftsmen.com/uc-toolkit-using-audacity-for-cucm-ring-tones/</a> </div><div><br></div><div>My phone (8851 on 12.5(1)SR2) still plays the default Sunrise ringtone, and I don't see where the new ringtone comes into play. Perhaps my successes will help you move the needle a little further?<br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 12:35 PM Brian Meade <<a href="mailto:bmeade90@vt.edu">bmeade90@vt.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I've got it working using the RingList-wb.xml globally, but still can't get it to work via API. It seems like SetRingTone was just never updated to allow for wideband ringtones.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 10:37 AM Anthony Holloway <<a href="mailto:avholloway%2Bcisco-voip@gmail.com" target="_blank">avholloway+cisco-voip@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Do you have it working now then?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 12:42 PM Brian Meade <<a href="mailto:bmeade90@vt.edu" target="_blank">bmeade90@vt.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">So I confirmed the sample rate should be 16000 Hz as well.<div><br></div><div>Then exported as Raw (headerless) Signed 16-bit PCM</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 1:25 PM Brian Meade <<a href="mailto:bmeade90@vt.edu" target="_blank">bmeade90@vt.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"> SetRingTone is a bit undocumented in any of the API guides similar to setBackground. They both work but RingTone may not have been updated to support wideband files.<br><div><br></div><div>I've got the ringtone on CUCM now as well using the file settings in that blog but it's playing too fast.</div><div><br></div><div>Anyone know if the sample rate needs to be changed from 8000 Hz or any other changes for wideband?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 1:12 PM Anthony Holloway <<a href="mailto:avholloway%2Bcisco-voip@gmail.com" target="_blank">avholloway+cisco-voip@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I've never heard of this before, but a quick google search turns up the following page with some detailed info. Have you already seen this info?<div><br></div><div><a href="http://usecallmanager.nz/ring-list-xml.html" target="_blank">http://usecallmanager.nz/ring-list-xml.html</a> </div><div><br></div><div>Interestingly, this information doesn't seem to be present in the normal Phone API guide. Is this hidden information, or just documented elsewhere?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 24, 2019 at 11:38 AM Brian Meade <<a href="mailto:bmeade90@vt.edu" target="_blank">bmeade90@vt.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Anyone had any luck using the IP Phone Services API to set a wideband ringtone? It doesn't seem to like the file size for me even though my files are smaller than the default wideband ringtones.<div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Brian Meade</div></div>
_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>