This appendix describes all commands available in sipservlet-console.
- How to add the SIP Servlet Ant tasks to your project
- Parameters common to all Ant tasks
- Ant tasks
- connect
- install
- uninstall
- resolve
- activate
- deactivate
- deploy (macro)
- undeploy (macro)
- settracerlevel (macro)
- createapplicationnameref
- removeapplicationnameref
- createnetworkinterface
- removenetworkinterface
- enablenetworkinterface
- disablenetworkinterface
- updatenetworkinterface
- adddefaultnetworkroute
- addnetworkroute
- removedefaultnetworkroute
- removenetworkroute
- updatedefaultnetworkroute
- updatenetworkroute
- installdarconfig
- uninstalldarconfig
- Service element
- Property element
How to add the SIP Servlet Ant tasks to your project
-
Import Rhino SIP Servlet’s
common.xml
:<import file="/path/to/rhino/sipservlet/common.xml"/>
-
Declare a namespace for the SIP Servlet tasks:
<project name="servlet-app" xmlns:sipservlet="antlib:com.opencloud.sipservlet.ant">
-
Use the Ant tasks in your targets:
<sipservlet:connect raentity="ss"/> <sipservlet:install srcfile="${jars}/servlet-app.sar"/>
Parameters common to all Ant tasks
All Rhino SIP Servlet Ant tasks support these optional attributes:
Attribute | Description | Required |
---|---|---|
connectionrefid |
The id of a previous |
No, defaults to last successful connection. |
failonerror |
Default failure behaviour for this task. If set to "false" or "no", the build will continue when this task attempts a redundant action, such as installing an application that already exists. Unrecoverable errors will still fail the build. |
No, default is "false". |
Ant tasks
Below are descriptions and parameters for SIP Servlet Ant tasks.
connect
What it does |
Establishes a connection to a SIP Servlet RA entity. Connections are saved in memory for use by subsequent SIP Servlet tasks in the same Ant build (same JVM instance). Therefore this task must be executed before any other SIP Servlet tasks. Subsequent SIP Servlet tasks in the build use the last successful connection, unless a different connection is requested using the The |
|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
install
What it does |
Installs SIP Application SAR archives. Packages a SAR archive for deployment on Rhino and deploys it as a service. |
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
The location of the SAR file to read, and the URL to associate with it when passing it to Rhino is determined as follows:
|
|||||||||||||||
Parameters available as nested elements |
|
uninstall
What it does |
Uninstalls SIP Application SAR archives. |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
resolve
What it does |
Looks up the application name and |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
|||||||||
Example |
<sipservlet:resolve url="file:${jars}/proxy.sar" prefix="proxy"/> <!-- now use ${proxy.*} properties in script --> <sipservlet:deactivate appname="${proxy.app.name}"/> |
activate
What it does |
Activates a SIP Servlet service using its servlet application name instead of its |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
deactivate
What it does |
Deactivates a SIP Servlet service using its servlet application name instead of its |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
deploy (macro)
What it does |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
||||||||||||
Parameters available as nested elements |
|
undeploy (macro)
What it does |
Macro that deactivates and uninstalls a SIP Servlet application, and removes its application names, in one step. Calls the deactivate and deactivate tasks. |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
settracerlevel (macro)
What it does |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
createapplicationnameref
What it does |
Create a application name reference for a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
||||||
Parameters specified as nested elements |
|
removeapplicationnameref
What it does |
Remove an application name reference from a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
createnetworkinterface
What it does |
Create a network interface definition for a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
||||||
Parameters specified as nested elements |
|
removenetworkinterface
What it does |
Removes a network interface definition from a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
enablenetworkinterface
What it does |
Enables a network interface on a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
disablenetworkinterface
What it does |
Disables a network interface on a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
updatenetworkinterface
What it does |
Updates a network interface definition for a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
||||||
Parameters specified as nested elements |
|
adddefaultnetworkroute
What it does |
Adds a default network route to a SIP Servlet RA entity. An RA entity may only have a single default route. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
addnetworkroute
What it does |
Adds a network route to a SIP Servlet RA entity. |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
removedefaultnetworkroute
What it does |
Removes the default network route from a SIP Servlet RA entity. |
---|---|
Ant parameters |
This task does not have any parameters. |
removenetworkroute
What it does |
Removes a network route from a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
updatedefaultnetworkroute
What it does |
Updates an existing default network route in a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
updatenetworkroute
What it does |
Updates an existing network route in a SIP Servlet RA entity. |
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
installdarconfig
What it does |
Installs a Default Application Router (DAR) configuration in a SIP Servlet RA entity. |
||||||
---|---|---|---|---|---|---|---|
Ant parameters |
|
||||||
Inline DAR configuration |
If the |
||||||
Examples |
<sipservlet:installdarconfig file="${resources}/prepay.dar.properties"/>
<sipservlet:installdarconfig> INVITE: ("prepay", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0") SUBSCRIBE: ("presence", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "1") </sipservlet:installdarconfig>} |
uninstalldarconfig
What it does |
Uninstalls the Default Application Router (DAR) configuration from a SIP Servlet RA entity. |
|||
---|---|---|---|---|
Ant parameters |
|
Service element
What it does |
SIP Servlet tasks that require a |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|
Property element
What it does |
This element specifies a property to pass when updating a network interface definition. See Configuring Network Interfaces. |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Ant parameters |
|