It is possible to display a popup only on agent connect , that means when a QUEUE call gets connected do an agent. You can enable notify on connect in fop2.cfg, you also have an else condition on the type of popup in checkdir.
connect notifications also include the uniqueid of the call (while ring notifications cannot show that information as there is no uniqueid assigned yet).