Revision: 37750eb850d8
Author: Sergey Vetyutnev <[email protected]>
Date: Mon Jun 3 11:24:20 2013
Log: TCAP dialog predefined local TransactionId
http://code.google.com/p/jain-slee/source/detail?r=37750eb850d8&repo=ss7

Modified:
/resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/circuitSwitchedCall/wrappers/CAPServiceCircuitSwitchedCallWrapper.java /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/gprs/wrappers/CAPServiceGprsWrapper.java /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/sms/wrappers/CAPServiceSmsWrapper.java /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/callhandling/wrappers/MAPServiceCallHandlingWrapper.java /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/lsm/wrappers/MAPServiceLsmWrapper.java /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/wrappers/MAPServiceMobilityWrapper.java /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/oam/wrappers/MAPServiceOamWrapper.java /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/pdpContextActivation/wrappers/MAPServicePdpContextActivationWrapper.java /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/sms/wrappers/MAPServiceSmsWrapper.java /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/supplementary/wrappers/MAPServiceSupplementaryWrapper.java /resources/tcap/ra/src/main/java/org/mobicents/slee/resource/tcap/wrappers/TCAPProviderWrapper.java

=======================================
--- /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/circuitSwitchedCall/wrappers/CAPServiceCircuitSwitchedCallWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/circuitSwitchedCall/wrappers/CAPServiceCircuitSwitchedCallWrapper.java Mon Jun 3 11:24:20 2013
@@ -72,20 +72,27 @@
                return this.wrappedCircuitSwitchedCall.isActivated();
        }

- public CAPDialogCircuitSwitchedCall createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress) throws CAPException { - CAPDialogCircuitSwitchedCall capDialog = this.wrappedCircuitSwitchedCall.createNewDialog(appCntx, origAddress, destAddress); - CAPDialogActivityHandle activityHandle = new CAPDialogActivityHandle(capDialog.getLocalDialogId());
+ @Override
+ public CAPDialogCircuitSwitchedCall createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress, Long localTrId)
+ throws CAPException {

- CAPDialogCircuitSwitchedCallWrapper dw = new CAPDialogCircuitSwitchedCallWrapper(capDialog, activityHandle, this.capProviderWrapper.getRa());
-               capDialog.setUserObject(dw);
+ CAPDialogCircuitSwitchedCall capDialog = this.wrappedCircuitSwitchedCall.createNewDialog(appCntx, origAddress, destAddress, localTrId); + CAPDialogActivityHandle activityHandle = new CAPDialogActivityHandle(capDialog.getLocalDialogId());
+
+ CAPDialogCircuitSwitchedCallWrapper dw = new CAPDialogCircuitSwitchedCallWrapper(capDialog, activityHandle, this.capProviderWrapper.getRa());
+ capDialog.setUserObject(dw);
+
+ try {
+ this.capProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new CAPException(e);
+ }

-               try {
-                       
this.capProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new CAPException(e);
-               }
+ return dw;
+ }

-               return dw;
+ public CAPDialogCircuitSwitchedCall createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress) throws CAPException {
+ return this.createNewDialog(appCntx, origAddress, destAddress, null);
        }

public void addCAPServiceListener(CAPServiceCircuitSwitchedCallListener capServiceListener) {
=======================================
--- /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/gprs/wrappers/CAPServiceGprsWrapper.java Sun Feb 10 04:23:12 2013 +++ /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/gprs/wrappers/CAPServiceGprsWrapper.java Mon Jun 3 11:24:20 2013
@@ -72,20 +72,24 @@
                return this.wrappedGprs.isActivated();
        }

- public CAPDialogGprs createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress) throws CAPException { - CAPDialogGprs capDialog = this.wrappedGprs.createNewDialog(appCntx, origAddress, destAddress); - CAPDialogActivityHandle activityHandle = new CAPDialogActivityHandle(capDialog.getLocalDialogId()); + public CAPDialogGprs createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress, Long localTrId) throws CAPException { + CAPDialogGprs capDialog = this.wrappedGprs.createNewDialog(appCntx, origAddress, destAddress, localTrId); + CAPDialogActivityHandle activityHandle = new CAPDialogActivityHandle(capDialog.getLocalDialogId());

- CAPDialogGprsWrapper dw = new CAPDialogGprsWrapper(capDialog, activityHandle, this.capProviderWrapper.getRa());
-               capDialog.setUserObject(dw);
+ CAPDialogGprsWrapper dw = new CAPDialogGprsWrapper(capDialog, activityHandle, this.capProviderWrapper.getRa());
+ capDialog.setUserObject(dw);

-               try {
-                       
this.capProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new CAPException(e);
-               }
+ try {
+ this.capProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new CAPException(e);
+ }
+
+ return dw;
+ }

