Skip to content

Commit

Permalink
Potential fix for #830 Rejected incoming call appears logged 6 times …
Browse files Browse the repository at this point in the history
…for Africa's Talking channel
  • Loading branch information
juanboca committed Feb 4, 2019
1 parent 69e2aac commit 3d17906
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion broker/src/africas_talking/africas_talking_httpd_module.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ do(#mod{request_uri = "/africas_talking" ++ _, method = "POST", entity_body = Bo
FoundPbx ->
FoundPbx:resume(Params)
end,
Response = [{response, {200, ResponseBody}}],
Length = integer_to_list(iolist_size(ResponseBody)),
Head = [{content_type, "text/plain"}, {content_length, Length}, {code, 200}],
Response = [{response, {response, Head, ResponseBody}}],
{proceed, Response}
end);
% TODO. If the call fails and the session is still active, a user_hangup is logged,
Expand Down

0 comments on commit 3d17906

Please sign in to comment.