[jss7] push by amit.bha...@gmail.com - issue 36: Expose local and remote sccp address from MAPDialog on 2012-04-22 13:02 GMT

0 views
Skip to first unread message

js...@googlecode.com

unread,
Apr 22, 2012, 9:02:20 AM4/22/12
to mobicent...@googlegroups.com
Revision: afe95dafc265
Author: amit.b...@gmail.com <amit.b...@gmail.com>
Date: Sun Apr 22 05:57:55 2012
Log: issue 36: Expose local and remote sccp address from MAPDialog

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() {

Reply all
Reply to author
Forward
0 new messages