Skip to content

Commit

Permalink
WHISTLE-42: properly correct the missing message id
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anderson committed Jul 31, 2012
1 parent 65b646e commit a301bcc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/whistle-1.0.0/src/wh_call_response.erl
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ do_send(CallId, CtrlQ, Commands) ->
Command = [{<<"Application-Name">>, <<"queue">>}
,{<<"Call-ID">>, CallId}
,{<<"Commands">>, Commands}
,{<<"Msg-ID">>, wh_util:rand_hex_binary(6)}
| 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
Expand Down

0 comments on commit a301bcc

Please sign in to comment.