本文整理了Java中javax.sip.Dialog.getDialogId()
方法的一些代码示例,展示了Dialog.getDialogId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dialog.getDialogId()
方法的具体详情如下:
包路径:javax.sip.Dialog
类名称:Dialog
方法名:getDialogId
暂无
代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4
@Override
public void setSessionCreatingDialog(Dialog dialog) {
super.setSessionCreatingDialog(dialog);
if(dialog != null && dialog.getDialogId() != null) {
sessionMetadataDirty();
metaModifiedMap_.put(DIALOG_ID, dialog.getDialogId() );
}
}
代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl
/**
* @param dialog the dialog to set
*/
public void setSessionCreatingDialog(Dialog dialog) {
if(proxy == null) {
this.sessionCreatingDialog = dialog;
if(logger.isDebugEnabled()) {
logger.debug("setting session creating dialog for this session to " + dialog);
if(dialog != null) {
logger.debug("session creating dialog dialogId " + dialog.getDialogId());
}
}
} else {
if(logger.isDebugEnabled()) {
logger.debug("not setting session creating dialog for this session to " + dialog + " since this is a proxy application");
if(dialog != null) {
logger.debug("not setting session creating dialog with dialogId " + dialog.getDialogId() + " since this is a proxy application");
}
}
}
}
代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl
public void processDialogTerminated(final DialogTerminatedEvent dialogTerminatedEvent) {
final Dialog dialog = dialogTerminatedEvent.getDialog();
if(logger.isDebugEnabled()) {
logger.debug("Dialog Terminated => dialog Id : " + dialogTerminatedEvent.getDialog().getDialogId());
代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl
public void run() {
try {
boolean appDataFound = false;
TransactionApplicationData txAppData = null;
if(dialogAppData != null) {
if(dialogAppData.getSipServletMessage() == null) {
Transaction transaction = dialogAppData.getTransaction();
if(transaction != null && transaction.getApplicationData() != null) {
txAppData = (TransactionApplicationData) transaction.getApplicationData();
txAppData.cleanUp();
}
} else {
MobicentsSipSessionKey sipSessionKey = dialogAppData.getSipSessionKey();
tryToInvalidateSession(sipSessionKey, false);
}
dialogAppData.cleanUp();
// since the stack doesn't nullify the app data, we need to do it to let go of the refs
dialog.setApplicationData(null);
}
if(!appDataFound && logger.isDebugEnabled()) {
logger.debug("no application data for this dialog " + dialog.getDialogId());
}
} catch (Exception e) {
logger.error("Problem handling dialog termination", e);
}
}
});
内容来源于网络,如有侵权,请联系作者删除!