-               return dw;
+ public CAPDialogGprs createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress) throws CAPException {
+ return this.createNewDialog(appCntx, origAddress, destAddress, null);
        }

public void addCAPServiceListener(CAPServiceGprsListener capServiceListener) {
=======================================
--- /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/sms/wrappers/CAPServiceSmsWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/cap/ra/src/main/java/org/mobicents/slee/resource/cap/service/sms/wrappers/CAPServiceSmsWrapper.java Mon Jun 3 11:24:20 2013
@@ -71,20 +71,25 @@
                return this.wrappedSms.isActivated();
        }

- public CAPDialogSms createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress) throws CAPException { - CAPDialogSms capDialog = this.wrappedSms.createNewDialog(appCntx, origAddress, destAddress); - CAPDialogActivityHandle activityHandle = new CAPDialogActivityHandle(capDialog.getLocalDialogId()); + public CAPDialogSms createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress, Long localTrId) throws CAPException {

- CAPDialogSmsWrapper dw = new CAPDialogSmsWrapper(capDialog, activityHandle, this.capProviderWrapper.getRa());
-               capDialog.setUserObject(dw);
+ CAPDialogSms capDialog = this.wrappedSms.createNewDialog(appCntx, origAddress, destAddress, localTrId); + CAPDialogActivityHandle activityHandle = new CAPDialogActivityHandle(capDialog.getLocalDialogId());
+
+ CAPDialogSmsWrapper dw = new CAPDialogSmsWrapper(capDialog, activityHandle, this.capProviderWrapper.getRa());
+ capDialog.setUserObject(dw);
+
+ try {
+ this.capProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new CAPException(e);
+ }

-               try {
-                       
this.capProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new CAPException(e);
-               }
+ return dw;
+ }

-               return dw;
+ public CAPDialogSms createNewDialog(CAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress) throws CAPException {
+ return this.createNewDialog(appCntx, origAddress, destAddress, null);
        }

public void addCAPServiceListener(CAPServiceSmsListener capServiceListener) {
=======================================
--- /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/callhandling/wrappers/MAPServiceCallHandlingWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/callhandling/wrappers/MAPServiceCallHandlingWrapper.java Mon Jun 3 11:24:20 2013
@@ -73,21 +73,28 @@
                return this.wrappedCallHandling.isActivated();
        }

- public MAPDialogCallHandling createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
-                       AddressString destReference) throws MAPException {
- MAPDialogCallHandling mapDialog = this.wrappedCallHandling.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference); - MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); - MAPDialogCallHandlingWrapper dw = new MAPDialogCallHandlingWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
-               mapDialog.setUserObject(dw);
+ @Override
+ public MAPDialogCallHandling createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference, Long localTrId) throws MAPException {
+
+ MAPDialogCallHandling mapDialog = this.wrappedCallHandling.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, localTrId); + MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); + MAPDialogCallHandlingWrapper dw = new MAPDialogCallHandlingWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
+ mapDialog.setUserObject(dw);
+
+ try {
+ this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new MAPException(e);
+ }

-               try {
-                       
this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new MAPException(e);
-               }
+ return dw;
+ }

-               return dw;
-       }
+ public MAPDialogCallHandling createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference) throws MAPException {
+ return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
+ }

public void addMAPServiceListener(MAPServiceCallHandlingListener mapServiceListener) {
                throw new UnsupportedOperationException();
=======================================
--- /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/lsm/wrappers/MAPServiceLsmWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/lsm/wrappers/MAPServiceLsmWrapper.java Mon Jun 3 11:24:20 2013
@@ -105,25 +105,27 @@

        }

