code: private void fireEvent(EventName eventName) {        
          switch (eventName.getEventIdentifier().intValue()) {
              case MgcpEvent.REPORT_ON_COMPLETION :
                  //parse options
                  Options options = new Options(eventName.getEventIdentifier().getParms());
                  switch (options.getReturnCode()) {
                      case 100 :                    	
                      	if (options.getPatternIndex() >= 0) {
                              recorderEvent = new RecorderEventImpl(this, RecorderEvent.RECORD_COMPLETED, true, RecorderEvent.RTC_TRIGGERED, triggers.get(options.getPatternIndex()), 0);
                          } else if (options.getDigitsCollected() != null) {
                              recorderEvent = new RecorderEventImpl(this, RecorderEvent.RECORD_COMPLETED, true, RecorderEvent.RTC_TRIGGERED, SignalDetector.DETECTION_OF_ONE_SIGNAL, 0);
                          } else {
                              recorderEvent = new RecorderEventImpl(this, RecorderEvent.RECORD_COMPLETED, true, RecorderEvent.NO_QUALIFIER, null, 0);
                          } 
                          signal(SIGNAL_COMPLETE);
                          break;
                      case 328 :
                          recorderEvent = new RecorderEventImpl(this, RecorderEvent.RECORD_COMPLETED, true, RecorderEvent.DURATION_EXCEEDED, null, 0);
                          signal(SIGNAL_COMPLETE);
                          break;
                      case 327 :
                          recorderEvent = new RecorderEventImpl(this, RecorderEvent.RECORD_COMPLETED, true, RecorderEvent.SILENCE, null, 0);
                          signal(SIGNAL_COMPLETE);
                          break;
                  }
                  break;
              case MgcpEvent.REPORT_FAILURE :
                  recorderEvent = new RecorderEventImpl(this, RecorderEvent.RECORD_COMPLETED, true, MediaErr.NOT_FOUND, "Not found");
                  signal(SIGNAL_FAILURE);
                  break;
          }
          
      }
docs: Fires event.
  
  @param evt the event to be fired