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.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pbx_rose.erl b/src/pbx_rose.erl
index d5dba2c..c858d9e 100644
--- a/src/pbx_rose.erl
+++ b/src/pbx_rose.erl
@@ -21,7 +21,7 @@ handle_event({invoke, ?INVOKE(Id, ?STATUS, Data)}, _State) ->
io:format("Status: ~p~n", [Value]),
case Value of
normal ->
- pbx_pdu:notify({status, ?STATUS, pbx_status:encode()});
+ gen_event:notify(self(), {status, ?STATUS, pbx_status:encode()});
_ ->
ok
end,