Revision: b4fe6b704864
Author: Sergey Vetyutnev <[email protected]>
Date: Wed Dec 5 00:27:58 2012
Log: Adding dialodId into an unstructured TCAP Dialog
http://code.google.com/p/jss7/source/detail?r=b4fe6b704864
Modified:
/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java
=======================================
---
/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java
Tue Dec 4 05:29:11 2012
+++
/tcap/tcap-impl/src/main/java/org/mobicents/protocols/ss7/tcap/TCAPProviderImpl.java
Wed Dec 5 00:27:58 2012
@@ -248,9 +248,9 @@
throw new NullPointerException("RemoteAddress must not be
null");
}
+ Long id = this.getAvailableTxId();
if (structured) {
synchronized (this.dialogs) {
- Long id = this.getAvailableTxId();
DialogImpl di = new DialogImpl(localAddress, remoteAddress, id,
structured, this._EXECUTOR, this, seqControl, this.stack.getPreviewMode());
this.dialogs.put(id, di);
@@ -258,7 +258,7 @@
return di;
}
} else {
- DialogImpl di = new DialogImpl(localAddress, remoteAddress, null,
structured, this._EXECUTOR, this, seqControl, this.stack.getPreviewMode());
+ DialogImpl di = new DialogImpl(localAddress, remoteAddress, id,
structured, this._EXECUTOR, this, seqControl, this.stack.getPreviewMode());
return di;
}
}