http://code.google.com/p/jss7/source/detail?r=afe95dafc265
Modified:
/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPDialog.java
/map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/MAPDialogImpl.java
=======================================
---
/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPDialog.java
Mon Mar 5 02:17:22 2012
+++
/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/MAPDialog.java
Sun Apr 22 05:57:55 2012
@@ -29,6 +29,7 @@
import org.mobicents.protocols.ss7.map.api.primitives.AddressString;
import org.mobicents.protocols.ss7.map.api.primitives.IMSI;
import
org.mobicents.protocols.ss7.map.api.primitives.MAPExtensionContainer;
+import org.mobicents.protocols.ss7.sccp.parameter.SccpAddress;
import org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog;
import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke;
import org.mobicents.protocols.ss7.tcap.asn.comp.Problem;
@@ -83,6 +84,18 @@
* @return
*/
public MAPServiceBase getService();
+
+ /**
+ *
+ * @return - sccp address which represents local peer
+ */
+ public SccpAddress getLocalAddress();
+
+ /**
+ *
+ * @return - sccp address which represents remote peer
+ */
+ public SccpAddress getRemoteAddress();
/**
* Set ExtentionContainer that will be send in 1) T-BEGIN 2) T-CONTINUE or
=======================================
---
/map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/MAPDialogImpl.java
Mon Mar 5 02:17:22 2012
+++
/map/map-impl/src/main/java/org/mobicents/protocols/ss7/map/MAPDialogImpl.java
Sun Apr 22 05:57:55 2012
@@ -39,6 +39,7 @@
import org.mobicents.protocols.ss7.map.api.primitives.IMSI;
import
org.mobicents.protocols.ss7.map.api.primitives.MAPExtensionContainer;
import org.mobicents.protocols.ss7.map.errors.MAPErrorMessageImpl;
+import org.mobicents.protocols.ss7.sccp.parameter.SccpAddress;
import org.mobicents.protocols.ss7.tcap.api.TCAPException;
import org.mobicents.protocols.ss7.tcap.api.TCAPSendException;
import org.mobicents.protocols.ss7.tcap.api.tc.dialog.Dialog;
@@ -47,12 +48,12 @@
import org.mobicents.protocols.ss7.tcap.api.tc.dialog.events.TCEndRequest;
import org.mobicents.protocols.ss7.tcap.asn.ApplicationContextName;
import org.mobicents.protocols.ss7.tcap.asn.TcapFactory;
-import org.mobicents.protocols.ss7.tcap.asn.comp.Problem;
-import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnError;
-import org.mobicents.protocols.ss7.tcap.asn.comp.Reject;
import org.mobicents.protocols.ss7.tcap.asn.comp.ErrorCode;
-import org.mobicents.protocols.ss7.tcap.asn.comp.Parameter;
import org.mobicents.protocols.ss7.tcap.asn.comp.Invoke;
+import org.mobicents.protocols.ss7.tcap.asn.comp.Parameter;
+import org.mobicents.protocols.ss7.tcap.asn.comp.Problem;
+import org.mobicents.protocols.ss7.tcap.asn.comp.Reject;
+import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnError;
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResult;
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast;
@@ -102,6 +103,14 @@
this.destReference = destReference;
this.origReference = origReference;
}
+
+ public SccpAddress getLocalAddress(){
+ return this.getTcapDialog().getLocalAddress();
+ }
+
+ public SccpAddress getRemoteAddress(){
+ return this.getTcapDialog().getRemoteAddress();
+ }
@Override
public void keepAlive() {