How to show a user-specific link in certain tickets?

Hi all,

I was wondering if there is a way to present a link to each user,
depending on what is in a ticket.

What I mean boils down to, in Perl/RT pseudocode:

print “http://foo.org/“.get_user_data(__CURRENTUSER__).”/”.CF.BAR if
(CF.BAR);

This should then be shown in all ticket details. The background is that
I want users to be able to just click a link and have our Asterisk call
from their extension to whoever is in the CF.

Thanks,
Richard