summaryrefslogtreecommitdiff
path: root/src/pbx_conn.erl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-11 17:54:08 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-11 17:54:08 +0100
commit0ebc8a64a51ff4255c931c23039e7485cbaee08a (patch)
treef779dd15bb61a93d90cbdb573828801eb7804a9a /src/pbx_conn.erl
parentd5f00862816454c7a025e8a0bebc12d6a8f611ed (diff)
Cleanup
Diffstat (limited to 'src/pbx_conn.erl')
-rw-r--r--src/pbx_conn.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pbx_conn.erl b/src/pbx_conn.erl
index bb5f478..9ee0a93 100644
--- a/src/pbx_conn.erl
+++ b/src/pbx_conn.erl
@@ -23,6 +23,7 @@ handle_call(_Request, _From, Socket) ->
{reply, ok, Socket}.
handle_cast({ok, Reply}, Socket) ->
+ io:format("Send: ~p~n", [Reply]),
gen_tcp:send(Socket, Reply),
{noreply, Socket};
handle_cast({error, Reason}, Socket) ->
@@ -31,7 +32,7 @@ handle_cast({error, Reason}, Socket) ->
handle_info({tcp, _, Data}, Socket) ->
%pbx_acse:decode(Data),
Pdu = pbx_pdu:decode(Data),
- io:format("PDU ~p~n", [Pdu]),
+ io:format("PDU: ~p~n", [Pdu]),
gen_event:notify(pbx_pdu, Pdu),
{noreply, Socket};