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

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

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

Dialog.getDialogId介绍

暂无

代码示例

代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

  1. @Override
  2. public void setSessionCreatingDialog(Dialog dialog) {
  3. super.setSessionCreatingDialog(dialog);
  4. if(dialog != null && dialog.getDialogId() != null) {
  5. sessionMetadataDirty();
  6. metaModifiedMap_.put(DIALOG_ID, dialog.getDialogId() );
  7. }
  8. }

代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl

  1. /**
  2. * @param dialog the dialog to set
  3. */
  4. public void setSessionCreatingDialog(Dialog dialog) {
  5. if(proxy == null) {
  6. this.sessionCreatingDialog = dialog;
  7. if(logger.isDebugEnabled()) {
  8. logger.debug("setting session creating dialog for this session to " + dialog);
  9. if(dialog != null) {
  10. logger.debug("session creating dialog dialogId " + dialog.getDialogId());
  11. }
  12. }
  13. } else {
  14. if(logger.isDebugEnabled()) {
  15. logger.debug("not setting session creating dialog for this session to " + dialog + " since this is a proxy application");
  16. if(dialog != null) {
  17. logger.debug("not setting session creating dialog with dialogId " + dialog.getDialogId() + " since this is a proxy application");
  18. }
  19. }
  20. }
  21. }

代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl

  1. public void processDialogTerminated(final DialogTerminatedEvent dialogTerminatedEvent) {
  2. final Dialog dialog = dialogTerminatedEvent.getDialog();
  3. if(logger.isDebugEnabled()) {
  4. logger.debug("Dialog Terminated => dialog Id : " + dialogTerminatedEvent.getDialog().getDialogId());

代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl

  1. public void run() {
  2. try {
  3. boolean appDataFound = false;
  4. TransactionApplicationData txAppData = null;
  5. if(dialogAppData != null) {
  6. if(dialogAppData.getSipServletMessage() == null) {
  7. Transaction transaction = dialogAppData.getTransaction();
  8. if(transaction != null && transaction.getApplicationData() != null) {
  9. txAppData = (TransactionApplicationData) transaction.getApplicationData();
  10. txAppData.cleanUp();
  11. }
  12. } else {
  13. MobicentsSipSessionKey sipSessionKey = dialogAppData.getSipSessionKey();
  14. tryToInvalidateSession(sipSessionKey, false);
  15. }
  16. dialogAppData.cleanUp();
  17. // since the stack doesn't nullify the app data, we need to do it to let go of the refs
  18. dialog.setApplicationData(null);
  19. }
  20. if(!appDataFound && logger.isDebugEnabled()) {
  21. logger.debug("no application data for this dialog " + dialog.getDialogId());
  22. }
  23. } catch (Exception e) {
  24. logger.error("Problem handling dialog termination", e);
  25. }
  26. }
  27. });

相关文章