HI, have managed to pull some logs of a couple of things I have tried so far.
For reference, the IDs relate as follows:
ac1544069b777dc7df4eaa3e244dfa53 - master account
ca22586acf157026711a369233f6d2c1 - sub account
141c0020c0642bbccdaeba00c28c8179 - media ID under the master account
Proof the media exists in the correct place
GET /v2/accounts/ac1544069b777dc7df4eaa3e244dfa53/media
{
"page_size": 1,
"data": [
{
"id": "141c0020c0642bbccdaeba00c28c8179",
"name": "Inspirational Ideas",
"media_source": "upload",
"language": "en-us",
"is_prompt": false
}
],
"status": "success"
}
Menu Referencing
GET /v2/accounts/ca22586acf157026711a369233f6d2c1/menus/76df8ec523c8a9b30665557e4cbb1805
{
"data": {
"name": "Test menu 2",
"record_pin": "1234",
"retries": 3,
"suppress_media": false,
"timeout": 10000,
"interdigit_timeout": 2000,
"max_extension_length": 4,
"allow_record_from_offnet": true,
"hunt": true,
"media": {
"exit_media": true,
"greeting": "ac1544069b777dc7df4eaa3e244dfa53/141c0020c0642bbccdaeba00c28c8179",
"invalid_media": true,
"transfer_media": true
},
"id": "76df8ec523c8a9b30665557e4cbb1805"
},
"status": "success"
}
Logs when calling the menu
2019-08-05T09:44:43.161906+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_media_url:48(<0.23547.94>) lookup media url for /account%2Fca%2F22%2F5
86acf157026711a369233f6d2c1/ac1544069b777dc7df4eaa3e244dfa53/141c0020c0642bbccdaeba00c28c8179
2019-08-05T09:44:43.162730+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:243(<0.23547.94>) raw account id doesn't process '<<"ca/22/586acf157026711a369233f6d2c1">>'
2019-08-05T09:44:43.163552+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_media_file:68(<0.23547.94>) fetching attachment url for '<<"account%2Fca%2F/2%2F2/586acf157026711a369233f6d2c1">>' , '<<"ac1544069b777dc7df4eaa3e244dfa53">>', '<<"141c0020c0642bbccdaeba00c28c8179">>'
2019-08-05T09:44:43.164372+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kzs_util:83(<0.23547.94>) unknown type for database account%2Fca%2F/2%2F2/586acf157026711a369233f6d2c1
2019-08-05T09:44:43.165147+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:114(<0.23547.94>) stacktrace:
2019-08-05T09:44:43.178058+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:121(<0.23547.94>) st: kzs_util:db_classification/1 at (84)
2019-08-05T09:44:43.195081+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:121(<0.23547.94>) st: kzs_plan:get_dataplan/1 at (68)
2019-08-05T09:44:43.212294+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:121(<0.23547.94>) st: kzs_plan:plan/2 at (45)
2019-08-05T09:44:43.229812+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:121(<0.23547.94>) st: kz_datamgr:attachment_url/4 at (1095)
2019-08-05T09:44:43.247122+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:121(<0.23547.94>) st: kz_media_file:maybe_proxy/2 at (70)
2019-08-05T09:44:43.264174+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_util:121(<0.23547.94>) st: media_listener:handle_media_req/2 at (55)
2019-08-05T09:44:43.281600+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_media_file:72(<0.23547.94>) no attachment URL found
2019-08-05T09:44:43.282307+01:00 kazoo-dev-1 2600hz[394]: |1b7b3066-3200-1238-4c8e-0242ac110004|media_listener:147(<0.23547.94>) media stream URL:
2019-08-05T09:44:45.158544+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_amqp_worker:898(<0.489.0>) req timeout for call_collect
2019-08-05T09:44:45.159424+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_util:1303(<0.153.51>) timeout when getting media url from amqp
2019-08-05T09:44:45.160266+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_util:1165(<0.153.51>) failed to get media path for /account%2Fca%2F22%2F586acf157026711a369233f6d2c1/ac1544069b777dc7df4eaa3e244dfa53/141c0020c0642bbccdaeba00c28c8179: timeout
2019-08-05T09:44:45.161132+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_fs_channel:164(<0.153.51>) channel is not bridged
2019-08-05T09:44:45.165851+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_fs_channel:729(<0.192.51>) channel has ecallmgr ecallmgr@{DOMAIN_NAME} (we are ecallmgr@{DOMAIN_NAME})
2019-08-05T09:44:45.359488+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_util:157(<0.153.51>) execute on node freeswitch@{DOMAIN_NAME}(1b7b3066-3200-1238-4c8e-0242ac110004) kz_multiset(playback_terminators=#*0123456789): ok
2019-08-05T09:44:45.366259+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_call_events:690(<0.147.51>) publishing call event channel_execute_complete 'play(/account/ca/22/586acf157026711a369233f6d2c1/ac1544069b777dc7df4eaa3e244dfa53/141c0020c0642bbccdaeba00c28c8179)' result: file not found
2019-08-05T09:44:45.367171+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_amqp_channel:234(<0.481.0>) published to callevt(direct) exchange (routing key call.CHANNEL_EXECUTE_COMPLETE.1b7b3066-3200-1238-4c8e-0242ac110004) via <0.439.0>
2019-08-05T09:44:45.368014+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|kz_amqp_worker:659(<0.481.0>) published message 1564994685345133 for <0.147.51>
2019-08-05T09:44:45.560315+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_util:157(<0.153.51>) execute on node freeswitch@{DOMAIN_NAME}(1b7b3066-3200-1238-4c8e-0242ac110004) playback(/account%2Fca%2F22%2F586acf157026711a369233f6d2c1/ac1544069b777dc7df4eaa3e244dfa53/141c0020c0642bbccdaeba00c28c8179): ok
2019-08-05T09:44:45.562073+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_call_control:589(<0.153.51>) play finished, checking for group-id/DTMF termination
2019-08-05T09:44:45.562935+01:00 kazoo-dev-1 2600hz[393]: |1b7b3066-3200-1238-4c8e-0242ac110004|ecallmgr_call_control:615(<0.153.51>) media finished playing, advancing control queue