Jump to content

simonp22

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by simonp22

  1. Thankyou, I have chosen to use edit the inbound callflow and return a 480 response.
  2. Hi there, Searched the forums but couldn't find an answer so am posting here. Is there a way to easily restrict inbound calls to a particular kazoo account on the account level?
  3. Hi, Couldn't find anything in the docs and had a search on the forums but couldn't see anything... Are there configurable settings for Call recording retention in Kazoo? i.e. Delete recordings if they are 3 months old or reach a certain size?
  4. Hi @mc_ We are currently using 4.2-50. We've done some further testing and media plays from the master account if I add it to a "Play media" node in a callflow. As follows: { "data": { "id": "ac1544069b777dc7df4eaa3e244dfa53/e2e6701e37b23d7ee549763f7d8510a6", "endless_playback": false, "terminators": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "0", "#" ] }, "module": "play", "children": {} } But not if I put the same reference in a menu definition in data.media.greeting We will try it on 4.3 to see if it works
  5. Hi, @mc_ Have you any ideas?
  6. Hi, Also tried that yesterday with the preceding slash and got the following: 2019-08-05T10:25:10.426615+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_media_url:48(<0.12982.95>) lookup media url for /account%2Fca%2F22%2F586acf157026711a369233f6d2c1//ac1544069b777dc7df4eaa3e244dfa53/141c0020c0642bbccdaeba00c28c8179 2019-08-05T10:25:10.427446+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:243(<0.12982.95>) raw account id doesn't process '<<"ca/22/586acf157026711a369233f6d2c1">>' 2019-08-05T10:25:10.428272+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_media_file:68(<0.12982.95>) fetching attachment url for '<<"account%2Fca%2F/2%2F2/586acf157026711a369233f6d2c1">>' , '<<"ac1544069b777dc7df4eaa3e244dfa53">>', '<<"141c0020c0642bbccdaeba00c28c8179">>' 2019-08-05T10:25:10.429105+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kzs_util:83(<0.12982.95>) unknown type for database account%2Fca%2F/2%2F2/586acf157026711a369233f6d2c1 2019-08-05T10:25:10.429602+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:114(<0.12982.95>) stacktrace: 2019-08-05T10:25:10.434656+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:121(<0.12982.95>) st: kzs_util:db_classification/1 at (84) 2019-08-05T10:25:10.459945+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:121(<0.12982.95>) st: kzs_plan:get_dataplan/1 at (68) 2019-08-05T10:25:10.477266+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:121(<0.12982.95>) st: kzs_plan:plan/2 at (45) 2019-08-05T10:25:10.494397+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:121(<0.12982.95>) st: kz_datamgr:attachment_url/4 at (1095) 2019-08-05T10:25:10.511515+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:121(<0.12982.95>) st: kz_media_file:maybe_proxy/2 at (70) 2019-08-05T10:25:10.528779+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_util:121(<0.12982.95>) st: media_listener:handle_media_req/2 at (55) 2019-08-05T10:25:10.545937+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|kz_media_file:72(<0.12982.95>) no attachment URL found 2019-08-05T10:25:10.546815+01:00 kazoo-dev-1 2600hz[394]: |c2448444-3205-1238-4c8e-0242ac110004|media_listener:147(<0.12982.95>) media stream URL: 2019-08-05T10:25:12.422576+01:00 kazoo-dev-1 2600hz[393]: |c2448444-3205-1238-4c8e-0242ac110004|kz_amqp_worker:898(<0.543.0>) req timeout for call_collect 2019-08-05T10:25:12.423505+01:00 kazoo-dev-1 2600hz[393]: |c2448444-3205-1238-4c8e-0242ac110004|ecallmgr_util:1303(<0.5274.51>) timeout when getting media url from amqp 2019-08-05T10:25:12.424365+01:00 kazoo-dev-1 2600hz[393]: |c2448444-3205-1238-4c8e-0242ac110004|ecallmgr_util:1165(<0.5274.51>) failed to get media path for /account%2Fca%2F22%2F586acf157026711a369233f6d2c1//ac1544069b777dc7df4eaa3e244dfa53/141c0020c0642bbccdaeba00c28c8179: timeout
  7. 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
  8. Thankyou for that, however I can still not seem to get it working. I've tried `{ACCOUNT_ID}/{MEDIA_ID}` and `/{ACCOUNT_ID}/{MEDIA_ID}` after putting media under both master and reseller accounts, however all I am hearing is white noise on the line when I enter the menu. I have confirmed that I can play each media through /accounts/{ACCOUNT_ID}/media/{MEDIA_ID}/raw successfully Any ideas?
  9. I also get the success code, but when I put the menu into a callflow and use it, the greeting doesn't play, I just hear whitenoise.
  10. I think you misunderstood the question or didn't read the documentation I attached. I am trying to upload new system media that can be accessed by all accounts.
  11. According to https://github.com/2600hz/kazoo/blob/master/applications/crossbar/doc/media.md You can PUT system media files at the endpoint http://server.com:8000/v2/media How do I reference these using crossbar from an account, say, when creating a menu and I want to use some system media as a menu greeting? "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": "{SYSTEM_MEDIA_ID}", "invalid_media": true, "transfer_media": true }, The above doesn't work, what am I missing?
×
×
  • Create New...