-
btracht
BadRequest: i am looking to use a media file (mp3, wav, etc.) instead of tts for conference greeting
-
BadRequest
btracht: I assume you are using the conference callflow's action for routing calls to the conference. If so, you may try setting the "welcome_prompt.media_id" to the id of your desired media file in Kazoo or a URL to a media file stored somewhere else in a webserver.
docs.2600hz.com/supported/applications/callflow/doc/conference
-
BadRequest
You need to change this within the callflow that routes to your conference.
-
btracht
BadRequest: i am using the main conference in smart pbx (conference service)
-
BadRequest
btracht: I see 3 options there for the main conference number: 1) Existing media. 2) New/upload media. 3) TTS.
-
BadRequest
-
btracht
-
BadRequest
Then, find the callflow_id for the main conference and modify it manually. Something like "GET /callflows/?filter_name=MainConference" (there should be only 1 callflow in the response), grab the "id" from that response and the PATCH it like: PATCH /callflows/{CALLFLOW_ID} -d '{"data": {"flow": {"data": {"welcome_prompt": {"media_id": "{MEDIA_ID_OR_URL}"}}}}}'
-
BadRequest
Create a backup of the callflow, just in case you need to restore it.
-
BadRequest
I think it will also be automatically re-created if you delete it, but better to make sure :)
-
btracht
the PATCH plays the custom greeting then the original/default one as well
-
btracht
what would cause me to not have all 3 options in smart pbx
-
BadRequest
btracht: My fault, I am running a custom version of SmartPBX.
-
btracht
BadRequest: whats your api request to use media file?
-
BadRequest
I am sorry, it is a custom implementation from someone else, so I cannot give you that information. The information I gave you before should be enough for you to configure the media you want.
-
BadRequest
Main conference is just a callflow.
-
btracht
the main conference is a callflow that points to the 'conference service' which has a default greeting. adding the welcome_prompt.media_id does not replace the default greeting just plays the defined media id first then still plays the default
-
btracht
is there a way to define the default conf_welcome prompt
-
BadRequest
btracht: I think you need to disable the welcome prompt from the conference itself.
-
BadRequest
Something like: PATCH /callflows/{CONFERENCE_ID} -d '{"data": {"play_welcome": false}}'
-
BadRequest
-
btracht
tried that. doesn't change anything
-
BadRequest
Although, according to the following, it should not play the default "welcome_prompt" if you define the "welcome_prompt.media_id" within the callflow because it will be collected as "Play-Welcome-Media" and if defined, it will be played, otherwise, it will play default prompt.
-
BadRequest
-
btracht
apparently mine not working the way it's supposed to
-
btracht
in media api there is a data field "is_prompt": false but i can't figure out to change
-
btracht
i was able to upload a file with "is_prompt": true via api. shows in account prompt db but still not working
-
btracht
so now my question is if there is an account defined prompt, why is it not overriding the system prompt?
-
BadRequest
Prompt override, if I recall correctly, is disabled by default for performance purposes.
-
BadRequest
Also, prompt /= media. At least in Kazoo.
-
BadRequest
If I recall correctly, in some places they interchangeable, which means you can set a prompt or a media_id as the value for the same field, but in most places, you can only set one or the other, depending on the Kazoo entity you are dealing with.
-
btracht
is there any way to manually override the system prompts in account?
-
BadRequest
I guess you can create a .wav file and then import it via: "sup kazoo_media_maintenance import_prompt {PATH_TO_WAV_FILE}". If you are using a different language than the default "en-us", you need to pass it as the last argument of that command (without quotes).
-
BadRequest
I think you can find the original file within "/opt/kazoo/sounds/en/us/" folder in case you want to restore it. If not, you can find it within 2600hz/kazoo-sounds repository.