Calling customized perl on file systeem

Hi,

I’m Usering FreePXZ 2.4.1.0

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 www.voip-info.org).

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.