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
and goto asterisk -r

i did not get any thing

Please Guide me

Any help will be gratful for me

Thank’s in advance

Ali RAza

You will need to call that script from your dialplan.

ex: exten => s,1,Agi(

Maybe this will help

Hi guys

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

any help would be grateful

Ali Raza