Hi,
You don't need AGI scripts to be able to count outbound calls with QueueMetrics.
What you need is to configure a new queue for outbound calls in asterisk queues.conf and in QueueMetrics. The new queue will not be linked to any extension in the dialplan. This lets your agents able to login/out on this queue and lets able QueueMetrics to count statistics on agents sessions for this queue.
Then you need to modify the [queuedial] context in extensions_queuemetrics.conf file to match your outbound rules. Don't forget to apply the same changes to the extension 28 too!
You can find a more detailed explaination in the chapter "Defining outbound queues (campaigns)" at page 124 of the QueueMetrics user manual (
http://queuemetrics.com/download/QM_UserManual_152.pdf ) or, if you're using TrixBox/FreePBX, at "Chapter 3. Running an outbound callcenter" in
http://www.queuemetrics.com/download/QM_Trixbox_32.pdf tutorial
Thank you and regards,
Marco Signorini.