summaryrefslogtreecommitdiff
path: root/src/pbx_conn.erl
diff options
context:
space:
mode:
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};