Jump to content

Recommended Posts

Posted

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.

 

  • 1 year later...
Posted

Hi @Dmitry S

Have you found a solution on this?

We are facing the same errors:

cf_ring_group:167(<0.15570.7907>) builder <0.11123.7900> 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}]}]}

  • Administrators
Posted

@jeroen what version of KAZOO are you running? Your log line numbers don't match up to recent 4.3 so its hard to say if your crash has been fixed already.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...