summaryrefslogtreecommitdiff
path: root/src/pbx_rose.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/pbx_rose.erl')
-rw-r--r--src/pbx_rose.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pbx_rose.erl b/src/pbx_rose.erl
index 6328226..0c0f09d 100644
--- a/src/pbx_rose.erl
+++ b/src/pbx_rose.erl
@@ -75,8 +75,7 @@ init(_Args) ->
{ok, {present, 0}}.
handle_event({invoke, Invoke = #'Invoke'{opcode = ?STATUS}}, _State) ->
- Status = pbx_status:decode(Invoke#'Invoke'.argument),
- case pbx_status:value(Status) of
+ case pbx_status:decode(Invoke#'Invoke'.argument) of
normal ->
reply(Invoke, pbx_status:encode());
_ ->