louyingge Posted May 26, 2021 Report Posted May 26, 2021 Hello there, I'm testing Kazoo on premise and I would like to know how can I limit an resource's ability to place concurrent calls. I would like to apply a rule that if one resource's upper limit is reached, it will change to another sequential or random automatically. Thank you for your advice.
80tech Posted May 29, 2021 Report Posted May 29, 2021 Hi louyingge, I got the same question, and tried to use the limit feature of the account app, but it doesn't work. Have you figured out a way of limiting that? Thanks Tommy
Administrators mc_ Posted June 2, 2021 Administrators Report Posted June 2, 2021 @louyingge there is not a way to track channels going to a particular carrier and use a different carrier if some threshold is reached. You can limit an account's channel count going to/from carriers. Could be an interesting feature if you wanted to sponsor it though!
louyingge Posted June 3, 2021 Author Report Posted June 3, 2021 Hi @mc_, Thank you for your explanation, we will try account limit instead.😀
louyingge Posted June 4, 2021 Author Report Posted June 4, 2021 hello, I try to add some resource call limit parameters to my account, but it seems doesn't work. my account settings: { "_id": "limits", "_rev": "3-183a29cbaea64c27c65d82afaac0a652", "allow_prepay": false, "authz_resource_types": [ ], "burst_trunks": 0, "enabled": true, "inbound_trunks": 1, "max_postpay_ammount": 0, "outbound_trunks": 1, "reserve_ammount": 0, "soft_limit_inbound": true, "soft_limit_outbound": true, "twoway_trunks": 0, "ui_metadata": { "version": "4.3-139", "ui": "monster-ui", "origin": "accounts" }, "allow_postpay": false, "pvt_type": "limits", "pvt_vsn": "1", "pvt_account_id": "2d54787d167f74af8ef1055e8cd4998b", "pvt_account_db": "account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b", "pvt_created": 63785511374, "pvt_modified": 63785511374, "pvt_request_id": "7f960319d66363352cdcbda32e1b711b", "pvt_auth_user_id": "02b6d0f3f48707306a29cbd5ed392fd6", "pvt_auth_account_id": "f3c1c8d8c85c312c7301c709ff438a3e", "pvt_is_authenticated": true, "calls": 1, "resource_consuming_calls": 1 } and here is the kazoo logs: 03:50:30.629 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.21040.0> 03:51:30.630 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.21198.0> 03:52:30.632 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.21352.0> 03:53:30.556 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_worker:484(<0.21505.0>) attempting to collect 1 responses from ecallmgr 03:53:30.556 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_worker:252(<0.21505.0>) application jonny5 checked out worker <0.429.0> from pool kz_amqp_pool 03:53:30.632 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.21506.0> 03:54:30.633 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.21655.0> 03:55:30.634 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.21801.0> 03:56:30.635 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.21951.0> 03:57:30.636 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.22111.0> 03:58:30.637 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.22262.0> 03:59:30.638 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.22414.0> 04:00:30.639 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.22566.0> 04:01:30.641 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.22715.0> 04:02:30.641 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.22877.0> 04:03:30.642 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.23027.0> 04:04:30.643 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.23176.0> 04:05:30.644 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.23326.0> 04:06:30.645 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.23474.0> 04:07:30.646 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.23630.0> 04:08:30.557 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_worker:484(<0.23784.0>) attempting to collect 1 responses from ecallmgr 04:08:30.558 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_worker:252(<0.23784.0>) application jonny5 checked out worker <0.437.0> from pool kz_amqp_pool 04:08:30.647 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.23785.0> 04:09:30.648 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.23936.0> 04:10:30.649 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.24083.0> 04:11:30.650 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.24233.0> 04:12:30.651 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.24383.0> 04:13:30.652 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.24546.0> 04:14:30.654 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.24696.0> 04:15:30.654 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.24847.0> 04:16:30.655 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.24997.0> 04:17:30.656 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.25146.0> 04:18:30.657 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.25308.0> 04:19:30.658 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.25455.0> 04:20:30.659 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.25604.0> 04:21:30.660 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.25755.0> 04:22:30.661 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.25905.0> 04:23:30.559 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_worker:484(<0.26064.0>) attempting to collect 1 responses from ecallmgr 04:23:30.559 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_worker:252(<0.26064.0>) application jonny5 checked out worker <0.447.0> from pool kz_amqp_pool 04:23:30.662 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.26065.0> 04:24:30.663 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.26218.0> 04:25:30.664 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.26368.0> 04:26:30.665 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.26516.0> 04:27:30.666 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.26666.0> 04:28:30.667 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.26818.0> 04:29:30.668 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.26980.0> 04:30:30.669 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.27128.0> 04:31:30.670 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.27281.0> 04:32:30.671 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2541.0>) cleaning up destroyed channels in <0.27430.0> 04:35:12.407 kazoo_apps@han.newrocktech.com [info] |j5_channels|kz_hooks_util:167(<0.2563.0>) adding event all to kz_hooks_listener 04:35:12.408 kazoo_apps@han.newrocktech.com [info] |j5_channels|kz_hooks_listener:173(<0.2563.0>) adding bindings for [<<"CHANNEL_CREATE">>,<<"CHANNEL_ANSWER">>,<<"CHANNEL_DESTROY">>,<<"CHANNEL_DISCONNECTED">>,<<"CHANNEL_BRIDGE">>] 04:35:12.435 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:719(<0.2563.0>) acquired channel 04:35:12.435 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1541(<0.2563.0>) channel started, let's connect 04:35:12.440 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:411(<0.2563.0>) declared queue kazoo_apps@han.newrocktech.com-j5_channels-<0.2563.0>-904f70d9 via channel <0.2317.0> 04:35:12.440 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1197(<0.2563.0>) named queue has no QoS settings 04:35:12.445 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:343(<0.2563.0>) consuming for <0.2563.0> on <0.2317.0> returned {'basic.consume_ok',<<"amq.ctag-GqHMqYnIMwEMtn1d2LfGig">>} 04:35:12.445 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:439(<0.2563.0>) created consumer amq.ctag-GqHMqYnIMwEMtn1d2LfGig via channel <0.2317.0> 04:35:12.445 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1180(<0.2563.0>) queue started: kazoo_apps@han.newrocktech.com-j5_channels-<0.2563.0>-904f70d9 04:35:12.445 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1361(<0.2563.0>) creating new binding: 'authz' 04:35:12.457 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:430(<0.2563.0>) bound kazoo_apps@han.newrocktech.com-j5_channels-<0.2563.0>-904f70d9 to callmgr exchange (routing key authz.authorize.broadcast) via channel <0.2317.0> 04:35:12.457 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1412(<0.2563.0>) no federated brokers to connect to, skipping federating binding 'authz' 04:35:12.458 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1361(<0.2563.0>) creating new binding: 'rate' 04:35:12.504 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:430(<0.2563.0>) bound kazoo_apps@han.newrocktech.com-j5_channels-<0.2563.0>-904f70d9 to callmgr exchange (routing key rate.resp.broadcast) via channel <0.2317.0> 04:35:12.504 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1412(<0.2563.0>) no federated brokers to connect to, skipping federating binding 'rate' 04:35:12.504 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1559(<0.2563.0>) no other queues to start 04:35:12.504 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:782(<0.2563.0>) received consume ok (amq.ctag-GqHMqYnIMwEMtn1d2LfGig) for queue : [] 04:36:12.431 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2563.0>) cleaning up destroyed channels in <0.2762.0> 04:37:12.432 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2563.0>) cleaning up destroyed channels in <0.2886.0> 04:38:12.433 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2563.0>) cleaning up destroyed channels in <0.3011.0> 04:39:12.434 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2563.0>) cleaning up destroyed channels in <0.3136.0> 04:40:12.435 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2563.0>) cleaning up destroyed channels in <0.3271.0> 04:40:56.327 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2563.0>) created channel: {channel,<<"1622781655178906117-0@192.168.130.103">>,undefined,<<"inbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,undefined,undefined,false,false,63790000856,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"6601">>,false} 04:40:56.327 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2563.0>) inserted new channel 1622781655178906117-0@192.168.130.103 04:40:57.515 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2563.0>) created channel: {channel,<<"8d4b0af3-d240-4747-bee7-a2d4027da46e">>,<<"1622781655178906117-0@192.168.130.103">>,<<"outbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,<<"f3c1c8d8c85c312c7301c709ff438a3e">>,undefined,false,false,63790000857,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"nouser">>,false} 04:40:57.515 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2563.0>) inserted new channel 8d4b0af3-d240-4747-bee7-a2d4027da46e 04:40:57.564 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_request:164(<0.3414.0>) using original number 6601 instead of 6601 04:40:57.724 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_hard_limit:65(<0.3414.0>) inbound_channels_per_did_limit AccountId: <<"2d54787d167f74af8ef1055e8cd4998b">> ToDid: <<"6601">> Used: 1 Limit: -1 04:40:57.749 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_allotments:148(<0.3414.0>) checking if account 2d54787d167f74af8ef1055e8cd4998b has any allotments for outbound_unknown 04:40:57.749 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_allotments:148(<0.3414.0>) checking if account 2d54787d167f74af8ef1055e8cd4998b has any allotments for unknown 04:40:57.749 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_allotments:24(<0.3414.0>) account has no allotment 04:40:57.832 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_flat_rate:83(<0.3414.0>) using whitelist: <<"^\\+1\\d{10}$">> for flat rate check 04:40:57.832 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_flat_rate:84(<0.3414.0>) using blacklist: <<"^\\+1(684|264|268|242|246|441|284|345|767|809|829|849|473|671|876|664|670|787|939|869|758|784|721|868|649|340|900|800|888|877|866|855|844)\\d{7}$">> for flat rate check 04:40:57.832 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_flat_rate:43(<0.3414.0>) number '6601' is not eligible for flat rate trunks 04:40:57.875 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_per_minute:22(<0.3414.0>) checking if account 2d54787d167f74af8ef1055e8cd4998b has available per-minute credit 04:40:57.884 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_per_minute:77(<0.3414.0>) account 2d54787d167f74af8ef1055e8cd4998b is restricted from using prepay 04:40:57.884 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_per_minute:93(<0.3414.0>) account 2d54787d167f74af8ef1055e8cd4998b is restricted from using postpay 04:40:57.884 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_authz_req:275(<0.3414.0>) outbound channel authorization is not enforced (soft limit) 04:40:57.884 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_authz_req:155(<0.3414.0>) account 2d54787d167f74af8ef1055e8cd4998b is not authorized to create this channel 04:40:58.835 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:690(<0.2563.0>) updated 8d4b0af3-d240-4747-bee7-a2d4027da46e with answered timestamp 04:40:58.870 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:690(<0.2563.0>) updated 1622781655178906117-0@192.168.130.103 with answered timestamp 04:41:03.765 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2563.0>) created channel: {channel,<<"1622781663231334375-0@192.168.130.103">>,undefined,<<"inbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,undefined,undefined,false,false,63790000863,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"6602">>,false} 04:41:03.765 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2563.0>) inserted new channel 1622781663231334375-0@192.168.130.103 04:41:04.000 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2563.0>) created channel: {channel,<<"ba7f71a8-a25b-4add-9278-ecea55028f6f">>,<<"1622781663231334375-0@192.168.130.103">>,<<"outbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,<<"f3c1c8d8c85c312c7301c709ff438a3e">>,undefined,false,false,63790000863,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"nouser">>,false} 04:41:04.000 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2563.0>) inserted new channel ba7f71a8-a25b-4add-9278-ecea55028f6f 04:41:04.029 kazoo_apps@han.newrocktech.com [debug] |ba7f71a8-a25b-4add-9278-ecea55028f6f|j5_request:164(<0.3487.0>) using original number 6602 instead of 6602 04:41:04.030 kazoo_apps@han.newrocktech.com [debug] |ba7f71a8-a25b-4add-9278-ecea55028f6f|j5_request:260(<0.3487.0>) account 2d54787d167f74af8ef1055e8cd4998b denied channel: hard_limit 04:41:04.030 kazoo_apps@han.newrocktech.com [debug] |ba7f71a8-a25b-4add-9278-ecea55028f6f|j5_authz_req:275(<0.3487.0>) outbound channel authorization is not enforced (soft limit) 04:41:04.030 kazoo_apps@han.newrocktech.com [debug] |ba7f71a8-a25b-4add-9278-ecea55028f6f|j5_authz_req:155(<0.3487.0>) account 2d54787d167f74af8ef1055e8cd4998b is not authorized to create this channel 04:41:11.858 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2563.0>) marked channel ba7f71a8-a25b-4add-9278-ecea55028f6f as destroyed 04:41:11.883 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2563.0>) marked channel 1622781663231334375-0@192.168.130.103 as destroyed 04:41:12.436 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2563.0>) cleaning up destroyed channels in <0.3523.0> 04:41:12.436 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:850(<0.3523.0>) deleted 2 destroyed channels from before 63790000869 04:41:12.875 kazoo_apps@han.newrocktech.com [debug] |ba7f71a8-a25b-4add-9278-ecea55028f6f|j5_request:164(<0.3517.0>) using original number 6602 instead of 6602 04:41:12.875 kazoo_apps@han.newrocktech.com [debug] |ba7f71a8-a25b-4add-9278-ecea55028f6f|j5_channel_destroy:35(<0.3517.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:41:12.875 kazoo_apps@han.newrocktech.com [debug] |ba7f71a8-a25b-4add-9278-ecea55028f6f|j5_channel_destroy:37(<0.3517.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:41:13.268 kazoo_apps@han.newrocktech.com [debug] |1622781663231334375-0@192.168.130.103|j5_channel_destroy:35(<0.3518.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:41:13.268 kazoo_apps@han.newrocktech.com [debug] |1622781663231334375-0@192.168.130.103|j5_channel_destroy:37(<0.3518.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:41:13.969 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2563.0>) marked channel 1622781655178906117-0@192.168.130.103 as destroyed 04:41:13.970 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2563.0>) marked channel 8d4b0af3-d240-4747-bee7-a2d4027da46e as destroyed 04:41:15.688 kazoo_apps@han.newrocktech.com [debug] |1622781655178906117-0@192.168.130.103|j5_channel_destroy:35(<0.3530.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:41:15.688 kazoo_apps@han.newrocktech.com [debug] |1622781655178906117-0@192.168.130.103|j5_channel_destroy:37(<0.3530.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:41:15.862 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_request:164(<0.3535.0>) using original number 6601 instead of 6601 04:41:15.862 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_channel_destroy:35(<0.3535.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:41:15.862 kazoo_apps@han.newrocktech.com [debug] |8d4b0af3-d240-4747-bee7-a2d4027da46e|j5_channel_destroy:37(<0.3535.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:43:53.726 kazoo_apps@han.newrocktech.com [info] |j5_channels|kz_hooks_util:167(<0.2540.0>) adding event all to kz_hooks_listener 04:43:53.727 kazoo_apps@han.newrocktech.com [info] |j5_channels|kz_hooks_listener:173(<0.2540.0>) adding bindings for [<<"CHANNEL_CREATE">>,<<"CHANNEL_ANSWER">>,<<"CHANNEL_DESTROY">>,<<"CHANNEL_DISCONNECTED">>,<<"CHANNEL_BRIDGE">>] 04:43:53.750 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:719(<0.2540.0>) acquired channel 04:43:53.750 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1541(<0.2540.0>) channel started, let's connect 04:43:53.755 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:411(<0.2540.0>) declared queue kazoo_apps@han.newrocktech.com-j5_channels-<0.2540.0>-43c35819 via channel <0.2293.0> 04:43:53.755 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1197(<0.2540.0>) named queue has no QoS settings 04:43:53.757 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:343(<0.2540.0>) consuming for <0.2540.0> on <0.2293.0> returned {'basic.consume_ok',<<"amq.ctag-2vyvDK9qPOG1IOlL3RpvnA">>} 04:43:53.757 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:439(<0.2540.0>) created consumer amq.ctag-2vyvDK9qPOG1IOlL3RpvnA via channel <0.2293.0> 04:43:53.757 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1180(<0.2540.0>) queue started: kazoo_apps@han.newrocktech.com-j5_channels-<0.2540.0>-43c35819 04:43:53.757 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1361(<0.2540.0>) creating new binding: 'authz' 04:43:53.759 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:430(<0.2540.0>) bound kazoo_apps@han.newrocktech.com-j5_channels-<0.2540.0>-43c35819 to callmgr exchange (routing key authz.authorize.broadcast) via channel <0.2293.0> 04:43:53.759 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1412(<0.2540.0>) no federated brokers to connect to, skipping federating binding 'authz' 04:43:53.759 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1361(<0.2540.0>) creating new binding: 'rate' 04:43:53.819 kazoo_apps@han.newrocktech.com [debug] |j5_channels|kz_amqp_channel:430(<0.2540.0>) bound kazoo_apps@han.newrocktech.com-j5_channels-<0.2540.0>-43c35819 to callmgr exchange (routing key rate.resp.broadcast) via channel <0.2293.0> 04:43:53.819 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1412(<0.2540.0>) no federated brokers to connect to, skipping federating binding 'rate' 04:43:53.819 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:1559(<0.2540.0>) no other queues to start 04:43:53.819 kazoo_apps@han.newrocktech.com [debug] |j5_channels|gen_listener:782(<0.2540.0>) received consume ok (amq.ctag-2vyvDK9qPOG1IOlL3RpvnA) for queue : [] 04:44:53.748 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.2711.0> 04:45:52.193 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2540.0>) created channel: {channel,<<"16227819511500100890-0@192.168.130.103">>,undefined,<<"inbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,undefined,undefined,false,false,63790001152,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"6601">>,false} 04:45:52.193 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2540.0>) inserted new channel 16227819511500100890-0@192.168.130.103 04:45:53.326 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2540.0>) created channel: {channel,<<"e3ca0806-54a5-4edc-9b4a-1935151964cb">>,<<"16227819511500100890-0@192.168.130.103">>,<<"outbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,<<"f3c1c8d8c85c312c7301c709ff438a3e">>,undefined,false,false,63790001153,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"nouser">>,false} 04:45:53.326 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2540.0>) inserted new channel e3ca0806-54a5-4edc-9b4a-1935151964cb 04:45:53.377 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_request:164(<0.2907.0>) using original number 6601 instead of 6601 04:45:53.471 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_hard_limit:65(<0.2907.0>) inbound_channels_per_did_limit AccountId: <<"2d54787d167f74af8ef1055e8cd4998b">> ToDid: <<"6601">> Used: 1 Limit: -1 04:45:53.508 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_allotments:148(<0.2907.0>) checking if account 2d54787d167f74af8ef1055e8cd4998b has any allotments for outbound_unknown 04:45:53.508 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_allotments:148(<0.2907.0>) checking if account 2d54787d167f74af8ef1055e8cd4998b has any allotments for unknown 04:45:53.508 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_allotments:24(<0.2907.0>) account has no allotment 04:45:53.627 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_flat_rate:83(<0.2907.0>) using whitelist: <<"^\\+1\\d{10}$">> for flat rate check 04:45:53.627 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_flat_rate:84(<0.2907.0>) using blacklist: <<"^\\+1(684|264|268|242|246|441|284|345|767|809|829|849|473|671|876|664|670|787|939|869|758|784|721|868|649|340|900|800|888|877|866|855|844)\\d{7}$">> for flat rate check 04:45:53.627 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_flat_rate:43(<0.2907.0>) number '6601' is not eligible for flat rate trunks 04:45:53.654 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_per_minute:22(<0.2907.0>) checking if account 2d54787d167f74af8ef1055e8cd4998b has available per-minute credit 04:45:53.750 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.2916.0> 04:45:53.912 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_per_minute:77(<0.2907.0>) account 2d54787d167f74af8ef1055e8cd4998b is restricted from using prepay 04:45:53.912 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_per_minute:93(<0.2907.0>) account 2d54787d167f74af8ef1055e8cd4998b is restricted from using postpay 04:45:53.912 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_authz_req:275(<0.2907.0>) outbound channel authorization is not enforced (soft limit) 04:45:53.912 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_authz_req:155(<0.2907.0>) account 2d54787d167f74af8ef1055e8cd4998b is not authorized to create this channel 04:45:54.546 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:690(<0.2540.0>) updated e3ca0806-54a5-4edc-9b4a-1935151964cb with answered timestamp 04:45:54.567 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:690(<0.2540.0>) updated 16227819511500100890-0@192.168.130.103 with answered timestamp 04:45:59.810 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2540.0>) created channel: {channel,<<"16227819591357147634-0@192.168.130.103">>,undefined,<<"inbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,undefined,undefined,false,false,63790001159,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"6602">>,false} 04:45:59.810 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2540.0>) inserted new channel 16227819591357147634-0@192.168.130.103 04:45:59.963 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:678(<0.2540.0>) created channel: {channel,<<"46d4050a-3dcd-48fb-9450-558156211a33">>,<<"16227819591357147634-0@192.168.130.103">>,<<"outbound">>,<<"2d54787d167f74af8ef1055e8cd4998b">>,undefined,false,<<"f3c1c8d8c85c312c7301c709ff438a3e">>,undefined,false,false,63790001159,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,<<"nouser">>,false} 04:45:59.963 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:680(<0.2540.0>) inserted new channel 46d4050a-3dcd-48fb-9450-558156211a33 04:45:59.974 kazoo_apps@han.newrocktech.com [debug] |46d4050a-3dcd-48fb-9450-558156211a33|j5_request:164(<0.2977.0>) using original number 6602 instead of 6602 04:45:59.974 kazoo_apps@han.newrocktech.com [debug] |46d4050a-3dcd-48fb-9450-558156211a33|j5_request:260(<0.2977.0>) account 2d54787d167f74af8ef1055e8cd4998b denied channel: hard_limit 04:45:59.974 kazoo_apps@han.newrocktech.com [debug] |46d4050a-3dcd-48fb-9450-558156211a33|j5_authz_req:275(<0.2977.0>) outbound channel authorization is not enforced (soft limit) 04:45:59.974 kazoo_apps@han.newrocktech.com [debug] |46d4050a-3dcd-48fb-9450-558156211a33|j5_authz_req:155(<0.2977.0>) account 2d54787d167f74af8ef1055e8cd4998b is not authorized to create this channel 04:46:03.626 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2540.0>) marked channel 46d4050a-3dcd-48fb-9450-558156211a33 as destroyed 04:46:03.632 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2540.0>) marked channel 16227819591357147634-0@192.168.130.103 as destroyed 04:46:05.216 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2540.0>) marked channel 16227819511500100890-0@192.168.130.103 as destroyed 04:46:05.247 kazoo_apps@han.newrocktech.com [info] |j5_channels|j5_channels:578(<0.2540.0>) marked channel e3ca0806-54a5-4edc-9b4a-1935151964cb as destroyed 04:46:05.618 kazoo_apps@han.newrocktech.com [debug] |16227819591357147634-0@192.168.130.103|j5_channel_destroy:35(<0.3003.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:46:05.618 kazoo_apps@han.newrocktech.com [debug] |16227819591357147634-0@192.168.130.103|j5_channel_destroy:37(<0.3003.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:46:05.992 kazoo_apps@han.newrocktech.com [debug] |46d4050a-3dcd-48fb-9450-558156211a33|j5_request:164(<0.2998.0>) using original number 6602 instead of 6602 04:46:05.993 kazoo_apps@han.newrocktech.com [debug] |46d4050a-3dcd-48fb-9450-558156211a33|j5_channel_destroy:35(<0.2998.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:46:05.993 kazoo_apps@han.newrocktech.com [debug] |46d4050a-3dcd-48fb-9450-558156211a33|j5_channel_destroy:37(<0.2998.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:46:06.863 kazoo_apps@han.newrocktech.com [debug] |16227819511500100890-0@192.168.130.103|j5_channel_destroy:35(<0.3013.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:46:06.864 kazoo_apps@han.newrocktech.com [debug] |16227819511500100890-0@192.168.130.103|j5_channel_destroy:37(<0.3013.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:46:06.977 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_request:164(<0.3016.0>) using original number 6601 instead of 6601 04:46:06.977 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_channel_destroy:35(<0.3016.0>) reconciling cdr for account 2d54787d167f74af8ef1055e8cd4998b 04:46:06.978 kazoo_apps@han.newrocktech.com [debug] |e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_channel_destroy:37(<0.3016.0>) limits 2d54787d167f74af8ef1055e8cd4998b : {limits,<<"2d54787d167f74af8ef1055e8cd4998b">>,<<"account%2F2d%2F54%2F787d167f74af8ef1055e8cd4998b">>,true,1,1,1,1,0,0,0,0,0,0,5000,false,false,{[]},true,true,{[]}} 04:46:53.751 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.3122.0> 04:46:53.751 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:850(<0.3122.0>) deleted 4 destroyed channels from before 63790001210 04:47:53.751 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.3247.0> 04:48:53.752 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.3382.0> 04:49:53.753 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.3513.0> 04:50:53.754 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.3638.0> 04:51:53.755 kazoo_apps@han.newrocktech.com [debug] |j5_channels|j5_channels:702(<0.2540.0>) cleaning up destroyed channels in <0.3762.0> Is there anyone could give me some advice to solve this issue? with regards.
Administrators mc_ Posted June 4, 2021 Administrators Report Posted June 4, 2021 I just see calls to extensions 6601 and 6602? What am I missing here? Limits only apply to call legs that involve a "resource" which is an upstream carrier for most folks' use cases. You'll need to dial DIDs to exercise the account limits
louyingge Posted June 7, 2021 Author Report Posted June 7, 2021 (edited) hi @mc_ I have two calls 1002 to 6601 and 1001 to 6602 involved in this log. 1002 and 1001 are extension numbers on kazoo, and registered from IP 192.168.130.103. 6601 and 6602 are numbers on gateway of kazoo's resource, IP address of this gateway is 192.168.130.191. In my understand, these two calls should be limited by my configurations, but I don't know why it doesn't take effect. and I even cannot get more info in logs. Here is my resource configurations in database. Hope for your more advice. Thanks with regards. Edited June 7, 2021 by louyingge (see edit history)
Administrators mc_ Posted June 11, 2021 Administrators Report Posted June 11, 2021 e3ca0806-54a5-4edc-9b4a-1935151964cb|j5_hard_limit:65(<0.2907.0>) inbound_channels_per_did_limit AccountId: <<"2d54787d167f74af8ef1055e8cd4998b">> ToDid: <<"6601">> Used: 1 Limit: -1 Limit: -1 suggests unlimited trunks. The account appears misconfigured.
Recommended Posts