Josh Robbins Posted November 15, 2017 Report Posted November 15, 2017 Does anyone know how to share media files for use in menus between parent and child accounts? I can do this via the API with hold music no problem using xxxxx/yyyyy where xxxx is the parent account ID and yyyy is the id of the media file in the parent account, however it doesn't work when trying to do this in a menu using the "greeting". The system doesn't accept more than 64 characters. The use case is I have a customer with 200 locations, each with a sub account. They all need to share the main greeting for their auto attendant and I don't want to upload it 250 times...I want to reference the media ID of the file stored in the parent account.
Administrators mc_ Posted November 15, 2017 Administrators Report Posted November 15, 2017 Try referencing the media as "/RESELLER_ACCOUNT_ID/RESELLER_MEDIA_ID".
FASTDEVICE Posted November 16, 2017 Report Posted November 16, 2017 Ahh, this is good to know. We have a similar situation and have been uploading individually to each account. Thanks.
Rick Guyton Posted November 16, 2017 Report Posted November 16, 2017 Awesome, thanks for that info @mc_! We have a media file we need to use with our sub-accounts frequently. This will be a great help. We've been uploading and uploading...
Josh Robbins Posted November 16, 2017 Author Report Posted November 16, 2017 yeah - that works fine for hold music in the account document, but doesn't work in the call flow menu item since the limit is 64 characters and the IDs are looooong.
Administrators mc_ Posted November 17, 2017 Administrators Report Posted November 17, 2017 @Josh Robbins Ah, we can relax the schema to be 128 chars instead. I'll get a PR up today for that. If you're running your own system, you can edit the 'system_schemas / menus' document. Look under the "media" object for maxLength and change it to 128 (although, since technically you can put URLs there but of course RFC 2616 and 7230 say there's no defined limit - it is server-dependent - so...pick a value. It seems like 2048 is probably "big enough").
Josh Robbins Posted November 17, 2017 Author Report Posted November 17, 2017 I’m on the hosted platform. What’s a PR? Do you have the magic needed to do this on the hosted platform?
Administrators mc_ Posted November 17, 2017 Administrators Report Posted November 17, 2017 @Josh Robbins sorry! PR is a pull request - when a developer wants to change something in Kazoo, they issue a PR to be reviewed by the team then merged into the project. I'll issue a PR to change the schema, get a team member to review, and then the next upgrade of the platform will change the schema's restriction. So it will be delayed a bit from being realized on the hosted platform but will make its way there eventually. Does that clarify things?
Josh Robbins Posted November 17, 2017 Author Report Posted November 17, 2017 Yes makes sense. Thanks! How can I track this to know when it will be pushed to the hosted platform?
Josh Robbins Posted November 1, 2018 Author Report Posted November 1, 2018 OK - it's a year later and I'm still trying to solve this problem. It seems the schema has been relaxed and I can now update the media ID in the menu to reference the parent/media_id format. Unfortunately all I get is dead air...but the menu functions (the caller can enter digits). Is there something preventing the media from streaming?
Recommended Posts