Esempio n. 1
0
  /** Costructs a new CallLoggerImpl. */
  public CallLoggerImpl(String filename) {
    invite_dates = new Hashtable();
    accepted_dates = new Hashtable();
    refused_dates = new Hashtable();
    bye_dates = new Hashtable();
    calls = new Vector();
    callers = new Hashtable();
    callees = new Hashtable();

    call_log = new Log(filename, 1, -1, true);
    call_log.println("Date \tCall-Id \tStatus \tCaller \tCallee \tSetup Time \tCall Time");
  }
Esempio n. 2
0
 /** Prints a generic event log. */
 private void eventlog(
     Date time,
     String call_id,
     String event,
     String caller,
     String
         callee) { // call_log.println(DateFormat.formatHHMMSS(time)+"\t"+call_id+"\t"+event+"\t"+caller+"\t"+callee);
   call_log.println(
       DateFormat.formatYYYYMMDD(time)
           + "\t"
           + call_id
           + "\t"
           + event
           + "\t"
           + caller
           + "\t"
           + callee);
 }
Esempio n. 3
0
 /** Prints a call report. */
 private void calllog(String call_id) {
   Date invite_time = (Date) invite_dates.get(call_id);
   Date accepted_time = (Date) accepted_dates.get(call_id);
   Date bye_time = (Date) bye_dates.get(call_id);
   if (invite_time != null && accepted_time != null && bye_time != null)
     // call_log.println(DateFormat.formatHHMMSS(invite_time)+"\t"+call_id+"\tCALL
     // \t"+callers.get(call_id)+"\t"+callees.get(call_id)+"\t"+(accepted_time.getTime()-invite_time.getTime())+"\t"+(bye_time.getTime()-accepted_time.getTime()));
     call_log.println(
         DateFormat.formatYYYYMMDD(invite_time)
             + "\t"
             + call_id
             + "\tCALL \t"
             + callers.get(call_id)
             + "\t"
             + callees.get(call_id)
             + "\t"
             + (accepted_time.getTime() - invite_time.getTime())
             + "\t"
             + (bye_time.getTime() - accepted_time.getTime()));
 }
Esempio n. 4
0
 /** Adds the Exception message to the default Log */
 void printException(Exception e, int level) {
   if (Sipdroid.release) return;
   if (log != null) log.printException(e, level + SipStack.LOG_LEVEL_UA);
   if (level <= LogLevel.HIGH) e.printStackTrace();
 }
Esempio n. 5
0
 /** Adds a new string to the default Log */
 private void printLog(String str, int level) {
   if (Sipdroid.release) return;
   if (log != null) log.println("AudioLauncher: " + str, level + SipStack.LOG_LEVEL_UA);
   if (level <= LogLevel.HIGH) System.out.println("AudioLauncher: " + str);
 }
Esempio n. 6
0
 /** Adds a new string to the default Log */
 private void printLog(String str) {
   if (log != null)
     log.println("JmfMediaApp<" + media_type + ">: " + str, LOG_OFFSET + Log.LEVEL_HIGH);
   // if (LOG_LEVEL<=Log.LEVEL_HIGH) System.out.println("JmfMediaApp: "+str);
   System.out.println("JmfMediaApp<" + media_type + ">: " + str);
 }
Esempio n. 7
0
 /** Adds a new string to the default Log */
 private void printLog(String str, int level) {
   if (log != null) log.println("MessageAgent: " + str, level + SipStack.LOG_LEVEL_UA);
 }
Esempio n. 8
0
 /** Adds a new string to the default Log */
 void printLog(String str, int level) {
   if (log != null) log.println("Jukebox: " + str, level + SipStack.LOG_LEVEL_UA);
 }
Esempio n. 9
0
 /** Adds a new string to the default Log */
 protected void printLog(String str, int level) {
   if (log != null) log.println("Call: " + str, level + SipStack.LOG_LEVEL_CALL);
 }
Esempio n. 10
0
 /** Adds a new string to the default Log */
 protected void printLog(String str, int level) {
   if (log != null)
     log.println("AddressResolver: " + str, SessionBorderController.LOG_OFFSET + level);
   if (level == Log.LEVEL_HIGH) System.out.println("IP: " + str);
 }