public class SipStack extends Configure
SipStack attributes are: the default SIP port, deafult supported transport protocols, timeouts, log configuration, etc.
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
allowed_methods
List of supported methods.
|
static java.lang.String |
authors
Authors
|
static boolean |
auto_prack
Whether automatically sending PRACK messsages for incoming reliable 1xx responses in an INVITE dialog.
|
static boolean |
auto_trying
Whether at UAS side automatically sending (by default) a 100 Trying on INVITE.
|
static long |
clearing_timeout
clearing timeout (milliseconds); T4 in RFC2361; they suggest T4=5sec
|
static int |
debug_level
Log level.
|
static int |
default_expires
Default 'expires' value in seconds.
|
static int |
default_nmax_connections
Default max number of contemporary open transport connections.
|
static int |
default_port
Default SIP port.
|
static int |
default_session_interval
Default session interval (Session-Expires header field) for supporting "Session Timers" (RFC 4028).
|
static java.lang.String |
default_tls_cert_file
For TLS.
|
static java.lang.String |
default_tls_key_file
For TLS.
|
static int |
default_tls_port
Default SIP port for TLS transport (SIPS).
|
static boolean |
default_tls_trust_all
For TLS.
|
static java.lang.String |
default_tls_trust_folder
For TLS.
|
static java.lang.String[] |
default_tls_trusted_certs
For TLS. names of the files containing trusted certificates.
|
static java.lang.String[] |
default_transport_protocols
Default supported transport protocols.
|
static boolean |
early_dialog
Whether 1xx responses create an "early dialog" for methods that create dialog.
|
static java.lang.String |
event_log_filename
Event log file name; the log file will be opened only when method init() is called
|
static Logger |
event_logger
Event logger.
|
static boolean |
force_rport
Whether adding (forcing) 'rport' parameter on via header fields of incoming requests.
|
static java.lang.String |
log_path
Path for the log folder where log files are written.
|
static int |
log_rotations
The number of rotations of log files.
|
static int |
max_forwards
default max-forwards value (RFC3261 recommends value 70)
|
static int |
max_logsize
The size limit of the log file [kB]
|
static long |
max_retransmission_timeout
maximum retransmission timeout (milliseconds); called T2 in RFC2361; they suggest T2=4sec
|
static java.lang.String |
message_log_filename
Message log file name; the log file will be opened only when method init() is called
|
static Logger |
message_logger
Message logger.
|
static int |
min_session_interval
Minimum session interval (Min-SE header field) for supporting "Session Timers" (RFC 4028).
|
static boolean |
on_dialog_route
Whether forcing this node to stay within the dialog route as peer,
by means of the insertion of a RecordRoute header.
|
static java.lang.String |
OTAG_100rel
Extension option tag "100rel".
|
static java.lang.String |
OTAG_precondition
Extension option tag "precondition".
|
static java.lang.String |
OTAG_timer
Extension option tag "timer".
|
static int |
regc_auth_attempts
maximum number of consecutive registration authentication attempts before giving up
|
static long |
regc_max_attempt_timeout
maximum registration timeout (msecs) after a registration failure due to request timeout
|
static long |
regc_min_attempt_timeout
starting registration timeout (msecs) after a registration failure due to request timeout
|
static java.lang.String |
release
Release
|
static java.lang.String[] |
required_option_tags
Required option-tags for corresponding required extensions.
|
static long |
retransmission_timeout
starting retransmission timeout (milliseconds); called T1 in RFC2361; they suggest T1=500ms
|
static int |
rotation_scale
The rotation time scale
|
static int |
rotation_time
The rotation time value
|
static java.lang.String |
server_info
Server info included in response messages in the 'Server' header field
Use "NONE" if the 'Server' header filed must not be added.
|
static java.lang.String[] |
supported_option_tags
Supported option-tags for corresponding supported extensions.
|
static boolean |
timer_daemon_mode
Whether the default timer mode is 'daemon', or not.
|
static long |
transaction_timeout
transaction timeout (milliseconds); RFC2361 suggests 64*T1=32000ms
|
static java.lang.String |
ua_info
UA info included in request messages in the 'User-Agent' header field.
|
static boolean |
use_rport
Whether adding 'rport' parameter on via header fields of outgoing requests.
|
static java.lang.String |
version
Version
|
Modifier and Type | Method and Description |
---|---|
static void |
init()
Inits SipStack
|
static void |
init(java.lang.String file)
Inits SipStack from the specified file
|
static boolean |
isInit()
Whether SipStack has been already initialized
|
protected void |
parseLine(java.lang.String line)
Parses a single text line (read from the config file)
|
protected java.lang.String |
toLines()
Converts the entire object into lines (to be saved into the config file)
|
public static final java.lang.String version
public static final java.lang.String release
public static final java.lang.String authors
public static final java.lang.String OTAG_100rel
public static final java.lang.String OTAG_timer
public static final java.lang.String OTAG_precondition
public static int default_port
public static int default_tls_port
public static java.lang.String[] default_transport_protocols
public static int default_nmax_connections
public static boolean use_rport
public static boolean force_rport
public static boolean default_tls_trust_all
public static java.lang.String[] default_tls_trusted_certs
public static java.lang.String default_tls_trust_folder
public static java.lang.String default_tls_cert_file
public static java.lang.String default_tls_key_file
public static long retransmission_timeout
public static long max_retransmission_timeout
public static long transaction_timeout
public static long clearing_timeout
public static int max_forwards
public static boolean timer_daemon_mode
public static boolean auto_trying
public static boolean early_dialog
public static boolean auto_prack
public static int default_expires
public static java.lang.String ua_info
public static java.lang.String server_info
public static java.lang.String[] supported_option_tags
public static java.lang.String[] required_option_tags
public static java.lang.String[] allowed_methods
public static int min_session_interval
public static int default_session_interval
public static long regc_min_attempt_timeout
public static long regc_max_attempt_timeout
public static int regc_auth_attempts
public static int debug_level
public static java.lang.String log_path
public static int max_logsize
public static int log_rotations
public static int rotation_scale
public static int rotation_time
public static java.lang.String event_log_filename
public static Logger event_logger
public static java.lang.String message_log_filename
public static Logger message_logger
public static boolean on_dialog_route
protected void parseLine(java.lang.String line)
protected java.lang.String toLines()
public static void init()
public static void init(java.lang.String file)
public static boolean isInit()