callees.put(call_id,callee);
eventlog(time,call_id,SipMethods.INVITE,caller,callee);
}
}
else
{ StatusLine status_line=msg.getStatusLine();
int code=status_line.getCode();
if (code>=200 && code<300 && !accepted_dates.containsKey(call_id))
{ Date time=new Date();
insert(accepted_dates,call_id,time);
String reason=status_line.getReason();
eventlog(time,call_id,String.valueOf(code)+" "+reason,"","");
}
else
if (code>=300 && !refused_dates.containsKey(call_id))
{ Date time=new Date();
insert(refused_dates,call_id,time);
String reason=status_line.getReason();
eventlog(time,call_id,String.valueOf(code)+" "+reason,"","");
}
}
}
else