javax.sip.Dialog.terminateOnBye()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中javax.sip.Dialog.terminateOnBye()方法的一些代码示例,展示了Dialog.terminateOnBye()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dialog.terminateOnBye()方法的具体详情如下:
包路径:javax.sip.Dialog
类名称:Dialog
方法名:terminateOnBye

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());

相关文章