-       /* (non-Javadoc)
- * @see org.mobicents.protocols.ss7.map.api.service.lsm.MAPServiceLsm#createNewDialog(org.mobicents.protocols.ss7.map.api.MAPApplicationContext, org.mobicents.protocols.ss7.sccp.parameter.SccpAddress, org.mobicents.protocols.ss7.map.api.primitives.AddressString, org.mobicents.protocols.ss7.sccp.parameter.SccpAddress, org.mobicents.protocols.ss7.map.api.primitives.AddressString)
-        */
- public MAPDialogLsm createNewDialog(MAPApplicationContext mapapplicationcontext, SccpAddress sccpaddress, AddressString addressstring, - SccpAddress sccpaddress1, AddressString addressstring1) throws MAPException { + public MAPDialogLsm createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference, Long localTrId) throws MAPException {

- MAPDialogLsm mapDialogLsm = this.wrappedLSM.createNewDialog(mapapplicationcontext, sccpaddress, addressstring, sccpaddress1, addressstring1); - MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialogLsm.getLocalDialogId()); - MAPDialogLsmWrapper dw = new MAPDialogLsmWrapper(mapDialogLsm, activityHandle, this.mapProviderWrapper.getRa());
-               mapDialogLsm.setUserObject(dw);
-
-               try {
-                       
this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new MAPException(e);
-               }
-
-               return dw;
-       }
+ MAPDialogLsm mapDialogLsm = this.wrappedLSM.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, localTrId); + MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialogLsm.getLocalDialogId()); + MAPDialogLsmWrapper dw = new MAPDialogLsmWrapper(mapDialogLsm, activityHandle, this.mapProviderWrapper.getRa());
+ mapDialogLsm.setUserObject(dw);
+
+ try {
+ this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new MAPException(e);
+ }
+
+ return dw;
+ }
+
+ public MAPDialogLsm createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference) throws MAPException {
+ return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
+ }

        /* (non-Javadoc)
* @see org.mobicents.protocols.ss7.map.api.service.lsm.MAPServiceLsm#removeMAPServiceListener(org.mobicents.protocols.ss7.map.api.service.lsm.MAPServiceLsmListener)
=======================================
--- /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/wrappers/MAPServiceMobilityWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/mobility/wrappers/MAPServiceMobilityWrapper.java Mon Jun 3 11:24:20 2013
@@ -55,23 +55,27 @@

        }

- public MAPDialogMobility createNewDialog(MAPApplicationContext mapapplicationcontext, SccpAddress sccpaddress, - AddressString addressstring, SccpAddress sccpaddress1, AddressString addressstring1) throws MAPException { - MAPDialogMobility mapDialog = this.wrappedMobility.createNewDialog(mapapplicationcontext, sccpaddress,
-                               addressstring, sccpaddress1, addressstring1);
- MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); - MAPDialogMobilityWrapper dw = new MAPDialogMobilityWrapper(mapDialog, activityHandle,
-                               this.mapProviderWrapper.getRa());
-               mapDialog.setUserObject(dw);
+ public MAPDialogMobility createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference, Long localTrId) throws MAPException {

-               try {
-                       
this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new MAPException(e);
-               }
+ MAPDialogMobility mapDialog = this.wrappedMobility.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, localTrId); + MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); + MAPDialogMobilityWrapper dw = new MAPDialogMobilityWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
+ mapDialog.setUserObject(dw);
+
+ try {
+ this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new MAPException(e);
+ }
+
+ return dw;
+ }

-               return dw;
-       }
+ public MAPDialogMobility createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference) throws MAPException {
+ return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
+ }

        public void removeMAPServiceListener(MAPServiceMobilityListener arg0) {
                throw new UnsupportedOperationException();
=======================================
--- /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/oam/wrappers/MAPServiceOamWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/oam/wrappers/MAPServiceOamWrapper.java Mon Jun 3 11:24:20 2013
@@ -76,22 +76,29 @@
                throw new UnsupportedOperationException();
        }

-       @Override
- public MAPDialogOam createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
-                       AddressString destReference) throws MAPException {
- MAPDialogOam mapDialog = this.wrappedOam.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference); - MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); - MAPDialogOamWrapper dw = new MAPDialogOamWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
-               mapDialog.setUserObject(dw);
+ @Override
+ public MAPDialogOam createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference, Long localTrId) throws MAPException {
+
+ MAPDialogOam mapDialog = this.wrappedOam.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, localTrId); + MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); + MAPDialogOamWrapper dw = new MAPDialogOamWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
+ mapDialog.setUserObject(dw);
+
+ try {
+ this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new MAPException(e);
+ }

-               try {
-                       
this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new MAPException(e);
-               }
+ return dw;
+ }

-               return dw;
-       }
+ @Override
+ public MAPDialogOam createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference) throws MAPException {
+ return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
+ }

        public void removeMAPServiceListener(MAPServiceOamListener arg0) {
                throw new UnsupportedOperationException();
=======================================
--- /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/pdpContextActivation/wrappers/MAPServicePdpContextActivationWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/pdpContextActivation/wrappers/MAPServicePdpContextActivationWrapper.java Mon Jun 3 11:24:20 2013
@@ -75,21 +75,28 @@
public void addMAPServiceListener(MAPServicePdpContextActivationListener arg0) {
                throw new UnsupportedOperationException();
        }
+
+ public MAPDialogPdpContextActivation createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, + SccpAddress destAddress, AddressString destReference, Long localTrId) throws MAPException {
+
+ MAPDialogPdpContextActivation mapDialog = this.wrappedPdpContextActivation.createNewDialog(appCntx, origAddress, origReference, destAddress,
+ destReference, localTrId);
+ MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); + MAPDialogPdpContextActivationWrapper dw = new MAPDialogPdpContextActivationWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
+ mapDialog.setUserObject(dw);
+
+ try {
+ this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new MAPException(e);
+ }
+
+ return dw;
+ }

public MAPDialogPdpContextActivation createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress, AddressString destReference) throws MAPException { - MAPDialogPdpContextActivation mapDialog = this.wrappedPdpContextActivation.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference); - MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); - MAPDialogPdpContextActivationWrapper dw = new MAPDialogPdpContextActivationWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
-               mapDialog.setUserObject(dw);
-
-               try {
-                       
this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new MAPException(e);
-               }
-
-               return dw;
+ return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
        }

public void removeMAPServiceListener(MAPServicePdpContextActivationListener arg0) {
=======================================
--- /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/sms/wrappers/MAPServiceSmsWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/sms/wrappers/MAPServiceSmsWrapper.java Mon Jun 3 11:24:20 2013
@@ -122,23 +122,28 @@
         * org.mobicents.protocols.ss7.sccp.parameter.SccpAddress,
         * org.mobicents.protocols.ss7.map.api.primitives.AddressString)
         */
