How to implement Agent auto-logoff after the phone has to ring with no-answer in n seconds

Hello All,

I am running Asterisk 1.8.9 + FreePBX 2.10rc, how to implement Agent auto-logoff after the phone has to ring with no-answer in n seconds…

could anybody please help?

TIA