P codes. That's ACD reporting. SV9100 uses these now for what you are looking for. On the SV8100 you might want to look at the computerized attendant program.