本文整理汇总了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();
}
示例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();
}
示例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();
}
}
示例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()));*/
}
示例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;
}
示例6: onUnstructuredSSRequest
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //导入依赖的package包/类
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest ind) {
}
示例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 ]]]]]]]]]]");
}