Hello to everyone!
We could not use the strategy weighted_random in the ring_group in the Kazoo. It returns always error.
The example of scheme:
kz_json_schema_extensions:58(<0.23897.340>) extra for <<"callflows.action.data">> : {[{<<"timeout">>,300},{<<"strategy">>,<<"weighted_random">>},{<<"repeats">>,1},{<<"ignore_forward">>,true},{<<"name">>,<<"scen569">>},{<<"endpoints">>,[{[{<<"id">>,<<"771e8fabdcbc8c746fc206d585ea63d4">>},{<<"endpoint_type">>,<<"device">>},{<<"delay">>,0},{<<"timeout">>,300},{<<"weight">>,1}]},{[{<<"id">>,<<"ed32f61d3ab5fdb5d0b44e145aee986c">>},{<<"endpoint_type">>,<<"device">>},{<<"delay">>,0},{<<"timeout">>,300},{<<"weight">>,2}]}]}]}
Everything look like taken and lasted correct, until come to ring_group's module.
The log of the module ring_group:
- cf_ring_group:272(<0.23906.340>) resolved device ed32f61d3ab5fdb5d0b44e145aee986c
- cf_ring_group:272(<0.23906.340>) resolved device 771e8fabdcbc8c746fc206d585ea63d4
- cf_ring_group:167(<0.23906.340>) builder <0.23902.340> exited abnormally: {badarg,[{kz_json,get_value1,3,[{file,"src/kz_json.erl"},{line,1132}]},{kz_json,is_true,3,[{file,"src/kz_json.erl"},{line,976}]},{kz_endpoint,maybe_owner_called_self,4,[{file,"src/kz_endpoint.erl"},{line,773}]},{kz_endpoint,should_create_endpoint_fold,2,[{file,"src/kz_endpoint.erl"},{line,742}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{kz_endpoint,should_create_endpoint,3,[{file,"src/kz_endpoint.erl"},{line,715}]},{kz_endpoint,build_endpoint,3,[{file,"src/kz_endpoint.erl"},{line,707}]},{cf_ring_group,builder,4,[{file,"src/module/cf_ring_group.erl"},{line,186}]}]}
- cf_ring_group:167(<0.23906.340>) builder <0.23912.340> exited abnormally: {badarg,[{kz_json,get_value1,3,[{file,"src/kz_json.erl"},{line,1132}]},{kz_json,is_true,3,[{file,"src/kz_json.erl"},{line,976}]},{kz_endpoint,maybe_owner_called_self,4,[{file,"src/kz_endpoint.erl"},{line,773}]},{kz_endpoint,should_create_endpoint_fold,2,[{file,"src/kz_endpoint.erl"},{line,742}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{kz_endpoint,should_create_endpoint,3,[{file,"src/kz_endpoint.erl"},{line,715}]},{kz_endpoint,build_endpoint,3,[{file,"src/kz_endpoint.erl"},{line,707}]},{cf_ring_group,builder,4,[{file,"src/module/cf_ring_group.erl"},{line,186}]}]}
- cf_ring_group:79(<0.23906.340>) ring group has no endpoints, moving to next callflow element
So, it return always abnormally exit and told about badarg, but I could not understand what is wrong there.
And if this will be changed to strategy single or simultaneous - with the same scheme and parameters - everything is going on correct.
Did anyone face the same? What could be the problem?
Thank you in advance for help! I can give additional info if it could help resolve this.