Sun GlassFish Communications Server 2.0 Administration Guide

SIP Service

You can change the following attributes of SIP service through the Admin Console, or by using the asadmin get and set commands. The SIP service attributes apply to all the listeners in the SIP service.

The sub-elements of the SIP service are the Access Log, Request Processing, Keep-Alive, SIP protocol, SIP listeners, and Connection Pool.

To edit SIP service sub-elements and their attributes through the Admin Console, click Configuration > config-name > SIP Service.

To list all the sub-elements of the SIP service, you can use the following command:

list server-config.sip-service.*

Typical output is as follows:


server-config.sip-service.access-log
server-config.sip-service.connection-pool
server-config.sip-service.keep-alive
server-config.sip-service.request-processing
server-config.sip-service.sip-listener.sip-listener-1
server-config.sip-service.sip-listener.sip-listener-2
server-config.sip-service.sip-listener.sip-listener-2.ssl
server-config.sip-service.sip-listener.sip-listener-3
server-config.sip-service.sip-protocol
server-config.sip-service.sip-protocol.sip-link
server-config.sip-service.sip-protocol.sip-timers

Setting the SIP Service Access Log Attributes

You can enable and configure rotation for the access logs for the SIP service. These logs are in the as-install/domains/domain_dir/logs/sipaccess directory and are named as follows: sip_access_log.yyyy-mm-dd. This location can be changed by editing the accesslog property under the sip-service element.

The accessLoggingEnabled property under sip-service is used for enabling SIP access log. Restart the server after enabling or disabling the access log. Use the following command:

asadmin set config.sip-service.property.accessLoggingEnabled=true

The accesslogsize property under sip-service can be used for log rotation based on file size. The default value of this property if set to 2000000.

The following is the list of SIP service access log attributes (The actual attribute name as defined in the domain.xml file appears in brackets)

You can edit these properties through the Admin Console or through the following get and set commands

To get the values of all properties of the SIP service access log, use the following command: asadmin get server-config.sip-service.access-log.*

To set an attribute of the SIP service access log, use the set command as follows: asadmin set server-config.sip-service.access-log.rotation-enabled=false

Setting the SIP Service Keep Alive Attributes

You can edit these attributes through the Admin Console or through the following get and set commands

To get the values of all attributes and properties of the SIP service keep-alive, use the following command: asadmin get server-config.sip-service.keep-alive.*

You can set the timeout-in-seconds property of the SIP service keep-alive. By default, this property is set to —1. A value of 0 or less means keep alive connections are kept open indefinitely.

To set an attribute of the SIP service keep-alive, use the set command as follows: asadmin set server-config.sip-service.keep-alive.timeout-in-seconds=0

Setting the SIP Service Connection Pool Attributes

You can edit these attributes through the Admin Console or through the following get and set commands

To get the values of all attributes of the SIP service connection pool, use the following command: asadmin get server-config.sip-service.connection-pool.*

To set an attribute of the SIP service connection pool, use the set command as follows: asadmin set server-config.sip-service.connection-pool.receive-buffer-size-in-bytes=10

Setting the SIP Service Protocol Attributes

You can edit these attributes through the Admin Console or through the following get and set commands

To get the values of all attributes and properties of the SIP service protocol, use the following command: asadmin get server-config.sip-service.sip-protocol.*

To set an attribute of the SIP service protocol, use the set command as follows: asadmin set server-config.sip-service.sip-protocol.default-tcp-transport=false

The SIP Service Protocol has a sub-element called SIP timer. You can list the sub-elements of the SIP service protocol by using the following command: asadmin list server-config.sip-service.access-log.*

To get the values of all attributes and properties of the SIP service timers, use the following command: asadmin get server-config.sip-service.protocol.sip-timers.*