Skip to content

Commit

Permalink
HELP-35785: fix typo and use-case that can orphan cf_exe (#4677)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anderson authored and lazedo committed Mar 21, 2018
1 parent 8fe4a6d commit 0699ca0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions applications/callflow/src/cf_exe.erl
Expand Up @@ -455,6 +455,10 @@ handle_cast('transfer', State) ->
{'stop', {'shutdown', 'transfer'}, State};
handle_cast('control_usurped', State) ->
{'stop', {'shutdown', 'control_usurped'}, State};
handle_cast('channel_destroyed', #state{stop_on_destroy='true'
,cf_module_pid='undefined'
}=State) ->
{'stop', 'normal', State};
handle_cast('channel_destroyed', State) ->
{'noreply', State#state{destroyed='true'}};
handle_cast('stop_on_destroy', State) ->
Expand Down
1 change: 1 addition & 0 deletions applications/stepswitch/src/stepswitch_bridge.erl
Expand Up @@ -54,6 +54,7 @@
,<<"CHANNEL_TRANSFEROR">>
,<<"CHANNEL_EXECUTE_COMPLETE">>
,<<"CHANNEL_BRIDGE">>
,<<"dialplan">>
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion core/kazoo_amqp/src/api/kapi_dialplan.erl
Expand Up @@ -1138,7 +1138,7 @@ publish_error(CallID, API, ContentType) ->
{'ok', Payload} = kz_api:prepare_api_payload(API, [{<<"Event-Name">>, <<"dialplan">>}
| ?ERROR_RESP_VALUES
], fun error/1),
amqp_util:callevt_publish(kapi_call:event_routing_key(<<"diaplan">>, CallID), Payload, ContentType).
amqp_util:callevt_publish(kapi_call:event_routing_key(<<"dialplan">>, CallID), Payload, ContentType).

-spec publish_originate_ready(ne_binary(), api_terms()) -> 'ok'.
-spec publish_originate_ready(ne_binary(), api_terms(), ne_binary()) -> 'ok'.
Expand Down

0 comments on commit 0699ca0

Please sign in to comment.