{"action":"created","issue":{"url":"https://api.github.com/repos/2600hz/kazoo/issues/1544","labels_url":"https://api.github.com/repos/2600hz/kazoo/issues/1544/labels{/name}","comments_url":"https://api.github.com/repos/2600hz/kazoo/issues/1544/comments","events_url":"https://api.github.com/repos/2600hz/kazoo/issues/1544/events","html_url":"https://github.com/2600hz/kazoo/pull/1544","id":126953129,"number":1544,"title":"Kazoo 4500 - branch counter on callflows","user":{"login":"jamesaimonetti","id":160921,"avatar_url":"https://avatars.githubusercontent.com/u/160921?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesaimonetti","html_url":"https://github.com/jamesaimonetti","followers_url":"https://api.github.com/users/jamesaimonetti/followers","following_url":"https://api.github.com/users/jamesaimonetti/following{/other_user}","gists_url":"https://api.github.com/users/jamesaimonetti/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesaimonetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesaimonetti/subscriptions","organizations_url":"https://api.github.com/users/jamesaimonetti/orgs","repos_url":"https://api.github.com/users/jamesaimonetti/repos","events_url":"https://api.github.com/users/jamesaimonetti/events{/privacy}","received_events_url":"https://api.github.com/users/jamesaimonetti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-15T20:31:58Z","updated_at":"2016-01-17T10:29:09Z","closed_at":"2016-01-15T20:55:21Z","pull_request":{"url":"https://api.github.com/repos/2600hz/kazoo/pulls/1544","html_url":"https://github.com/2600hz/kazoo/pull/1544","diff_url":"https://github.com/2600hz/kazoo/pull/1544.diff","patch_url":"https://github.com/2600hz/kazoo/pull/1544.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/2600hz/kazoo/issues/comments/172310406","html_url":"https://github.com/2600hz/kazoo/pull/1544#issuecomment-172310406","issue_url":"https://api.github.com/repos/2600hz/kazoo/issues/1544","id":172310406,"user":{"login":"onnet","id":2908577,"avatar_url":"https://avatars.githubusercontent.com/u/2908577?v=3","gravatar_id":"","url":"https://api.github.com/users/onnet","html_url":"https://github.com/onnet","followers_url":"https://api.github.com/users/onnet/followers","following_url":"https://api.github.com/users/onnet/following{/other_user}","gists_url":"https://api.github.com/users/onnet/gists{/gist_id}","starred_url":"https://api.github.com/users/onnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onnet/subscriptions","organizations_url":"https://api.github.com/users/onnet/orgs","repos_url":"https://api.github.com/users/onnet/repos","events_url":"https://api.github.com/users/onnet/events{/privacy}","received_events_url":"https://api.github.com/users/onnet/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T10:29:09Z","updated_at":"2016-01-17T10:29:09Z","body":"@jamesaimonetti \r\nHi again. The situation occurs when I am using cf_callflow module. On branching to new callflow branch_count is absent in State (take a look around this line: cf_exe:430 (<0.12486.0>) callflow has been branched State#state.branch_count: undefined):\r\n\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:722 (<0.12486.0>) moving to action 'cf_callflow'\r\nJan 17 13:19:21 kz527 2600hz[2259]: |0000000000|Undefined:Undefined (<0.1257.0>) Supervisor cf_event_handler_sup started wh_media_recording:start_link({whapps_call,<<\"c61d6b0b-37a6-1234-d593-a26e12c191c6\">>,#Fun<whapps_call.default_helper_function.2>,...}, {[{<<\"action\">>,<<\"start\">>},{<<\"url\">>,<<>>},{<<\"format\">>,<<\"mp3\">>},{<<\"time_limit\">>,<<\"6000\">>},...]}) at pid <0.12496.0>\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_callflow:30 (<0.12498.0>) branching to new callflow 5ce0833aca9266a1cb852b7e25eddd3c\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:547 (<0.12486.0>) cf module cf_record_call down normally\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:428 (<0.12486.0>) callflow has been branched State#state.flow: {[{<<\"module\">>,<<\"callflow\">>},{<<\"children\">>,{[]}},{<<\"data\">>,{[{<<\"id\">>,<<\"5ce0833aca9266a1cb852b7e25eddd3c\">>}]}}]}\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:429 (<0.12486.0>) callflow has been branched State#state.flows: []\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:430 (<0.12486.0>) callflow has been branched State#state.branch_count: undefined\r\nJan 17 13:19:21 kz527 2600hz[2259]: |0000000000|Undefined:Undefined (<0.12499.0>) Supervisor {<0.12499.0>,amqp_channel_sup} started amqp_gen_consumer:start_link(amqp_selective_consumer, [], {<<\"client 94.125.5.27:35442 -> 94.125.5.27:5672\">>,280}) at pid <0.12500.0>\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:431 (<0.12486.0>) callflow has been branched NewFlow: {[{<<\"module\">>,<<\"menu\">>},{<<\"children\">>,{[{<<\"1\">>,{[{<<\"module\">>,<<\"device\">>},{<<\"children\">>,{[]}},{<<\"data\">>,{[{<<\"id\">>,<<\"c5cc1bf50bcfc78d6970161bf063ff25\">>},{<<\"timeout\">>,<<\"20\">>},{<<\"can_call_self\">>,true}]}}]}},{<<\"2\">>,{[{<<\"module\">>,<<\"receive_fax\">>},{<<\"children\">>,{[]}},{<<\"data\">>,{[{<<\"owner_id\">>,<<\"c10a3bdfd4baa34c9236749c201064fe\">>},{<<\"media\">>,{[{<<\"fax_option\">>,true}]}}]}}]}}]}},{<<\"data\">>,{[{<<\"id\">>,<<\"e5783fe578ad36dfaf0af8204cce0222\">>}]}}]}\r\nJan 17 13:19:21 kz527 2600hz[2259]: |0000000000|Undefined:Undefined (<0.12499.0>) Supervisor {<0.12499.0>,amqp_channel_sup} started amqp_channel:start_link(network, <0.125.0>, 280, <0.12500.0>, {<<\"client 94.125.5.27:35442 -> 94.125.5.27:5672\">>,280}) at pid <0.12501.0>\r\nJan 17 13:19:21 kz527 2600hz[2259]: |0000000000|Undefined:Undefined (<0.12499.0>) Supervisor {<0.12499.0>,amqp_channel_sup} started rabbit_writer:start_link(#Port<0.9497>, 280, 131072, rabbit_framing_amqp_0_9_1, <0.12501.0>, {<<\"client 94.125.5.27:35442 -> 94.125.5.27:5672\">>,280}) at pid <0.12502.0>\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:432 (<0.12486.0>) callflow has been branched State: {state,{whapps_call,<<\"c61d6b0b-37a6-1234-d593-a26e12c191c6\">>,#Fun<cf_exe.callid.2>,<<\"ecallmgr@kz527.onnet.su-<0.6457.0>-395ae687\">>,#Fun<cf_exe.control_queue.2>,<<\"whistle_apps@kz527.onnet.su-<0.12486.0>-75e36550\">>,<<\"8129169944\">>,<<\"88129169944\">>,undefined,<<\"78122404700\">>,<<\"freeswitch@kz527.onnet.su\">>,<<\"kz527.onnet.su\">>,<<\"sip:mod_sofia@94.125.5.27:11000\">>,<<\"sip:94.125.5.27:11000\">>,<<\"78122404700@94.125.5.27\">>,<<\"+78122404700\">>,<<\"94.125.5.27\">>,<<\"88129169944@fs4242.onnet.su\">>,<<\"88129169944\">>,<<\"fs4242.onnet.su\">>,<<\"78122404700@94.125.5.27\">>,<<\"78122404700\">>,<<\"94.125.5.27\">>,<<\"78122404700@94.125.5.27\">>,<<\"account%2F33%2Fca%2F3929ed585e0e423eb39e4ffe1452\">>,<<\"33ca3929ed585e0e423eb39e4ffe1452\">>,undefined,undefined,undefined,<<\"c5e11afa-bd03-11e5-a0bc-593d0533d913\">>,undefined,<<\"ru-ru\">>,<<\"callflow\">>,<<\"0.8.2\">>,undefined,{[{<<\"Fetch-ID\">>,<<\"c5e11afa-bd03-11e5-a0bc-593d0533d913\">>},{<<\"Caller-Privacy-Number\">>,false},{<<\"Caller-Privacy-Name\">>,false},{<<\"Account-ID\">>,<<\"33ca3929ed585e0e423eb39e4ffe1452\">>},{<<\"Ignore-Display-Updates\">>,<<\"true\">>},{<<\"Inception\">>,<<\"78122404700@94.125.5.27\">>},{<<\"Application-Node\">>,<<\"whistle_apps@kz527.onnet.su\">>},{<<\"Application-Name\">>,<<\"callflow\">>},{<<\"Caller-ID-Number\">>,<<\"88129169944\">>},{<<\"Caller-ID-Name\">>,<<\"8129169944\">>}]},{[{<<\"X-AUTH-PORT\">>,<<\"5060\">>},{<<\"X-AUTH-IP\">>,<<\"94.125.5.106\">>}]},[{<<\"cf_capture_group\">>,undefined},{<<\"cf_flow\">>,{[{<<\"children\">>,{[{<<\"_\">>,{[{<<\"module\">>,<<\"callflow\">>},{<<\"children\">>,{[]}},{<<\"data\">>,{[{<<\"id\">>,<<\"5ce0833aca9266a1cb852b7e25eddd3c\">>}]}}]}}]}},{<<\"data\">>,{[{<<\"action\">>,<<\"start\">>},{<<\"url\">>,<<>>},{<<\"format\">>,<<\"mp3\">>},{<<\"time_limit\">>,<<\"6000\">>},{<<\"record_on_answer\">>,true}]}},{<<\"module\">>,<<\"record_call\">>}]}},{<<\"cf_flow_id\">>,<<\"544f6f85c3039f692f9b82c8deeae074\">>},{<<\"cf_last_action\">>,cf_callflow},{<<\"cf_metaflow\">>,false\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:433 (<0.12486.0>) callflow has been branched BC: undefined\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|gen_listener:990 (<0.12486.0>) handle_cast exception: error: badarith\r\nJan 17 13:19:21 kz527 2600hz[2259]: |konami_event_listener|wh_amqp_channel:307 (<0.2550.0>) bound whistle_apps@kz527.onnet.su-<0.2550.0>-0946f5e6 to callevt exchange (routing key call.CHANNEL_ANSWER.c61d6b0b-37a6-1234-d593-a26e12c191c6) via channel <0.2331.0>\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|wh_util:150 (<0.12486.0>) stacktrace:\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|wh_util:157 (<0.12486.0>) st: cf_exe:handle_cast/2 at (437)\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|wh_util:157 (<0.12486.0>) st: gen_listener:handle_module_cast/2 at (975)\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|wh_util:157 (<0.12486.0>) st: gen_server:handle_msg/5 at (607)\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|wh_util:157 (<0.12486.0>) st: proc_lib:wake_up/3 at (237)\r\nJan 17 13:19:21 kz527 2600hz[2259]: |00000000000|wh_amqp_channel:154 (<0.623.0>) published to callctl(amqp://guest:guest@94.125.5.27:5672) exchange (routing key ecallmgr@kz527.onnet.su-<0.6457.0>-395ae687) via <0.1045.0>\r\nJan 17 13:19:21 kz527 2600hz[2259]: |00000000000|wh_amqp_worker:613 (<0.623.0>) published message 1b1c990579f7a3b9 for <0.12486.0>\r\nJan 17 13:19:21 kz527 2600hz[2259]: |c61d6b0b-37a6-1234-d593-a26e12c191c6|cf_exe:662 (<0.12486.0>) callflow execution has been stopped: badarith\r\n"}}