Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor tidy up for sense

  • Loading branch information...
commit e4329182e98d8b42e6d52321f6359a84ceeafc7d 1 parent 0e1bc86
@hypernumbers authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/phonecall_sup.erl
  2. +1 −1  src/twilio_ext.erl
View
6 src/phonecall_sup.erl
@@ -16,7 +16,7 @@
%% API
-export([
start_link/0,
- answer_phone/2,
+ init_call/2,
call_complete/1,
recording_notification/2,
gather_response/1,
@@ -34,8 +34,8 @@
%%%===================================================================
%%% API functions
%%%===================================================================
--spec answer_phone(#twilio{}, list()) -> pid() | string().
-answer_phone(Params, TwiML_EXT) ->
+-spec init_call(#twilio{}, list()) -> pid() | string().
+init_call(Params, TwiML_EXT) ->
ChildSpec = gen_child_spec(Params, TwiML_EXT),
case supervisor:start_child(?MODULE, ChildSpec) of
{ok, Pid} ->
View
2  src/twilio_ext.erl
@@ -26,7 +26,7 @@ handle(Params, Path) ->
"ringing" ->
io:format("phone ringing...~n"),
TwiML_ext = twiml_ext_recipies:random(),
- phonecall_sup:answer_phone(Records, TwiML_ext);
+ phonecall_sup:init_call(Records, TwiML_ext);
"completed" ->
case Records#twilio.recording of
null ->
Please sign in to comment.
Something went wrong with that request. Please try again.