本文整理了Java中javax.sip.Dialog.terminateOnBye()
方法的一些代码示例,展示了Dialog.terminateOnBye()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dialog.terminateOnBye()
方法的具体详情如下:
包路径:javax.sip.Dialog
类名称:Dialog
方法名:terminateOnBye
暂无
代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl
/**
* {@inheritDoc}
*/
public void addSubscription(MobicentsSipServletMessage sipServletMessageImpl) throws SipException {
EventHeader eventHeader = null;
if(sipServletMessageImpl instanceof SipServletResponseImpl) {
eventHeader = (EventHeader) ((SipServletRequestImpl)((SipServletResponseImpl)sipServletMessageImpl).getRequest()).getMessage().getHeader(EventHeader.NAME);
} else {
eventHeader = (EventHeader) sipServletMessageImpl.getMessage().getHeader(EventHeader.NAME);
}
if(eventHeader != null) {
if(logger.isDebugEnabled()) {
logger.debug("adding subscription " + eventHeader + " to sip session " + getId());
}
if(subscriptions == null) {
this.subscriptions = new CopyOnWriteArraySet<String>();
}
subscriptions.add(eventHeader.toString());
if(logger.isDebugEnabled()) {
logger.debug("Request from Original Transaction is " + originalMethod);
logger.debug("Dialog is " + sessionCreatingDialog);
}
if(subscriptions.size() < 2 && Request.INVITE.equals(originalMethod)) {
sessionCreatingDialog.terminateOnBye(false);
}
}
}
代码示例来源:origin: org.apache.camel/camel-sip
this.dialog.terminateOnBye(false);
} else {
response = sipPresenceAgent.getConfiguration().getMessageFactory().createResponse(200, request);
代码示例来源:origin: org.mobicents.examples/mgcp-demo-tts-sbb
try {
Dialog dialog = provider.getNewDialog(evt.getServerTransaction());
dialog.terminateOnBye(true);
daci = acif.getActivityContextInterface((DialogActivity) dialog);
daci.attach(sbbContext.getSbbLocalObject());
代码示例来源:origin: org.mobicents.examples/mgcp-demo-recorder-sbb
try {
Dialog dialog = provider.getNewDialog(evt.getServerTransaction());
dialog.terminateOnBye(true);
daci = acif.getActivityContextInterface((DialogActivity) dialog);
daci.attach(sbbContext.getSbbLocalObject());
内容来源于网络,如有侵权,请联系作者删除!