We just switched from another Asterisk/FreePBX distribution to Elastix and although I'm generally impressed, I have one perplexing problem I can't seem to overcome. I have some custom perl scripts in /var/lib/asterisk/agi-bin that do things like play weather information, etc. These basically download a "podcast" and play it to the caller. The script is designed to give feedback on the CLI as it operates, so if some particular command isn't working you can see where the problem is. These scripts ran great on the old system but appear to not even get started on the new. I have tried obvious things like making sure that requisite perl modules are installed, and checking the permissions on the files (they are readable and executable by everyone) but they don't work. I'm thinking it's probably something simple and maybe even obvious, but it isn't obvious to me right now. I know these scripts work fine in a different distribution (one we tested briefly and abandoned because calls simply weren't completing reliably) but for some reason Elastix just ignores them. Here's a typical CLI display when attempting to call the number that should play the weather podcast (sorry about the smilies - if I use the code tags it gets rid of them but also seems to run all the lines together): -- Executing [*28@from-internal:1] NoOp("SIP/250-09d79da0", "Running miscapp 2: Weather Forecast") in new stack -- Executing [*28@from-internal:2] Goto("SIP/250-09d79da0", "custom-weather|*28|1") in new stack -- Goto (custom-weather,*28,1) -- Executing [*28@custom-weather:1] NoOp("SIP/250-09d79da0", "Entering Custom Context: Weather") in new stack -- Executing [*28@custom-weather:2] Ringing("SIP/250-09d79da0", "") in new stack -- Executing [*28@custom-weather:3] AGI("SIP/250-09d79da0", "weather.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/weather.agi -- AGI Script weather.agi completed, returning 0 -- Executing [*28@custom-weather:4] GotoIf("SIP/250-09d79da0", "1?app-blackhole|hangup|1:|return|1") in new stack -- Goto (app-blackhole,hangup,1) -- Executing [hangup@app-blackhole:1] NoOp("SIP/250-09d79da0", "Blackhole Dest: Hangup") in new stack -- Executing [hangup@app-blackhole:2] Hangup("SIP/250-09d79da0", "") in new stack == Spawn extension (app-blackhole, hangup, 2) exited non-zero on 'SIP/250-09d79da0' Note that it appears to launch the AGI script, but there is no display of any of the lines from within the script - it appears the script immediately returns control to the code in extensions_custom.conf, without actually doing anything. Normally if there's a problem with the script itself, you see lines showing the progress of the script until it fails. This script isn't doing anything, which is what makes me think either permissions or a missing perl module, but as far as I can tell neither seems to be the problem. I'm simply perplexed as to why it won't work under Elastix when it's worked fine under two other distros.