Ejemplo n.º 1
0
 public void processDialogTerminated(DialogTerminatedEvent dialogTerminatedEvent) {
   Dialog dialog = dialogTerminatedEvent.getDialog();
   this.terminatedCount++;
   System.out.println(
       "Dialog Terminated Event "
           + dialog.getDialogId()
           + " terminatedCount = "
           + terminatedCount);
   if (!this.dialogIds.contains(dialog.getDialogId())) {
     System.out.println("Saw a terminated event for an unknown dialog id");
   } else {
     this.dialogIds.remove(dialog.getDialogId());
   }
 }
Ejemplo n.º 2
0
 /**
  * Dispatches the event received from a JAIN-SIP <tt>SipProvider</tt> to one of our "candidate
  * recipient" listeners.
  *
  * @param event the event received for a <tt>SipProvider</tt>.
  */
 public void processDialogTerminated(DialogTerminatedEvent event) {
   try {
     ProtocolProviderServiceSipImpl recipient =
         (ProtocolProviderServiceSipImpl)
             SipApplicationData.getApplicationData(
                 event.getDialog(), SipApplicationData.KEY_SERVICE);
     if (recipient == null) {
       logger.error(
           "Dialog wasn't marked, please report this to " + "*****@*****.**");
     } else {
       if (logger.isTraceEnabled()) logger.trace("service was found with dialog data");
       recipient.processDialogTerminated(event);
     }
   } catch (Throwable exc) {
     // any exception thrown within our code should be caught here
     // so that we could log it rather than interrupt stack activity with
     // it.
     this.logApplicationException(DialogTerminatedEvent.class, exc);
   }
 }
Ejemplo n.º 3
0
 public void processDialogTerminated(DialogTerminatedEvent dialogTerminatedEvent) {
   System.out.println("Dialog terminated event recieved");
   Dialog d = dialogTerminatedEvent.getDialog();
   System.out.println("Local Party = " + d.getLocalParty());
 }