Calling customized perl on file systeem


I’m Usering FreePXZ

Is there a way to call a custimezed perl program on the filesystem.

This is what the program must do:
A callers calls an extensions number (say 123)
Then Asterisk must call the custimezed perl program.
From the perl program I get the extensie number back from the suppor empleyee.
Asterisk must then call the given extension number.

Can anybody help me with this.

Kind Regards,

Arjan Kroon

This calls for AGI (look for that on

An AGI script can be any executable script on Linux, and you would call a customized perl the same way you would do it at the shell command prompt: by putting “#!/path/to/perl/binary” on the first line and making the script executable.