@Override public void onTCBegin(TCBeginIndication ind) { this.curTcapDialog = (DialogImpl) ind.getDialog(); }
@Override public void onTCBegin(TCBeginIndication ind) { LOGGER.debug("TCAPListenerImscfAdapter ind={} delegating onTCBegin call", ind); rewriteLocalAddressIfGTPresentAndRouteOnSsn(ind.getDialog()); if (OverloadProtector.getInstance().getCurrentState().isCpuOrHeapOverloaded()) { LOGGER.debug("System is overloaded. Send back TCAP ABORT."); TCUserAbortRequest uabort = tcapProvider.getDialogPrimitiveFactory().createUAbort(ind.getDialog()); try { ind.getDialog().send(uabort); } catch (TCAPSendException e) { LOGGER.error("Cannot send U-ABORT for overload protection.", e); } // Do not pass to listeners return; } NamedTCListener listener = findProperListener(ind.getDialog()); if (listener != null) { listener.onTCBegin(ind); } for (TCListener lst : tcListeners) { lst.onTCBegin(ind); } }
this.fireTCAbort(tcBeginIndication.getDialog(), CAPGeneralAbortReason.UserSpecific, CAPUserAbortReason.abnormal_processing, false); } catch (CAPException e) { SendUnsupportedAcn(acn, tcBeginIndication.getDialog(), "onTCBegin: Unrecognizable"); return; UserInformation userInfo = tcBeginIndication.getUserInformation(); if (userInfo != null) { referenceNumber = ParseUserInfo(userInfo, tcBeginIndication.getDialog()); if (referenceNumber == null) { try { this.fireTCAbort(tcBeginIndication.getDialog(), CAPGeneralAbortReason.UserSpecific, CAPUserAbortReason.abnormal_processing, false); } catch (CAPException e) { SendUnsupportedAcn(acn, tcBeginIndication.getDialog(), "onTCBegin: Unsupported"); return; SendUnsupportedAcn(acn, tcBeginIndication.getDialog(), "onTCBegin: Unsupported"); return; SendUnsupportedAcn(acn, tcBeginIndication.getDialog(), "onTCBegin: Inactive CAPService"); return; tcBeginIndication.getDialog()); try { capDialogImpl.getTcapDialog().getDialogLock().lock();
@Override public void onTCBegin(TCBeginIndication tcBeginIndication) { try { Dialog wrappedDialog = tcBeginIndication.getDialog(); TCAPDialogActivityHandle activityHandle = new TCAPDialogActivityHandle(wrappedDialog.getLocalDialogId()); TCAPDialogWrapper tcapDialogWrapper = new TCAPDialogWrapper(activityHandle, this, wrappedDialog); wrappedDialog.setUserObject(tcapDialogWrapper); this.startActivity(tcapDialogWrapper); this.onEvent(TCAPEvent.EVENT_TYPE_NAME_DIALOG_BEGIN, tcapDialogWrapper, tcapDialogWrapper); Component[] components = tcBeginIndication.getComponents(); this.processComponents(tcapDialogWrapper, components); } catch (Exception e) { this.tracer.severe(String.format("Exception when trying to fire event DIALOG_BEGIN for received TCBeginIndication=%s ", tcBeginIndication), e); } }
this.fireTCAbortV1(tcBeginIndication.getDialog(), false); } catch (MAPException e) { loger.error("Error while firing TC-U-ABORT. ", e); this.fireTCAbortV1(tcBeginIndication.getDialog(), false); return; } catch (MAPException e) { this.fireTCAbortProvider(tcBeginIndication.getDialog(), MAPProviderAbortReason.abnormalDialogue, null, false); } catch (MAPException e) { this.fireTCAbortACNNotSupported(tcBeginIndication.getDialog(), null, null, false); } catch (MAPException e) { loger.error("Error while firing TC-U-ABORT. ", e); + " but not found"); try { this.fireTCAbortProvider(tcBeginIndication.getDialog(), MAPProviderAbortReason.abnormalDialogue, null, false); } catch (MAPException e) { loger.error("When parsing TC-BEGIN: userInfo.isOid() check failed"); try { this.fireTCAbortProvider(tcBeginIndication.getDialog(), MAPProviderAbortReason.invalidPDU, null, false); } catch (MAPException e) { loger.error("Error while firing TC-U-ABORT. ", e); loger.error("When parsing TC-BEGIN: Expected MAPDialogueAS.MAP_DialogueAS but is null");