本文整理了Java中javax.sip.Dialog.createAck()
方法的一些代码示例,展示了Dialog.createAck()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dialog.createAck()
方法的具体详情如下:
包路径:javax.sip.Dialog
类名称:Dialog
方法名:createAck
暂无
代码示例来源:origin: org.mobicents.examples/restcomm-slee-example-sip11-b2b-sbb
public void on2xxResponse(ResponseEvent event, ActivityContextInterface aci) {
final CSeqHeader cseq = (CSeqHeader) event.getResponse().getHeader(
CSeqHeader.NAME);
if (cseq.getMethod().equals(Request.INVITE)) {
// lets ack it ourselves to avoid UAS retransmissions due to
// forwarding of this response and further UAC Ack
// note that the app does not handles UAC ACKs
try {
final Request ack = event.getDialog().createAck(
cseq.getSeqNumber());
event.getDialog().sendAck(ack);
} catch (Exception e) {
tracer.severe("Unable to ack INVITE's 200 ok from UAS", e);
}
} else if (cseq.getMethod().equals(Request.BYE)
|| cseq.getMethod().equals(Request.CANCEL)) {
// not forwarded to the other dialog
return;
}
processResponse(event, aci);
}
代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl
logger.debug("dialog to create the ack Request " + dialog);
Request ackRequest = dialog.createAck(cSeqHeader.getSeqNumber());
内容来源于网络,如有侵权,请联系作者删除!