Agent autologoff when agents have shut down their PC

We’re using AgentCallbackLogin with a number of agents logging in by dialling an extension, in the usual way.

If an agent shuts down their PC without logging out as an agent, then we get messages like the following in the log:

app_dial.c: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
app_dial.c: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
app_dial.c: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
app_dial.c: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
app_dial.c: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
app_queue.c: No one is answering queue ‘’ (45/40/0)

From experimentation, the problem is that agents haven’t logged off (they’re still listed in “show agents”), so the Queue tries to put calls through to them. The timeout code doesn’t appear to be triggered, as it never gets to the point where it’s ringing the agent’s phone. So the agents are left logged in.

Is there a way to get the agents autologged out when this happens?

Neil