From 86cf1c33fb2b3258fd2b9dd3b093f2056111da47 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 11 Nov 2015 20:32:08 +0100 Subject: notify self --- src/pbx_rose.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pbx_rose.erl') 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, -- cgit v1.2.3