summaryrefslogtreecommitdiff
path: root/src/pbx_acse.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/pbx_acse.erl')
-rw-r--r--src/pbx_acse.erl10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/pbx_acse.erl b/src/pbx_acse.erl
index 9a3cf47..1376cb9 100644
--- a/src/pbx_acse.erl
+++ b/src/pbx_acse.erl
@@ -4,7 +4,6 @@
-include("ACSE-1.hrl").
-include("CSTA-application-context-information-csta3.hrl").
--export([start_link/0, add_handler/2]).
-export([init/1, handle_event/2, handle_call/2, handle_info/2,
terminate/2, code_change/3]).
-export([encode/1, decode/1]).
@@ -44,14 +43,9 @@ decode(<<Data/binary>>) ->
%%%
-start_link() ->
- gen_event:start_link({local, ?MODULE}).
-
-add_handler(Handler, Args) ->
- gen_event:add_handler(?MODULE, Handler, Args).
-
init(_Args) ->
- {ok, []}.
+ io:format("Init~n"),
+ {ok, undefined}.
handle_event({aare, #'AARE-apdu'{result = Result}}, _State) ->
io:format("AARE ~p~n", [Result]),