@Override public OperationCode getOperationCode() { return this.wrappedComponent.getOperationCode(); }
@Override public Long getLinkedId() { return this.wrappedComponent.getLinkedId(); }
@Override public Invoke getLinkedInvoke() { return this.wrappedComponent.getLinkedInvoke(); }
@Override public Long addContinueSMSRequest(int customInvokeTimeout) throws CAPException { if (this.appCntx != CAPApplicationContext.CapV3_cap3_sms && this.appCntx != CAPApplicationContext.CapV4_cap4_sms) throw new CAPException("Bad application context name for ConnectSMSRequest: must be CapV3_cap3_sms or CapV4_cap4_sms"); Invoke invoke = this.capProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest(InvokeClass.Class4); if (customInvokeTimeout == _Timer_Default) invoke.setTimeout(_Timer_Sms_Short); else invoke.setTimeout(customInvokeTimeout); OperationCode oc = this.capProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode(); oc.setLocalOperationCode((long) CAPOperationCode.continueSMS); invoke.setOperationCode(oc); Long invokeId; try { invokeId = this.tcapDialog.getNewInvokeId(); invoke.setInvokeId(invokeId); } catch (TCAPException e) { throw new CAPException(e.getMessage(), e); } this.sendInvokeComponent(invoke); return invokeId; }
public Long addUnstructuredSSRequest(int customInvokeTimeout, CBSDataCodingScheme ussdDataCodingScheme, USSDString ussdString, AlertingPattern alertingPatter, ISDNAddressString msisdn) throws MAPException { Invoke invoke = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCInvokeRequest(); if (customInvokeTimeout == _Timer_Default) invoke.setTimeout(_Timer_ml); else invoke.setTimeout(customInvokeTimeout); // Operation Code OperationCode oc = TcapFactory.createOperationCode(); oc.setLocalOperationCode((long) MAPOperationCode.unstructuredSS_Request); invoke.setOperationCode(oc); UnstructuredSSRequestImpl req = new UnstructuredSSRequestImpl(ussdDataCodingScheme, ussdString, alertingPatter, msisdn); AsnOutputStream aos = new AsnOutputStream(); req.encodeData(aos); Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter(); p.setTagClass(req.getTagClass()); p.setPrimitive(req.getIsPrimitive()); p.setTag(req.getTag()); p.setData(aos.toByteArray()); invoke.setParameter(p); Long invokeId; try { invokeId = this.tcapDialog.getNewInvokeId(); invoke.setInvokeId(invokeId); } catch (TCAPException e) { throw new MAPException(e.getMessage(), e); } this.sendInvokeComponent(invoke); return invokeId; }
case Invoke: { Invoke comp = (Invoke) c; oc = comp.getOperationCode(); parameter = comp.getParameter(); linkedId = comp.getLinkedId(); linkedInvoke = comp.getLinkedInvoke(); long[] lstInv = perfSer.getLinkedOperationList(linkedInvoke.getOperationCode().getLocalOperationCode()); if (lstInv == null) { Problem problem = this.getTCAPProvider().getComponentPrimitiveFactory() if (lstInv != null) { for (long l : lstInv) { if (l == comp.getOperationCode().getLocalOperationCode()) { found = true; break;
@Override public Parameter getParameter() { return this.wrappedComponent.getParameter(); }
@Override public void setParameter(Parameter parameter) { this.wrappedComponent.setParameter(parameter); }
@Override public void setLinkedId(Long linkedId) { this.wrappedComponent.setLinkedId(linkedId); }
@Override public void setOperationCode(OperationCode operationCode) { this.wrappedComponent.setOperationCode(operationCode); }
@Override public void setTimeout(long timeout) { this.wrappedComponent.setTimeout(timeout); }
protected void deliverInvokeTimeout(CAPDialog capDialog, Invoke invoke) { for (CAPServiceListener serLis : this.serviceListeners) { serLis.onInvokeTimeout(capDialog, invoke.getInvokeId()); } } }
@Override public InvokeClass getInvokeClass() { return this.wrappedComponent.getInvokeClass(); }
invoke.setTimeout(600000); // 10 minutes else invoke.setTimeout(customInvokeTimeout); invoke.setOperationCode(oc); p.setTag(req.getTag()); p.setData(aos.toByteArray()); invoke.setParameter(p); invoke.setInvokeId(invokeId); } catch (TCAPException e) { throw new MAPException(e.getMessage(), e);
@Override public Long addActivityTestGPRSRequest(int customInvokeTimeout) throws CAPException { if (this.appCntx != CAPApplicationContext.CapV3_gprsSSF_gsmSCF && this.appCntx != CAPApplicationContext.CapV3_gsmSCF_gprsSSF) throw new CAPException( "Bad application context name for ActivityTestGPRSRequest: must be CapV3_gsmSCF_gprsSSF or CapV3_gsmSCF_gprsSSF"); Invoke invoke = this.capProviderImpl.getTCAPProvider().getComponentPrimitiveFactory() .createTCInvokeRequest(InvokeClass.Class3); if (customInvokeTimeout == _Timer_Default) invoke.setTimeout(_Timer_Gprs_Short); else invoke.setTimeout(customInvokeTimeout); OperationCode oc = this.capProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode(); oc.setLocalOperationCode((long) CAPOperationCode.activityTestGPRS); invoke.setOperationCode(oc); Long invokeId; try { invokeId = this.tcapDialog.getNewInvokeId(); invoke.setInvokeId(invokeId); } catch (TCAPException e) { throw new CAPException(e.getMessage(), e); } this.sendInvokeComponent(invoke); return invokeId; }
case Invoke: { Invoke comp = (Invoke) c; oc = comp.getOperationCode(); parameter = comp.getParameter(); linkedId = comp.getLinkedId(); linkedInvoke = comp.getLinkedInvoke(); long[] lstInv = perfSer.getLinkedOperationList(linkedInvoke.getOperationCode().getLocalOperationCode()); if (lstInv == null) { Problem problem = this.getTCAPProvider().getComponentPrimitiveFactory() if (lstInv != null) { for (long l : lstInv) { if (l == comp.getOperationCode().getLocalOperationCode()) { found = true; break;
protected void deliverInvokeTimeout(MAPDialog mapDialog, Invoke invoke) { for (MAPServiceListener serLis : this.serviceListeners) { serLis.onInvokeTimeout(mapDialog, invoke.getInvokeId()); } }
public void onInvokeTimeout(Invoke invoke) { MAPDialogImpl mapDialogImpl = (MAPDialogImpl) this.getMAPDialog(((InvokeImpl) invoke).getDialog().getLocalDialogId()); if (mapDialogImpl != null) { try { mapDialogImpl.getTcapDialog().getDialogLock().lock(); if (mapDialogImpl.getState() != MAPDialogState.EXPUNGED) { // Getting the MAP Service that serves the MAP Dialog MAPServiceBaseImpl perfSer = (MAPServiceBaseImpl) mapDialogImpl.getService(); // We do not send invokeTimeout for Class 4 invokes if (invoke.getInvokeClass() == InvokeClass.Class4) return; perfSer.deliverInvokeTimeout(mapDialogImpl, invoke); } } finally { mapDialogImpl.getTcapDialog().getDialogLock().unlock(); } } }
invoke.setTimeout(_Timer_ml); else invoke.setTimeout(customInvokeTimeout); invoke.setOperationCode(oc); p.setTag(req.getTag()); p.setData(aos.toByteArray()); invoke.setParameter(p); try { invokeId = this.tcapDialog.getNewInvokeId(); invoke.setInvokeId(invokeId); } catch (TCAPException e) { throw new MAPException(e.getMessage(), e);
@Override public Long addCollectInformationRequest(int customInvokeTimeout) throws CAPException { if (this.appCntx != CAPApplicationContext.CapV4_gsmSSF_scfGeneric && this.appCntx != CAPApplicationContext.CapV4_scf_gsmSSFGeneric) throw new CAPException( "Bad application context name for addContinueRequest: must be CapV4_gsmSSF_scfGeneric or CapV4_scf_gsmSSFGeneric"); Invoke invoke = this.capProviderImpl.getTCAPProvider().getComponentPrimitiveFactory() .createTCInvokeRequest(InvokeClass.Class4); if (customInvokeTimeout == _Timer_Default) invoke.setTimeout(_Timer_CircuitSwitchedCallControl_Short); else invoke.setTimeout(customInvokeTimeout); OperationCode oc = this.capProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode(); oc.setLocalOperationCode((long) CAPOperationCode.collectInformation); invoke.setOperationCode(oc); Long invokeId; try { invokeId = this.tcapDialog.getNewInvokeId(); invoke.setInvokeId(invokeId); } catch (TCAPException e) { throw new CAPException(e.getMessage(), e); } this.sendInvokeComponent(invoke); return invokeId; }