Example #1
0
 @Override
 public synchronized void accept(final Map<String, String> headers) throws SignalException {
   checkState();
   _accepted = true;
   try {
     ((SIPIncomingCall) this).doInvite(headers);
     return;
   } catch (final Exception e) {
     throw new SignalException(e);
   }
 }
Example #2
0
 @Override
 public synchronized void acceptWithEarlyMedia(final Map<String, String> headers)
     throws SignalException, MediaException {
   checkState();
   _accepted = true;
   _acceptedWithEarlyMedia = true;
   try {
     ((SIPIncomingCall) this).doInviteWithEarlyMedia(headers);
     return;
   } catch (final Exception e) {
     if (e instanceof SignalException) {
       throw (SignalException) e;
     } else if (e instanceof MediaException) {
       throw (MediaException) e;
     } else {
       throw new SignalException(e);
     }
   }
 }