- public MAPDialogSmsWrapper createNewDialog(MAPApplicationContext mapapplicationcontext, SccpAddress sccpaddress, - AddressString addressstring, SccpAddress sccpaddress1, AddressString addressstring1) throws MAPException { - MAPDialogSms mapDialog = this.wrappedSMS.createNewDialog(mapapplicationcontext, sccpaddress, addressstring,
-                               sccpaddress1, addressstring1);
- MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); + public MAPDialogSms createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference) throws MAPException {
+ return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
+       }

- MAPDialogSmsWrapper dw = new MAPDialogSmsWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
-               mapDialog.setUserObject(dw);
+ @Override
+ public MAPDialogSms createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference, Long localTrId) throws MAPException {
+ MAPDialogSms mapDialog = this.wrappedSMS.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, localTrId); + MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId());
+
+ MAPDialogSmsWrapper dw = new MAPDialogSmsWrapper(mapDialog, activityHandle, this.mapProviderWrapper.getRa());
+ mapDialog.setUserObject(dw);

-               try {
-                       
this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new MAPException(e);
-               }
+ try {
+ this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new MAPException(e);
+ }

-               return dw;
-       }
+ return dw;
+ }

        /*
         * (non-Javadoc)
=======================================
--- /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/supplementary/wrappers/MAPServiceSupplementaryWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/map/ra/src/main/java/org/mobicents/slee/resource/map/service/supplementary/wrappers/MAPServiceSupplementaryWrapper.java Mon Jun 3 11:24:20 2013
@@ -23,6 +23,7 @@
 package org.mobicents.slee.resource.map.service.supplementary.wrappers;

 import org.mobicents.protocols.ss7.map.api.MAPApplicationContext;
+import org.mobicents.protocols.ss7.map.api.MAPDialog;
 import org.mobicents.protocols.ss7.map.api.MAPException;
 import org.mobicents.protocols.ss7.map.api.MAPProvider;
 import org.mobicents.protocols.ss7.map.api.dialog.ServingCheckData;
@@ -114,6 +115,25 @@
                throw new UnsupportedOperationException();

        }
+
+ @Override
+ public MAPDialogSupplementary createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference, Long localTrId) throws MAPException {
+
+ MAPDialogSupplementary mapDialog = this.wrappedUSSD.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, localTrId); + MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); + MAPDialogSupplementaryWrapper dw = new MAPDialogSupplementaryWrapper(mapDialog, activityHandle,
+ this.mapProviderWrapper.getRa());
+ mapDialog.setUserObject(dw);
+
+ try {
+ this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
+ } catch (Exception e) {
+ throw new MAPException(e);
+ }
+
+ return dw;
+ }

        /*
         * (non-Javadoc)
@@ -127,25 +147,10 @@
         * org.mobicents.protocols.ss7.sccp.parameter.SccpAddress,
         * org.mobicents.protocols.ss7.map.api.primitives.AddressString)
         */
