summaryrefslogtreecommitdiff
path: root/src/pbx_status.erl
blob: 67e47664ce0dedf976f12045602b27f8903e38b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-module(pbx_status).

-export([decode/1, encode/0]).

-include("CSTA-system-status.hrl").

decode(Data) ->
	Status = 'CSTA-system-status':decode('SystemStatusArg', Data),
	value(Status).

encode() ->
	'CSTA-system-status':encode('SystemStatusRes', {noData, []}).

value({ok, #'SystemStatusArg'{systemStatus = Status}}) ->
	Status.