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.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pbx_acse.erl b/src/pbx_acse.erl
index 5b37964..d7d1114 100644
--- a/src/pbx_acse.erl
+++ b/src/pbx_acse.erl
@@ -3,10 +3,9 @@
-include("ACSE-1.hrl").
-include("CSTA-application-context-information-csta3.hrl").
--export([associate/0, release/0]).
--export([decode/1, dispatch/1]).
+-export([encode/1, decode/1, dispatch/1]).
-associate() ->
+encode(associate) ->
{ok, UI} = 'CSTA-application-context-information-csta3':encode(
'ACSEUserInformationForCSTA', {newDefinition,
#'NewACSEUserInformationForCSTA'{cSTAVersion = [versionFive]}}),
@@ -15,10 +14,11 @@ associate() ->
'application-context-name' = {1, 3, 12, 0, 218},
'user-information' = [#'EXTERNAL'{
'direct-reference' = {1, 3, 12, 0, 285, 200},
- encoding = {'single-ASN1-type', UI}}]}}).
-
-release() ->
- 'ACSE-1':encode('ACSE-apdu', {rlrq, #'RLRQ-apdu'{}}).
+ encoding = {'single-ASN1-type', UI}}]}});
+encode(release) ->
+ 'ACSE-1':encode('ACSE-apdu', {rlrq, #'RLRQ-apdu'{}});
+encode(Data) ->
+ 'ACSE-1':encode('ACSE-apdu', Data).
decode(Data) ->
'ACSE-1':decode('ACSE-apdu', Data).