...
To enable Web Sockets SIP Connector support with maven plugin, the following configuration should be used.
Code Block |
---|
|
<project>
...
<plugins>
...
<plugin>
<groupId>org.cipango</groupId>
<artifactId>cipango-maven-plugin</artifactId>
<configuration>
<sipConnectors>
<sipConnector implementation="org.cipango.plugin.MavenUdpConnector">
<port>5060</port>
</sipConnector>
<sipConnector implementation="org.cipango.plugin.MavenWebSocketConnector">
<port>8080</port>
</sipConnector>
</sipConnectors>
</configuration>
<dependencies>
<dependency>
<groupId>org.cipango</groupId>
<artifactId>cipango-websocket</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</project>
|
...
To enable diameter support with maven plugin, the following configuration should be used.
Code Block |
---|
|
<project>
...
<plugins>
...
<plugin>
<groupId>org.cipango</groupId>
<artifactId>cipango-maven-plugin</artifactId>
<configuration>
<jettyConfig>etc/diameter-mavenPlugin.xml</jettyConfig>
<extraConfigurationClasses>
<extraConfigurationClasse>org.cipango.server.sipapp.SipXmlConfiguration</extraConfigurationClasse>
<extraConfigurationClasse>org.cipango.diameter.app.DiameterConfiguration</extraConfigurationClasse>
</extraConfigurationClasses>
<webAppConfig>
<contextPath>/</contextPath>
</webAppConfig>
</configuration>
<dependencies>
<dependency>
<groupId>org.cipango</groupId>
<artifactId>cipango-diameter</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</project>
|
Code Block |
---|
| xml |
---|
| xml |
---|
title | etc/diameter-mavenPlugin.xmlxml |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<Call name="addBean">
<Arg>
<New id="node" class="org.cipango.diameter.node.Node">
<Call name="addConnector">
<Arg>
<New class="org.cipango.diameter.bio.DiameterSocketConnector" id="DiameterSocketConnector">
<Set name="host"><Property name="diameter.host"/></Set>
<Set name="port"><Property default="3868" name="diameter.port"/></Set>
<Set name="messageListener">
<New class="org.cipango.diameter.log.FileMessageLogger" id="FileMessageLogger">
<Set name="filename"><Property default="." name="jetty.home"/>/logs/yyyy_mm_dd.diameter.log</Set>
<Set name="append">true</Set>
<Set name="retainDays">31</Set>
</New>
</Set>
</New>
</Arg>
</Call>
<!-- Add supported applications -->
<!-- Uncomment to set the applications supported -->
<!--
<Call name="addSupportedApplication">
<Arg>
<Get name="SH_APPLICATION_ID" class="org.cipango.diameter.ims.Sh"/>
</Arg>
</Call>
-->
<Call name="addPeer">
<Arg>
<New class="org.cipango.diameter.node.Peer">
<Arg>sip1.nexcom.voip</Arg>
</New>
</Arg>
</Call>
<Set name="statsOn">true</Set>
</New>
</Arg>
</Call>
</Configure>
|