Hi All,
 
I'd like to run perl script in dialplan by passing PIN to it
<action application="perl" data="/path/to/your/script.pl $PIN" />
 
this script is assumed to compare the PIN with the values in database and if there is a match , let go to the conference room
(with the perl script I am able to compare database values and determine if there is match for the PIN by manually running it, and I'd like to run this through dialplan )
 
so, In the dial plan
1--Where exactly I call this perl script after reading PIN with "play_and_get_digits"
2-- what should I return from the perl script if there is match or there is no match for the PIN and pass it to dialplan
3-- if there is a match, how should I proceed to conference
4-- if there is no match how should I terminate(exit) from dial plan
 
Any guidance, links, documents well appreciated
thans
deniro--