当前位置: 首页>>代码示例>>Java>>正文


Java UnstructuredSSRequest类代码示例

本文整理汇总了Java中org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest的典型用法代码示例。如果您正苦于以下问题:Java UnstructuredSSRequest类的具体用法?Java UnstructuredSSRequest怎么用?Java UnstructuredSSRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


UnstructuredSSRequest类属于org.mobicents.protocols.ss7.map.api.service.supplementary包,在下文中一共展示了UnstructuredSSRequest类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addUnstructuredSSRequest

import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
/**
 * Adds the unstructured ss request.
 *
 * @param unstructuredSSRequestIndication the unstructured ss request indication
 * @param mapDialogSupplementary the map dialog supplementary
 * @throws MAPException the MAP exception
 */
protected void addUnstructuredSSRequest(
    UnstructuredSSRequest unstructuredSSRequestIndication,
    MAPDialogSupplementary mapDialogSupplementary) throws MAPException {
  log.entry(unstructuredSSRequestIndication, mapDialogSupplementary);

  if (mapDialogSupplementary == null) {
    log.exit();
    return;
  }
  mapDialogSupplementary.addUnstructuredSSRequest(
      unstructuredSSRequestIndication.getDataCodingScheme(),
      unstructuredSSRequestIndication.getUSSDString(), null, null);
  try {
    mapDialogSupplementary.send();
  } finally {
  }
  log.exit();
}
 
开发者ID:BerrySys,项目名称:berrysys-ussdgw,代码行数:26,代码来源:DialogListener.java

示例2: onUnstructuredSSRequest

import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) {
  log.entry(unstrReqInd);

  Dialog xmlDialog =
      new Dialog(this.getXmlDialogType(unstrReqInd.getMAPDialog()
          .getTCAPMessageType()), unstrReqInd.getMAPDialog()
          .getLocalDialogId(), unstrReqInd.getMAPDialog()
          .getReceivedDestReference(), unstrReqInd.getMAPDialog()
          .getReceivedOrigReference(), unstrReqInd);
  try {
    byte[] serializedEvent = this.getXmlFactory().serialize(xmlDialog);
    log.info(new String(serializedEvent));
  } catch (XMLStreamException e) {
    log.catching(e);
  }
  log.exit();

}
 
开发者ID:BerrySys,项目名称:berrysys-ussdgw,代码行数:20,代码来源:DialogListener.java

示例3: onUnstructuredSSRequest

import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest ind) {
    if (!isStarted) {
        return;
    }

    if (currentDialog == null) {
        currentDialog = ind.getMAPDialog();
    }
    MAPDialogSupplementary curDialog = currentDialog;
    if (curDialog != ind.getMAPDialog()) {
        return;
    }

    ussdEmptyDialogBeginFlag = 2;
    invokeId = ind.getInvokeId();

    try {
        currentRequestDef += "Rcvd: unstrSsReq=\"" + ind.getUSSDString().getString(null) + "\";";
    } catch (Exception e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }
    this.countUnstReq++;
    String uData = this
            .createUssdMessageData(curDialog.getLocalDialogId(), ind.getDataCodingScheme().getCode(), null, null);
    try {
        this.testerHost.sendNotif(SOURCE_NAME, "Rcvd: unstrSsReq: " + ind.getUSSDString().getString(null), uData,
                Level.DEBUG);
    } catch (MAPException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:35,代码来源:TestUssdClientMan.java

示例4: onUnstructuredSSRequest

import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) {
    logger.debug("[[[[[[[[[[    onUnstructuredSSRequest      ]]]]]]]]]]");
    /*// Server shouldn't be getting UnstructuredSSRequestIndication
    logger.error(String.format("onUnstructuredSSRequestIndication for Dialog=%d and invokeId=%d", unstrReqInd
            .getMAPDialog().getLocalDialogId(), unstrReqInd.getInvokeId()));*/
}
 
开发者ID:P1sec,项目名称:SigFW,代码行数:8,代码来源:SS7Honeypot.java

示例5: createUnstructuredSSRequestIndication

import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
public UnstructuredSSRequest createUnstructuredSSRequestIndication(CBSDataCodingScheme ussdDataCodingSch,
        USSDString ussdString, AlertingPattern alertingPattern, ISDNAddressString msisdnAddressString) {
    UnstructuredSSRequest request = new UnstructuredSSRequestImpl(ussdDataCodingSch, ussdString, alertingPattern,
            msisdnAddressString);
    return request;
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:7,代码来源:MAPParameterFactoryImpl.java

示例6: onUnstructuredSSRequest

import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest ind) {
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:4,代码来源:TestUssdServerMan.java

示例7: onUnstructuredSSRequest

import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) {
    //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    logger.debug("[[[[[[[[[[   UnstructuredSSRequest      ]]]]]]]]]]");
}
 
开发者ID:P1sec,项目名称:SigFW,代码行数:6,代码来源:SS7Firewall.java


注:本文中的org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。