Skip to content

Commit

Permalink
spawn router processes (2600hz#3810)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored and k-anderson committed Jun 9, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c30cd13 commit b4dbe90
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions applications/ecallmgr/src/ecallmgr_fs_route.erl
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ handle_info({'fetch', Section, Tag, Key, Value, FSId, FSData}
catch
_E:_R ->
lager:warning("failed to include switch_url/uri for node ~s : ~p : ~p", [Node, _E, _R]),
{'noreply', State, 'hibernate'}
{'noreply', State}
end;
handle_info({'fetch', Section, _Tag, _Key, _Value, FSId, [CallId | FSData]}
,#state{node=Node
@@ -160,8 +160,8 @@ handle_info({'fetch', Section, _Tag, _Key, _Value, FSId, [CallId | FSData]}
,{<<"Switch-Nodename">>, kz_term:to_binary(Node)}
])
++ FSData,
handle_fetch(Section, FSId, CallId, Props, Node),
{'noreply', State, 'hibernate'};
kz_util:spawn(fun handle_fetch/5, [Section, FSId, CallId, Props, Node]),
{'noreply', State};
handle_info({'EXIT', _, 'noconnection'}, State) ->
{stop, {'shutdown', 'noconnection'}, State};
handle_info({'EXIT', _, Reason}, State) ->
2 changes: 1 addition & 1 deletion applications/ecallmgr/src/ecallmgr_fs_router_call.erl
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ interaction_props(Node, CallId, FSData) ->
case props:get_value(?GET_CCV(<<?CALL_INTERACTION_ID>>), FSData) of
'undefined' ->
InterActionId = props:get_value(?GET_CUSTOM_HEADER(<<"Call-Interaction-ID">>), FSData, ?CALL_INTERACTION_DEFAULT),
ecallmgr_fs_command:set(Node, CallId, [{<<?CALL_INTERACTION_ID>>, InterActionId}]),
kz_util:spawn(fun ecallmgr_fs_command:set/3, [Node, CallId, [{<<?CALL_INTERACTION_ID>>, InterActionId}]]),
[{?GET_CCV(<<?CALL_INTERACTION_ID>>), InterActionId}];
_InterActionId -> []
end.

0 comments on commit b4dbe90

Please sign in to comment.