{"action":"created","comment":{"url":"https://api.github.com/repos/2600hz/kazoo/pulls/comments/24839138","id":24839138,"diff_hunk":"@@ -362,7 +362,10 @@ get_map(?WH_MEDIA_DB = Db, PromptId) ->\n             #media_map{id=MapId\n                        ,account_id=Db\n                        ,prompt_id=PromptId\n-                       ,languages=wh_json:new()\n+                       ,languages=wh_json:set_value(wh_media_util:default_prompt_language()\n+                                                    ,<<\"/\", ?WH_MEDIA_DB/binary, \"/\", (wh_media_util:default_prompt_language())/binary, \"%2F\", PromptId/binary>>","path":"core/whistle_media-1.0.0/src/wh_media_map.erl","position":6,"original_position":6,"commit_id":"c819d6bf893a226e1c99dab6dd984ee3fe017db9","original_commit_id":"c819d6bf893a226e1c99dab6dd984ee3fe017db9","user":{"login":"jamesaimonetti","id":160921,"avatar_url":"https://avatars.githubusercontent.com/u/160921?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesaimonetti","html_url":"https://github.com/jamesaimonetti","followers_url":"https://api.github.com/users/jamesaimonetti/followers","following_url":"https://api.github.com/users/jamesaimonetti/following{/other_user}","gists_url":"https://api.github.com/users/jamesaimonetti/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesaimonetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesaimonetti/subscriptions","organizations_url":"https://api.github.com/users/jamesaimonetti/orgs","repos_url":"https://api.github.com/users/jamesaimonetti/repos","events_url":"https://api.github.com/users/jamesaimonetti/events{/privacy}","received_events_url":"https://api.github.com/users/jamesaimonetti/received_events","type":"User","site_admin":false},"body":"This is expected from the prompt_path function. Can you try `wh_media_util:get_prompt(<<\"vm-saved\">>).`? On mine I get `<<\"prompt://system_media/vm-saved/en-us\">>` which is the Kazoo-encoded prompt path.\r\n\r\nFor testing what media_mgr should return to ecallmgr, you can use:\r\n\r\n```erlang\r\nmedia_mgr_maintenance:prompt_url(<<\"vm-saved\">>).\r\nmedia_mgr_maintenance:prompt_url(<<\"vm-saved\">>, <<\"{ACCOUNT_ID}\">>).\r\nmedia_mgr_maintenance:prompt_url(<<\"vm-saved\">>, <<\"{ACCOUNT_ID}\">>, <<\"la-ng\">>).\r\n```\r\nI'll do a diff between 3.18 and master for the media_mgr app and the whistle_media core lib and see if there's an obvious difference that could account for the different results you and I are seeing.","created_at":"2015-02-17T18:21:55Z","updated_at":"2015-02-17T18:21:55Z","html_url":"https://github.com/2600hz/kazoo/pull/782#discussion_r24839138","pull_request_url":"https://api.github.com/repos/2600hz/kazoo/pulls/782","_links":{"self":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/comments/24839138"},"html":{"href":"https://github.com/2600hz/kazoo/pull/782#discussion_r24839138"},"pull_request":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/782"}}},"pull_request":{"url":"https://api.github.com/repos/2600hz/kazoo/pulls/782","id":29337442,"html_url":"https://github.com/2600hz/kazoo/pull/782","diff_url":"https://github.com/2600hz/kazoo/pull/782.diff","patch_url":"https://github.com/2600hz/kazoo/pull/782.patch","issue_url":"https://api.github.com/repos/2600hz/kazoo/issues/782","number":782,"state":"open","locked":false,"title":"KAZOO-3334 - [ERR] switch_core_file.c:149 Invalid file format [prompt]","user":{"login":"onnet","id":2908577,"avatar_url":"https://avatars.githubusercontent.com/u/2908577?v=3","gravatar_id":"","url":"https://api.github.com/users/onnet","html_url":"https://github.com/onnet","followers_url":"https://api.github.com/users/onnet/followers","following_url":"https://api.github.com/users/onnet/following{/other_user}","gists_url":"https://api.github.com/users/onnet/gists{/gist_id}","starred_url":"https://api.github.com/users/onnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onnet/subscriptions","organizations_url":"https://api.github.com/users/onnet/orgs","repos_url":"https://api.github.com/users/onnet/repos","events_url":"https://api.github.com/users/onnet/events{/privacy}","received_events_url":"https://api.github.com/users/onnet/received_events","type":"User","site_admin":false},"body":"Looks like default prompts are acceptable only if they reside in cache.\r\nThis is what solved this problem to me.\r\nPlease take a look if it could be helpfull.\r\nSorry if it is just a problem of my local misconfuguration.\r\n\r\nRegards,\r\nKirill ","created_at":"2015-02-15T17:04:18Z","updated_at":"2015-02-17T18:21:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28904af6d7bff102c0253f964b10bb7aaa553c73","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/2600hz/kazoo/pulls/782/commits","review_comments_url":"https://api.github.com/repos/2600hz/kazoo/pulls/782/comments","review_comment_url":"https://api.github.com/repos/2600hz/kazoo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/2600hz/kazoo/issues/782/comments","statuses_url":"https://api.github.com/repos/2600hz/kazoo/statuses/c819d6bf893a226e1c99dab6dd984ee3fe017db9","head":{"label":"onnet:KAZOO-3334","ref":"KAZOO-3334","sha":"c819d6bf893a226e1c99dab6dd984ee3fe017db9","user":{"login":"onnet","id":2908577,"avatar_url":"https://avatars.githubusercontent.com/u/2908577?v=3","gravatar_id":"","url":"https://api.github.com/users/onnet","html_url":"https://github.com/onnet","followers_url":"https://api.github.com/users/onnet/followers","following_url":"https://api.github.com/users/onnet/following{/other_user}","gists_url":"https://api.github.com/users/onnet/gists{/gist_id}","starred_url":"https://api.github.com/users/onnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onnet/subscriptions","organizations_url":"https://api.github.com/users/onnet/orgs","repos_url":"https://api.github.com/users/onnet/repos","events_url":"https://api.github.com/users/onnet/events{/privacy}","received_events_url":"https://api.github.com/users/onnet/received_events","type":"User","site_admin":false},"repo":{"id":30833967,"name":"kazoo","full_name":"onnet/kazoo","owner":{"login":"onnet","id":2908577,"avatar_url":"https://avatars.githubusercontent.com/u/2908577?v=3","gravatar_id":"","url":"https://api.github.com/users/onnet","html_url":"https://github.com/onnet","followers_url":"https://api.github.com/users/onnet/followers","following_url":"https://api.github.com/users/onnet/following{/other_user}","gists_url":"https://api.github.com/users/onnet/gists{/gist_id}","starred_url":"https://api.github.com/users/onnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onnet/subscriptions","organizations_url":"https://api.github.com/users/onnet/orgs","repos_url":"https://api.github.com/users/onnet/repos","events_url":"https://api.github.com/users/onnet/events{/privacy}","received_events_url":"https://api.github.com/users/onnet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/onnet/kazoo","description":"","fork":true,"url":"https://api.github.com/repos/onnet/kazoo","forks_url":"https://api.github.com/repos/onnet/kazoo/forks","keys_url":"https://api.github.com/repos/onnet/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onnet/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onnet/kazoo/teams","hooks_url":"https://api.github.com/repos/onnet/kazoo/hooks","issue_events_url":"https://api.github.com/repos/onnet/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/onnet/kazoo/events","assignees_url":"https://api.github.com/repos/onnet/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/onnet/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/onnet/kazoo/tags","blobs_url":"https://api.github.com/repos/onnet/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onnet/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onnet/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/onnet/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onnet/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/onnet/kazoo/languages","stargazers_url":"https://api.github.com/repos/onnet/kazoo/stargazers","contributors_url":"https://api.github.com/repos/onnet/kazoo/contributors","subscribers_url":"https://api.github.com/repos/onnet/kazoo/subscribers","subscription_url":"https://api.github.com/repos/onnet/kazoo/subscription","commits_url":"https://api.github.com/repos/onnet/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/onnet/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/onnet/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/onnet/kazoo/issues/comments/{number}","contents_url":"https://api.github.com/repos/onnet/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/onnet/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onnet/kazoo/merges","archive_url":"https://api.github.com/repos/onnet/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onnet/kazoo/downloads","issues_url":"https://api.github.com/repos/onnet/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/onnet/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/onnet/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/onnet/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onnet/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/onnet/kazoo/releases{/id}","created_at":"2015-02-15T16:54:15Z","updated_at":"2015-02-15T16:54:20Z","pushed_at":"2015-02-15T17:00:17Z","git_url":"git://github.com/onnet/kazoo.git","ssh_url":"git@github.com:onnet/kazoo.git","clone_url":"https://github.com/onnet/kazoo.git","svn_url":"https://github.com/onnet/kazoo","homepage":"","size":468579,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"2600hz:master","ref":"master","sha":"f114d7e9eccaad5075ffc78bbb7312976f9300c8","user":{"login":"2600hz","id":408801,"avatar_url":"https://avatars.githubusercontent.com/u/408801?v=3","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"repo":{"id":2966241,"name":"kazoo","full_name":"2600hz/kazoo","owner":{"login":"2600hz","id":408801,"avatar_url":"https://avatars.githubusercontent.com/u/408801?v=3","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2600hz/kazoo","description":"","fork":false,"url":"https://api.github.com/repos/2600hz/kazoo","forks_url":"https://api.github.com/repos/2600hz/kazoo/forks","keys_url":"https://api.github.com/repos/2600hz/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2600hz/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2600hz/kazoo/teams","hooks_url":"https://api.github.com/repos/2600hz/kazoo/hooks","issue_events_url":"https://api.github.com/repos/2600hz/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/2600hz/kazoo/events","assignees_url":"https://api.github.com/repos/2600hz/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/2600hz/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/2600hz/kazoo/tags","blobs_url":"https://api.github.com/repos/2600hz/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2600hz/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2600hz/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/2600hz/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2600hz/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/2600hz/kazoo/languages","stargazers_url":"https://api.github.com/repos/2600hz/kazoo/stargazers","contributors_url":"https://api.github.com/repos/2600hz/kazoo/contributors","subscribers_url":"https://api.github.com/repos/2600hz/kazoo/subscribers","subscription_url":"https://api.github.com/repos/2600hz/kazoo/subscription","commits_url":"https://api.github.com/repos/2600hz/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/2600hz/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/2600hz/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/2600hz/kazoo/issues/comments/{number}","contents_url":"https://api.github.com/repos/2600hz/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/2600hz/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2600hz/kazoo/merges","archive_url":"https://api.github.com/repos/2600hz/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2600hz/kazoo/downloads","issues_url":"https://api.github.com/repos/2600hz/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/2600hz/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/2600hz/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/2600hz/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2600hz/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/2600hz/kazoo/releases{/id}","created_at":"2011-12-12T18:08:02Z","updated_at":"2015-02-16T14:25:14Z","pushed_at":"2015-02-17T18:11:08Z","git_url":"git://github.com/2600hz/kazoo.git","ssh_url":"git@github.com:2600hz/kazoo.git","clone_url":"https://github.com/2600hz/kazoo.git","svn_url":"https://github.com/2600hz/kazoo","homepage":"","size":468579,"stargazers_count":236,"watchers_count":236,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":122,"mirror_url":null,"open_issues_count":11,"forks":122,"open_issues":11,"watchers":236,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/782"},"html":{"href":"https://github.com/2600hz/kazoo/pull/782"},"issue":{"href":"https://api.github.com/repos/2600hz/kazoo/issues/782"},"comments":{"href":"https://api.github.com/repos/2600hz/kazoo/issues/782/comments"},"review_comments":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/782/comments"},"review_comment":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/782/commits"},"statuses":{"href":"https://api.github.com/repos/2600hz/kazoo/statuses/c819d6bf893a226e1c99dab6dd984ee3fe017db9"}}}}