- public MAPDialogSupplementary createNewDialog(MAPApplicationContext mapapplicationcontext, SccpAddress sccpaddress, - AddressString addressstring, SccpAddress sccpaddress1, AddressString addressstring1) throws MAPException {
-
- MAPDialogSupplementary mapDialog = this.wrappedUSSD.createNewDialog(mapapplicationcontext, sccpaddress,
-                               addressstring, sccpaddress1, addressstring1);
- MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); - MAPDialogSupplementaryWrapper dw = new MAPDialogSupplementaryWrapper(mapDialog, activityHandle,
-                               this.mapProviderWrapper.getRa());
-               mapDialog.setUserObject(dw);
-
-               try {
-                       
this.mapProviderWrapper.getRa().startSuspendedActivity(dw);
-               } catch (Exception e) {
-                       throw new MAPException(e);
-               }
-
-               return dw;
-
-       }
+ public MAPDialogSupplementary createNewDialog(MAPApplicationContext appCntx, SccpAddress origAddress, AddressString origReference, SccpAddress destAddress,
+ AddressString destReference) throws MAPException {
+ return this.createNewDialog(appCntx, origAddress, origReference, destAddress, destReference, null);
+ }

        /*
         * (non-Javadoc)
=======================================
--- /resources/tcap/ra/src/main/java/org/mobicents/slee/resource/tcap/wrappers/TCAPProviderWrapper.java Tue Dec 11 01:02:49 2012 +++ /resources/tcap/ra/src/main/java/org/mobicents/slee/resource/tcap/wrappers/TCAPProviderWrapper.java Mon Jun 3 11:24:20 2013
@@ -91,20 +91,12 @@
                return this.wrappedProvider.getDialogPrimitiveFactory();
        }

-       /*
-        * (non-Javadoc)
-        *
-        * @see
- * org.mobicents.protocols.ss7.tcap.api.TCAPProvider#getNewDialog(org.mobicents
-        * .protocols.ss7.sccp.parameter.SccpAddress,
-        * org.mobicents.protocols.ss7.sccp.parameter.SccpAddress)
-        */
        @Override
- public Dialog getNewDialog(SccpAddress localAddress, SccpAddress remoteAddress) throws TCAPException { + public Dialog getNewDialog(SccpAddress localAddress, SccpAddress remoteAddress, Long trId) throws TCAPException {
                if (this.wrappedProvider == null) {
                        throw new IllegalStateException("RA is has not been 
activated.");
                }
- Dialog wrappedDialog = this.wrappedProvider.getNewDialog(localAddress, remoteAddress); + Dialog wrappedDialog = this.wrappedProvider.getNewDialog(localAddress, remoteAddress, trId);

TCAPDialogActivityHandle activityHanlde = new TCAPDialogActivityHandle(wrappedDialog.getLocalDialogId()); TCAPDialogWrapper dialogWrapper = new TCAPDialogWrapper(activityHanlde, this.ra, wrappedDialog);
@@ -118,6 +110,19 @@
                wrappedDialog.setUserObject(dialogWrapper);
                return dialogWrapper;
        }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.mobicents.protocols.ss7.tcap.api.TCAPProvider#getNewDialog(org.mobicents
+ * .protocols.ss7.sccp.parameter.SccpAddress,
+ * org.mobicents.protocols.ss7.sccp.parameter.SccpAddress)
+ */
+ @Override
+ public Dialog getNewDialog(SccpAddress localAddress, SccpAddress remoteAddress) throws TCAPException {
+ return getNewDialog(localAddress, remoteAddress, null);
+ }

        /*
         * (non-Javadoc)

--

--- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to