public MAPApplicationContext getApplicationContext() { return this.wrappedDialog.getApplicationContext(); }
public void close(boolean arg0) throws MAPException { this.wrappedDialog.close(arg0); }
public Long getLocalDialogId() { return this.wrappedDialog.getLocalDialogId(); }
if (mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.shortMsgMTRelayContext || mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.shortMsgMORelayContext) { if (mapDialog.getUserObject() != null) { HostMessageData hmd = (HostMessageData) mapDialog.getUserObject(); ResendMessageData md = hmd.resendMessageData; if (md != null) { else dlg.addMoForwardShortMessageRequest(md.da, md.oa, md.si, null, null); mapDialog.send(); String mtData = createMtData(mapDialog.getLocalDialogId(), md.destImsi, md.vlrNumber, md.origIsdnNumber, md.serviceCentreAddr); currentRequestDef += "Rcvd emptTCont;Sent moReq;"; this.countMoFsmReq++; if (needSendSend) { needSendSend = false; mapDialog.send(); return; if (needSendClose) { needSendClose = false; mapDialog.close(false); return; if (mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.shortMsgMTRelayContext || mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.shortMsgMORelayContext) { mapDialog.send();
@Override public void onDialogDelimiter(MAPDialog mapDialog) { try { if (needSendSend) { needSendSend = false; mapDialog.send(); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking send() : " + e.getMessage(), e, Level.ERROR); } try { if (needSendClose) { needSendClose = false; mapDialog.close(false); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking close() : " + e.getMessage(), e, Level.ERROR); } }
@Override public void onDialogClose(MAPDialog mapDialog) { if (mapDialog.getUserObject() != null) { HostMessageData hmd = (HostMessageData) mapDialog.getUserObject(); MtMessageData mmd = hmd.mtMessageData; if (mmd != null && mmd.vlrNum != null && mmd.destImsi != null) { // sending SMS doMtForwardSM(mmd.msg, mmd.destImsi, mmd.vlrNum, mmd.origIsdnNumber, this.testerHost.getConfigurationData().getTestSmsServerConfigurationData() .getServiceCenterAddress()); } } try { if (needSendSend) { needSendSend = false; mapDialog.send(); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking send() : " + e.getMessage(), e, Level.ERROR); } try { if (needSendClose) { needSendClose = false; mapDialog.close(false); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking close() : " + e.getMessage(), e, Level.ERROR); } }
this.tracer.fine(String.format("Rx : onDialogTimeout for DialogId=%d", mapDialog.getLocalDialogId())); mapDialog.keepAlive(); MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogTimeout dt = new DialogTimeout(mapDialogWrapper); this.tracer .severe(String.format("Firing %s but MAPDialogWrapper userObject is null", dt.getEventTypeName())); mapDialog.release(); return; .getWrappedDialog().getLocalDialogId()));
@Override public void onErrorComponent(MAPDialog dlg, Long invokeId, MAPErrorMessage msg) { if (dlg.getApplicationContext().getApplicationContextName() != MAPApplicationContextName.shortMsgMTRelayContext || dlg.getApplicationContext().getApplicationContextName() != MAPApplicationContextName.shortMsgMORelayContext || (dlg.getUserObject() != null && ((HostMessageData) dlg.getUserObject()).mtMessageData != null && ((HostMessageData) dlg.getUserObject()).mtMessageData.msg != null)) { if (this.testerHost.getConfigurationData().getTestSmsServerConfigurationData().isSendSrsmdsIfError() && curDestIsdnNumber != null) { try { MAPProvider mapProvider = this.mapMan.getMAPStack().getMAPProvider(); MAPApplicationContextVersion vers = dlg.getApplicationContext().getApplicationContextVersion(); MAPApplicationContext mapAppContext = MAPApplicationContext.getInstance(MAPApplicationContextName.shortMsgGatewayContext, vers);
public MAPDialog getMAPDialog(Long dialogId) { if (this.wrappedProvider == null) { throw new IllegalStateException("RA is has not been activated."); } MAPDialog wrappedDialog = this.wrappedProvider.getMAPDialog(dialogId); return (MAPDialogWrapper)wrappedDialog.getUserObject(); }
this.tracer.fine(String.format("Received onDialogRequest id=%d ", mapDialog.getLocalDialogId())); MAPDialogActivityHandle activityHandle = new MAPDialogActivityHandle(mapDialog.getLocalDialogId()); MAPDialogWrapper mapDialogWrapper = null; } else { this.tracer.severe(String.format("Received onDialogRequest id=%d for unknown MAPDialog class=%s", mapDialog.getLocalDialogId(), mapDialog.getClass().getName())); return; mapDialog.setUserObject(mapDialogWrapper); this.startActivity(mapDialogWrapper); this.fireEvent(event.getEventTypeName(), mapDialogWrapper.getActivityHandle(), event, EventFlags.NO_FLAGS);
public void send() throws MAPException { this.wrappedDialog.send(); }
@Override public void onDialogTimeout(MAPDialog mapDialog) { // TODO Auto-generated method stub mapDialog.keepAlive(); }
public void clear() { //TODO Any more cleaning here? if (this.activityHandle != null) { this.activityHandle.setActivity(null); this.activityHandle = null; } if(this.wrappedDialog != null){ this.wrappedDialog.setUserObject(null); this.wrappedDialog = null; } }
if (mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.shortMsgMTRelayContext || mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.shortMsgMORelayContext) { if (mapDialog.getUserObject() != null) { ResendMessageData md = (ResendMessageData) mapDialog.getUserObject(); try { MAPDialogSms dlg = (MAPDialogSms) mapDialog; else dlg.addMoForwardShortMessageRequest(md.da, md.oa, md.si, null, null); mapDialog.send(); String mtData = createMoData(mapDialog.getLocalDialogId(), md.destIsdnNumber, md.origIsdnNumber, md.serviceCentreAddr); currentRequestDef += "Rcvd emptTCont;Sent moReq;"; this.countMoFsmReq++; mapDialog.setUserObject(null); return; if (needSendSend) { needSendSend = false; mapDialog.send(); return; if (needSendClose) { needSendClose = false; mapDialog.close(false); return; if (mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.shortMsgMTRelayContext
@Override public void onDialogDelimiter(MAPDialog mapDialog) { if (ussdEmptyDialogBeginFlag == 1) // empty USSD begin received - sending back of dialog accept needSendSend = true; try { if (needSendSend) { needSendSend = false; mapDialog.send(); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking send() : " + e.getMessage(), e, Level.ERROR); } try { if (needSendClose) { needSendClose = false; mapDialog.close(false); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking close() : " + e.getMessage(), e, Level.ERROR); } }
/** * {@inheritDoc} */ public void onDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extension) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogAccept dialogAccept = new DialogAccept(mapDialogWrapper, extension); onEvent(dialogAccept.getEventTypeName(), mapDialogWrapper, dialogAccept); }
@Override public void onDialogDelimiter(MAPDialog mapDialog) { // TODO Auto-generated method stub try { mapDialog.send(); } catch (MAPException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference, MAPExtensionContainer extensionContainer) { ussdEmptyDialogBeginFlag = 0; if (mapDialog.getApplicationContext().getApplicationContextName() == MAPApplicationContextName.networkUnstructuredSsContext) ussdEmptyDialogBeginFlag = 1; }
@Override public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason, ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) { logger.error(String.format( "onDialogReject for DialogId=%d MAPRefuseReason=%s ApplicationContextName=%s MAPExtensionContainer=%s", mapDialog.getLocalDialogId(), refuseReason, alternativeApplicationContext, extensionContainer)); }
@Override public void onDialogDelimiter(MAPDialog mapDialog) { try { if (needSendSend) { needSendSend = false; mapDialog.send(); return; } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking send() : " + e.getMessage(), e, Level.ERROR); return; } try { if (needSendClose) { needSendClose = false; mapDialog.close(false); return; } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking close() : " + e.getMessage(), e, Level.ERROR); return; } }