isdnlog logs all ISDN connections, and can calculate the cost of calls. If sufficient data is available, it can even recommend which alternate carrier would have been cheaper for a given call. For countries where calls are charged per discrete unit, it can disconnect the line just before the next unit starts.