Revision: 15514
Author: baranowb
Date: Fri Nov 26 04:10:16 2010
Log: [No log message]
http://code.google.com/p/mobicents/source/detail?r=15514

Modified:
/trunk/servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/zap/MTPUser.java
 /trunk/servers/media/core/server-standalone/src/main/config/ss7-beans.xml

=======================================
--- /trunk/servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/zap/MTPUser.java Wed Oct 6 06:44:55 2010 +++ /trunk/servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/zap/MTPUser.java Fri Nov 26 04:10:16 2010
@@ -66,6 +66,8 @@
     private int opc;
     /** Destination point code */
     private int dpc;
+    /** Sub-Service */
+ private int ssi = Mtp3.DEFAULT_SSI;//good as any, since 0 is valid value...
     /** physical channels */
     private List<Mtp1> channels;
     /** MTP layer 3 */
@@ -135,8 +137,22 @@
     public int getDpc() {
         return dpc;
     }
-
-    public void setLocalAddress(String address) {
+    /**
+     * Fetches Sub-Service part of SI octet.
+     * @return
+     */
+    public int getSsi() {
+               return ssi;
+       }
+    /**
+     * Sets Sub-Service part of SI octet to be used for communication.
+     * @param ssi
+     */
+       public void setSsi(int ssi) {
+               this.ssi = ssi;
+       }
+
+       public void setLocalAddress(String address) {
         this.localAddress = address;
     }

@@ -189,6 +205,7 @@
             mtp3 = new Mtp3(name);
             mtp3.setDpc(dpc);
             mtp3.setOpc(opc);
+            mtp3.setSsi(ssi);
             mtp3.setLinks(linkset);
             mtp3.addMtp3Listener(this);
             logger.info("Point codes are configured");
=======================================
--- /trunk/servers/media/core/server-standalone/src/main/config/ss7-beans.xml Fri Jul 30 04:52:39 2010 +++ /trunk/servers/media/core/server-standalone/src/main/config/ss7-beans.xml Fri Nov 26 04:10:16 2010
@@ -27,6 +27,13 @@
                <property name="name">TEST_1</property>
                <property name="opc">14133</property>
                <property name="dpc">14150</property>
+               <!--
+               (0000) 0 International network
+               (0001) 1 Spare (for international use only)
+               (0010) 2 National network
+               (0011) 3 Reserved for national use
+                -->
+               <property name="ssi">2</property>
                <property name="localAddress">127.0.0.1</property>
                <property name="localPort">3434</property>
                <property name="remoteAddress">127.0.0.1</property>

Reply via email to