本文整理汇总了Java中org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive类的典型用法代码示例。如果您正苦于以下问题:Java Mtp3TransferPrimitive类的具体用法?Java Mtp3TransferPrimitive怎么用?Java Mtp3TransferPrimitive使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Mtp3TransferPrimitive类属于org.mobicents.protocols.ss7.mtp包,在下文中一共展示了Mtp3TransferPrimitive类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onMtp3TransferMessage
import org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive; //导入依赖的package包/类
/**
* Method to capture M3UA raw messages. The messages are stored
* in M3UA FIFO buffer, over API it is possible to read the buffer.
*
* @param msg M3UA message
*/
@Override
public void onMtp3TransferMessage(Mtp3TransferPrimitive msg) {
//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
logger.debug("[[[[[[[[[[ onMtp3TransferMessage ]]]]]]]]]]");
logger.debug(msg.toString());
// M3UA FIFO
/*StringBuilder sb = new StringBuilder();
for (byte b : msg.encodeMtp3()) {
sb.append(String.format("%02X", b));
}
//m3ua_fifo.add("{" + Instant.now().toEpochMilli() + ": " + sb.toString() + "}");
m3ua_fifo.add("{" + System.currentTimeMillis() + ": " + sb.toString() + "}");
while (m3ua_fifo.size() > m3ua_fifo_max_size) {
m3ua_fifo.pop();
}*/
}
示例2: sendMessage
import org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive; //导入依赖的package包/类
@Override
public void sendMessage(Mtp3TransferPrimitive mtp3TransferPrimitive) throws IOException {
super.sendMessage(mtp3TransferPrimitive);
this.storeTransferMessageToPcap(mtp3TransferPrimitive, true);
}
示例3: sendTransferMessageToLocalUser
import org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive; //导入依赖的package包/类
@Override
public void sendTransferMessageToLocalUser(Mtp3TransferPrimitive msg, int seqControl) {
super.sendTransferMessageToLocalUser(msg, seqControl);
this.storeTransferMessageToPcap(msg, false);
}