Skip to content

Commit

Permalink
WHISTLE-1869: udpate specs, and listen for reg query reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti committed Jan 22, 2013
1 parent 3344a3f commit d22bf2f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions whistle_apps/apps/registrar/src/registrar_listener.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%%-------------------------------------------------------------------
%%% @copyright (C) 2011-2012, VoIP INC
%%% @copyright (C) 2011-2013, 2600Hz INC
%%% @doc
%%% Listener for authn_req, reg_success, and reg_query AMQP requests
%%% @end
Expand All @@ -23,7 +23,7 @@
-include("reg.hrl").

-define(RESPONDERS, [{{reg_query, req_query_req}, [{<<"directory">>, <<"reg_query">>}]}]).
-define(BINDINGS, [{registration, [{retrict_to, [reg_success]}]}
-define(BINDINGS, [{registration, [{retrict_to, [reg_success, reg_query]}]}
,{self, []}
]).

Expand Down Expand Up @@ -52,8 +52,7 @@ start_link() ->
], []).

-spec stop/1 :: (pid()) -> 'ok'.
stop(Srv) ->
gen_listener:stop(Srv).
stop(Srv) -> gen_listener:stop(Srv).

%%%===================================================================
%%% gen_listener callbacks
Expand All @@ -72,7 +71,7 @@ stop(Srv) ->
%%--------------------------------------------------------------------
init([]) ->
process_flag(trap_exit, true),
lager:debug("starting new registrar server"),
lager:debug("starting new registrar listener"),
{ok, []}.

%%--------------------------------------------------------------------
Expand Down Expand Up @@ -116,6 +115,7 @@ handle_cast(_Msg, State) ->
%% @end
%%--------------------------------------------------------------------
handle_info(_Info, State) ->
lager:debug("unhandled message: ~p", [_Info]),
{noreply, State}.

%%--------------------------------------------------------------------
Expand All @@ -142,7 +142,7 @@ handle_event(_JObj, _State) ->
%%--------------------------------------------------------------------
-spec terminate/2 :: (term(), term()) -> 'ok'.
terminate(_Reason, _) ->
lager:debug("registrar server ~p termination", [_Reason]).
lager:debug("registrar listener ~p termination", [_Reason]).

%%--------------------------------------------------------------------
%% @private
Expand Down

0 comments on commit d22bf2f

Please sign in to comment.