forked from NetComposer/nksip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,8 @@ | |
-module(nksip_pbx). | ||
-author('Carlos Gonzalez <[email protected]>'). | ||
|
||
-export([start/0, stop/0, trace/1, loglevel/1]). | ||
-export([start/0, stop/0]). | ||
-export([check_speed/1, get_speed/0, trace/1, loglevel/1]). | ||
|
||
%% =================================================================== | ||
%% Start & Stop | ||
|
@@ -49,11 +50,23 @@ stop() -> | |
%% Utilities | ||
%% =================================================================== | ||
|
||
%% @doc Stops or restart automatic response time detection. | ||
check_speed(Bool) -> | ||
nksip:cast(pbx, {check_speed, Bool}). | ||
|
||
|
||
%% @doc Get all registered endpoints with their last respnse time. | ||
get_speed() -> | ||
nksip:call(pbx, get_speed). | ||
|
||
|
||
%% @doc Enables SIP trace messages to console. | ||
-spec trace(Start::boolean()) -> ok. | ||
|
||
trace(true) -> nksip_trace:start(); | ||
trace(false) -> nksip_trace:stop(). | ||
trace(true) -> | ||
nksip_trace:start(); | ||
trace(false) -> | ||
nksip_trace:stop(). | ||
|
||
|
||
%% @doc Changes console log level. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters