New To Asterisk (How to run program)

Hi guys

i feeling glad to be part of Asterisk forum, i am having problem

on our server asterisk is installed i have a testing script which comes with asterisk in /var/lib/asterisk/agi-bin

i am using PERL for AGI,

Please guide me how to run that script. although when i write on server terminal PERL filename.pl
and goto asterisk -r

i did not get any thing

Please Guide me

Any help will be gratful for me

Thank’s in advance

Regards
Ali RAza

Hello,
You will need to call that script from your dialplan.

ex: exten => s,1,Agi(filename.pl)

Maybe this will help

voip-info.org/wiki-Asterisk+AGI

Hi guys

Thanks for your reply but how i could run it after writing statement in extension.conf

any help would be grateful

Thank’s
Ali Raza