Revision: a4d7e0dad398
Author: Sergey Vetyutnev <[email protected]>
Date: Fri Aug 2 09:52:14 2013
Log: Accepting InitialDP with empty IMSI field
http://code.google.com/p/jss7/source/detail?r=a4d7e0dad398
Modified:
/cap/cap-api/src/main/java/org/mobicents/protocols/ss7/cap/api/service/circuitSwitchedCall/InitialDPRequest.java
/cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/InitialDPRequestImpl.java
=======================================
---
/cap/cap-api/src/main/java/org/mobicents/protocols/ss7/cap/api/service/circuitSwitchedCall/InitialDPRequest.java
Mon May 20 13:09:00 2013
+++
/cap/cap-api/src/main/java/org/mobicents/protocols/ss7/cap/api/service/circuitSwitchedCall/InitialDPRequest.java
Fri Aug 2 09:52:14 2013
@@ -53,26 +53,49 @@
/**
*
- initialDP {PARAMETERS-BOUND : bound} OPERATION ::= { ARGUMENT
InitialDPArg {bound} RETURN RESULT FALSE ERRORS
- * {missingCustomerRecord | missingParameter | parameterOutOfRange |
systemFailure | taskRefused | unexpectedComponentSequence |
- * unexpectedDataValue | unexpectedParameter} CODE opcode-initialDP} --
Direction: gsmSSF -> gsmSCF, Timer: Tidp -- This
- * operation is used after a TDP to indicate request for service.
- *
- * InitialDPArg {PARAMETERS-BOUND : bound} ::= SEQUENCE { serviceKey [0]
ServiceKey , (= Integer4) calledPartyNumber [2]
- * CalledPartyNumber {bound} OPTIONAL, callingPartyNumber [3]
CallingPartyNumber {bound} OPTIONAL, callingPartysCategory [5]
- * CallingPartysCategory OPTIONAL, cGEncountered [7] CGEncountered
OPTIONAL, iPSSPCapabilities [8] IPSSPCapabilities {bound}
- * OPTIONAL, (OCTET STRING (1..4)) locationNumber [10] LocationNumber
{bound} OPTIONAL, originalCalledPartyID [12]
- * OriginalCalledPartyID {bound} OPTIONAL, extensions [15] Extensions
{bound} OPTIONAL, highLayerCompatibility [23]
- * HighLayerCompatibility OPTIONAL, additionalCallingPartyNumber [25]
AdditionalCallingPartyNumber {bound} OPTIONAL,
- * bearerCapability [27] BearerCapability {bound} OPTIONAL, eventTypeBCSM
[28] EventTypeBCSM OPTIONAL, redirectingPartyID [29]
- * RedirectingPartyID {bound} OPTIONAL, redirectionInformation [30]
RedirectionInformation OPTIONAL, cause [17] Cause {bound}
- * OPTIONAL, serviceInteractionIndicatorsTwo [32]
ServiceInteractionIndicatorsTwo OPTIONAL, carrier [37] Carrier {bound}
- * OPTIONAL, cug-Index [45] CUG-Index OPTIONAL, cug-Interlock [46]
CUG-Interlock OPTIONAL, cug-OutgoingAccess [47] NULL
- * OPTIONAL, iMSI [50] IMSI OPTIONAL, subscriberState [51] SubscriberState
OPTIONAL, locationInformation [52]
- * LocationInformation OPTIONAL, ext-basicServiceCode [53]
Ext-BasicServiceCode OPTIONAL, callReferenceNumber [54]
- * CallReferenceNumber OPTIONAL, mscAddress [55] ISDN-AddressString
OPTIONAL, calledPartyBCDNumber [56] CalledPartyBCDNumber
- * {bound} OPTIONAL, timeAndTimezone [57] TimeAndTimezone {bound}
OPTIONAL, callForwardingSS-Pending [58] NULL OPTIONAL,
- * initialDPArgExtension [59] InitialDPArgExtension {bound} OPTIONAL, ... }
+ initialDP {PARAMETERS-BOUND : bound} OPERATION ::= {
+ ARGUMENT InitialDPArg {bound}
+ RETURN RESULT FALSE
+ ERRORS {
+ missingCustomerRecord | missingParameter | parameterOutOfRange |
systemFailure | taskRefused | unexpectedComponentSequence |
+ unexpectedDataValue | unexpectedParameter} CODE opcode-initialDP
+ }
+ -- Direction: gsmSSF -> gsmSCF, Timer: Tidp
+ -- This operation is used after a TDP to indicate request for service.
+
+InitialDPArg {PARAMETERS-BOUND : bound} ::= SEQUENCE {
+ serviceKey [0] ServiceKey, (= Integer4)
+ calledPartyNumber [2] CalledPartyNumber {bound} OPTIONAL,
+ callingPartyNumber [3] CallingPartyNumber {bound} OPTIONAL,
+ callingPartysCategory [5] CallingPartysCategory OPTIONAL,
+ cGEncountered [7] CGEncountered OPTIONAL,
+ iPSSPCapabilities [8] IPSSPCapabilities {bound} OPTIONAL,
(OCTET STRING (1..4))
+ locationNumber [10] LocationNumber {bound} OPTIONAL,
+ originalCalledPartyID [12] OriginalCalledPartyID {bound}
OPTIONAL,
+ extensions [15] Extensions {bound} OPTIONAL,
+ highLayerCompatibility [23] HighLayerCompatibility OPTIONAL,
+ additionalCallingPartyNumber [25] AdditionalCallingPartyNumber {bound}
OPTIONAL,
+ bearerCapability [27] BearerCapability {bound} OPTIONAL,
+ eventTypeBCSM [28] EventTypeBCSM OPTIONAL,
+ redirectingPartyID [29] RedirectingPartyID {bound} OPTIONAL,
+ redirectionInformation [30] RedirectionInformation OPTIONAL,
+ cause [17] Cause {bound} OPTIONAL,
+ serviceInteractionIndicatorsTwo [32] ServiceInteractionIndicatorsTwo
OPTIONAL,
+ carrier [37] Carrier {bound} OPTIONAL,
+ cug-Index [45] CUG-Index OPTIONAL,
+ cug-Interlock [46] CUG-Interlock OPTIONAL,
+ cug-OutgoingAccess [47] NULL OPTIONAL,
+ iMSI [50] IMSI OPTIONAL,
+ subscriberState [51] SubscriberState OPTIONAL,
+ locationInformation [52] LocationInformation OPTIONAL,
+ ext-basicServiceCode [53] Ext-BasicServiceCode OPTIONAL,
+ callReferenceNumber [54] CallReferenceNumber OPTIONAL,
+ mscAddress [55] ISDN-AddressString OPTIONAL,
+ calledPartyBCDNumber [56] CalledPartyBCDNumber {bound}
OPTIONAL,
+ timeAndTimezone [57] TimeAndTimezone {bound} OPTIONAL,
+ callForwardingSS-Pending [58] NULL OPTIONAL,
+ initialDPArgExtension [59] InitialDPArgExtension {bound}
OPTIONAL,
+ ... }
*
*
* @author sergey vetyutnev
=======================================
---
/cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/InitialDPRequestImpl.java
Mon May 20 13:09:00 2013
+++
/cap/cap-impl/src/main/java/org/mobicents/protocols/ss7/cap/service/circuitSwitchedCall/InitialDPRequestImpl.java
Fri Aug 2 09:52:14 2013
@@ -526,137 +526,142 @@
break;
default:
- if (ais.getTagClass() == Tag.CLASS_CONTEXT_SPECIFIC) {
- switch (tag) {
- case _ID_calledPartyNumber:
- this.calledPartyNumber = new
CalledPartyNumberCapImpl();
- ((CalledPartyNumberCapImpl)
this.calledPartyNumber).decodeAll(ais);
- break;
- case _ID_callingPartyNumber:
- this.callingPartyNumber = new
CallingPartyNumberCapImpl();
- ((CallingPartyNumberCapImpl)
this.callingPartyNumber).decodeAll(ais);
- break;
- case _ID_callingPartysCategory:
- this.callingPartysCategory = new
CallingPartysCategoryInapImpl();
- ((CallingPartysCategoryInapImpl)
this.callingPartysCategory).decodeAll(ais);
- break;
- case _ID_cGEncountered:
- ais.advanceElement(); // TODO: implement it
- break;
- case _ID_iPSSPCapabilities:
- this.IPSSPCapabilities = new
IPSSPCapabilitiesImpl();
- ((IPSSPCapabilitiesImpl)
this.IPSSPCapabilities).decodeAll(ais);
- break;
- case _ID_locationNumber:
- this.locationNumber = new
LocationNumberCapImpl();
- ((LocationNumberCapImpl)
this.locationNumber).decodeAll(ais);
- break;
- case _ID_originalCalledPartyID:
- this.originalCalledPartyID = new
OriginalCalledNumberCapImpl();
- ((OriginalCalledNumberCapImpl)
this.originalCalledPartyID).decodeAll(ais);
- break;
- case _ID_extensions:
- this.extensions = new CAPExtensionsImpl();
- ((CAPExtensionsImpl)
this.extensions).decodeAll(ais);
- break;
- case _ID_highLayerCompatibility:
- this.highLayerCompatibility = new
HighLayerCompatibilityInapImpl();
- ((HighLayerCompatibilityInapImpl)
this.highLayerCompatibility).decodeAll(ais);
- break;
- case _ID_additionalCallingPartyNumber:
- this.additionalCallingPartyNumber = new
DigitsImpl();
- ((DigitsImpl)
this.additionalCallingPartyNumber).decodeAll(ais);
-
this.additionalCallingPartyNumber.setIsGenericNumber();
- break;
- case _ID_bearerCapability:
- AsnInputStream ais2 =
ais.readSequenceStream();
- ais2.readTag();
- this.bearerCapability = new
BearerCapabilityImpl();
- ((BearerCapabilityImpl)
this.bearerCapability).decodeAll(ais2);
- break;
- case _ID_eventTypeBCSM:
- i1 = (int) ais.readInteger();
- this.eventTypeBCSM =
EventTypeBCSM.getInstance(i1);
- break;
- case _ID_redirectingPartyID:
- this.redirectingPartyID = new
RedirectingPartyIDCapImpl();
- ((RedirectingPartyIDCapImpl)
this.redirectingPartyID).decodeAll(ais);
- break;
- case _ID_redirectionInformation:
- this.redirectionInformation = new
RedirectionInformationInapImpl();
- ((RedirectionInformationInapImpl)
this.redirectionInformation).decodeAll(ais);
- break;
- case _ID_cause:
- ais.advanceElement(); // TODO: implement it
- break;
- case _ID_serviceInteractionIndicatorsTwo:
- ais.advanceElement(); // TODO: implement it
- break;
- case _ID_carrier:
- ais.advanceElement(); // TODO: implement it
- break;
- case _ID_cug_Index:
- ais.advanceElement(); // TODO: implement it
- break;
- case _ID_cug_Interlock:
- ais.advanceElement(); // TODO: implement it
- break;
- case _ID_cug_OutgoingAccess:
- ais.advanceElement(); // TODO: implement it
- break;
- case _ID_iMSI:
- this.imsi = new IMSIImpl();
- ((IMSIImpl) this.imsi).decodeAll(ais);
- break;
- case _ID_subscriberState:
- ais2 = ais.readSequenceStream();
- ais2.readTag();
- this.subscriberState = new
SubscriberStateImpl();
- ((SubscriberStateImpl)
this.subscriberState).decodeAll(ais2);
- break;
- case _ID_locationInformation:
- this.locationInformation = new
LocationInformationImpl();
- ((LocationInformationImpl)
this.locationInformation).decodeAll(ais);
- break;
- case _ID_ext_basicServiceCode:
- ais2 = ais.readSequenceStream();
- ais2.readTag();
- this.extBasicServiceCode = new
ExtBasicServiceCodeImpl();
- ((ExtBasicServiceCodeImpl)
this.extBasicServiceCode).decodeAll(ais2);
- break;
- case _ID_callReferenceNumber:
- this.callReferenceNumber = new
CallReferenceNumberImpl();
- ((CallReferenceNumberImpl)
this.callReferenceNumber).decodeAll(ais);
- break;
- case _ID_mscAddress:
- this.mscAddress = new
ISDNAddressStringImpl();
- ((ISDNAddressStringImpl)
this.mscAddress).decodeAll(ais);
- break;
- case _ID_calledPartyBCDNumber:
- this.calledPartyBCDNumber = new
CalledPartyBCDNumberImpl();
- ((CalledPartyBCDNumberImpl)
this.calledPartyBCDNumber).decodeAll(ais);
- break;
- case _ID_timeAndTimezone:
- this.timeAndTimezone = new
TimeAndTimezoneImpl();
- ((TimeAndTimezoneImpl)
this.timeAndTimezone).decodeAll(ais);
- break;
- case _ID_callForwardingSS_Pending:
- ais.readNull();
- this.callForwardingSSPending = true;
- break;
- case _ID_initialDPArgExtension:
- this.initialDPArgExtension = new
InitialDPArgExtensionImpl(this.isCAPVersion3orLater);
- ((InitialDPArgExtensionImpl)
this.initialDPArgExtension).decodeAll(ais);
- break;
+ if (ais.getTagClass() == Tag.CLASS_CONTEXT_SPECIFIC) {
+ switch (tag) {
+ case _ID_calledPartyNumber:
+ this.calledPartyNumber = new
CalledPartyNumberCapImpl();
+ ((CalledPartyNumberCapImpl)
this.calledPartyNumber).decodeAll(ais);
+ break;
+ case _ID_callingPartyNumber:
+ this.callingPartyNumber = new
CallingPartyNumberCapImpl();
+ ((CallingPartyNumberCapImpl)
this.callingPartyNumber).decodeAll(ais);
+ break;
+ case _ID_callingPartysCategory:
+ this.callingPartysCategory = new
CallingPartysCategoryInapImpl();
+ ((CallingPartysCategoryInapImpl)
this.callingPartysCategory).decodeAll(ais);
+ break;
+ case _ID_cGEncountered:
+ ais.advanceElement(); // TODO: implement it
+ break;
+ case _ID_iPSSPCapabilities:
+ this.IPSSPCapabilities = new
IPSSPCapabilitiesImpl();
+ ((IPSSPCapabilitiesImpl)
this.IPSSPCapabilities).decodeAll(ais);
+ break;
+ case _ID_locationNumber:
+ this.locationNumber = new LocationNumberCapImpl();
+ ((LocationNumberCapImpl)
this.locationNumber).decodeAll(ais);
+ break;
+ case _ID_originalCalledPartyID:
+ this.originalCalledPartyID = new
OriginalCalledNumberCapImpl();
+ ((OriginalCalledNumberCapImpl)
this.originalCalledPartyID).decodeAll(ais);
+ break;
+ case _ID_extensions:
+ this.extensions = new CAPExtensionsImpl();
+ ((CAPExtensionsImpl)
this.extensions).decodeAll(ais);
+ break;
+ case _ID_highLayerCompatibility:
+ this.highLayerCompatibility = new
HighLayerCompatibilityInapImpl();
+ ((HighLayerCompatibilityInapImpl)
this.highLayerCompatibility).decodeAll(ais);
+ break;
+ case _ID_additionalCallingPartyNumber:
+ this.additionalCallingPartyNumber = new
DigitsImpl();
+ ((DigitsImpl)
this.additionalCallingPartyNumber).decodeAll(ais);
+
this.additionalCallingPartyNumber.setIsGenericNumber();
+ break;
+ case _ID_bearerCapability:
+ AsnInputStream ais2 = ais.readSequenceStream();
+ ais2.readTag();
+ this.bearerCapability = new BearerCapabilityImpl();
+ ((BearerCapabilityImpl)
this.bearerCapability).decodeAll(ais2);
+ break;
+ case _ID_eventTypeBCSM:
+ i1 = (int) ais.readInteger();
+ this.eventTypeBCSM = EventTypeBCSM.getInstance(i1);
+ break;
+ case _ID_redirectingPartyID:
+ this.redirectingPartyID = new
RedirectingPartyIDCapImpl();
+ ((RedirectingPartyIDCapImpl)
this.redirectingPartyID).decodeAll(ais);
+ break;
+ case _ID_redirectionInformation:
+ this.redirectionInformation = new
RedirectionInformationInapImpl();
+ ((RedirectionInformationInapImpl)
this.redirectionInformation).decodeAll(ais);
+ break;
+ case _ID_cause:
+ ais.advanceElement(); // TODO: implement it
+ break;
+ case _ID_serviceInteractionIndicatorsTwo:
+ ais.advanceElement(); // TODO: implement it
+ break;
+ case _ID_carrier:
+ ais.advanceElement(); // TODO: implement it
+ break;
+ case _ID_cug_Index:
+ ais.advanceElement(); // TODO: implement it
+ break;
+ case _ID_cug_Interlock:
+ ais.advanceElement(); // TODO: implement it
+ break;
+ case _ID_cug_OutgoingAccess:
+ ais.advanceElement(); // TODO: implement it
+ break;
+ case _ID_iMSI:
+ int len = ais.readLength();
+ if (len == 0) {
+ ais.advanceElementData(len);
+ } else {
+ this.imsi = new IMSIImpl();
+ ((IMSIImpl) this.imsi).decodeData(ais, len);
+ }
+ break;
+ case _ID_subscriberState:
+ ais2 = ais.readSequenceStream();
+ ais2.readTag();
+ this.subscriberState = new SubscriberStateImpl();
+ ((SubscriberStateImpl)
this.subscriberState).decodeAll(ais2);
+ break;
+ case _ID_locationInformation:
+ this.locationInformation = new
LocationInformationImpl();
+ ((LocationInformationImpl)
this.locationInformation).decodeAll(ais);
+ break;
+ case _ID_ext_basicServiceCode:
+ ais2 = ais.readSequenceStream();
+ ais2.readTag();
+ this.extBasicServiceCode = new
ExtBasicServiceCodeImpl();
+ ((ExtBasicServiceCodeImpl)
this.extBasicServiceCode).decodeAll(ais2);
+ break;
+ case _ID_callReferenceNumber:
+ this.callReferenceNumber = new
CallReferenceNumberImpl();
+ ((CallReferenceNumberImpl)
this.callReferenceNumber).decodeAll(ais);
+ break;
+ case _ID_mscAddress:
+ this.mscAddress = new ISDNAddressStringImpl();
+ ((ISDNAddressStringImpl)
this.mscAddress).decodeAll(ais);
+ break;
+ case _ID_calledPartyBCDNumber:
+ this.calledPartyBCDNumber = new
CalledPartyBCDNumberImpl();
+ ((CalledPartyBCDNumberImpl)
this.calledPartyBCDNumber).decodeAll(ais);
+ break;
+ case _ID_timeAndTimezone:
+ this.timeAndTimezone = new TimeAndTimezoneImpl();
+ ((TimeAndTimezoneImpl)
this.timeAndTimezone).decodeAll(ais);
+ break;
+ case _ID_callForwardingSS_Pending:
+ ais.readNull();
+ this.callForwardingSSPending = true;
+ break;
+ case _ID_initialDPArgExtension:
+ this.initialDPArgExtension = new
InitialDPArgExtensionImpl(this.isCAPVersion3orLater);
+ ((InitialDPArgExtensionImpl)
this.initialDPArgExtension).decodeAll(ais);
+ break;
- default:
- ais.advanceElement();
- break;
- }
- } else {
+ default:
ais.advanceElement();
+ break;
}
- break;
+ } else {
+ ais.advanceElement();
+ }
+ break;
}
num++;
--
---
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.