Permalink
Browse files

WHISTLE-42: properly correct the missing message id

  • Loading branch information...
1 parent 8aa7a6d commit 855bfd929f61056e8217b1d7a734254ad625309f @k-anderson k-anderson committed Jul 31, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/whistle-1.0.0/src/wh_call_response.erl
@@ -90,9 +90,9 @@ do_send(CallId, CtrlQ, Commands) ->
Command = [{<<"Application-Name">>, <<"queue">>}
,{<<"Call-ID">>, CallId}
,{<<"Commands">>, Commands}
- | wh_api:default_headers(<<>>, <<"call">>, <<"command">>, <<"call_response">>, <<"0.1.0">>)],
- {ok, Payload} = wapi_dialplan:queue(Command),
- wapi_dialplan:publish_action(CtrlQ, Payload).
+ | wh_api:default_headers(<<>>, <<"call">>, <<"command">>, <<"call_response">>, <<"0.1.0">>)
+ ],
+ wapi_dialplan:publish_command(CtrlQ, Command).
%%--------------------------------------------------------------------
%% @public

0 comments on commit 855bfd9

Please sign in to comment.