當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。