});
zavai.log.log.add(info.log_id, call_info);
- // TODO: remove entry when it's the last possible status
+ // Remove entry when it's the last possible status
+ if (status == "release")
+ {
+ zavai.log.log.end(info.log_id);
+ for (weak List<CallInfo> i = calls; i != null; i = i.next)
+ if (i.data.gsm_id == index)
+ {
+ calls.delete_link(i);
+ break;
+ }
+ }
/*
dbg("cbCallStatus %d, %s, %s" % (id, status, formatDict(properties)))