A couple of ideas:
1. You could run Adhearsion on the same machine as Asterisk and just
pull down the file in Ruby-land. I don't recommend this for machines
already loaded down with the task of running Asterisk.
2. You could shell out in Adhearsion to ssh which executes wget on the
server. You'd need to copy over your SSH key to the Asterisk machine
first so that ssh can login without credentials. The line of code
would look like this:
`ssh 192.168.1.5 wget http://jicksta.com/foobar.gsm`
The backticks around the command in Ruby shells out and executes it.
In case you didn't know that ssh trick, if you add a command after the
connection information, ssh will connect, execute that command, and
then exit.
3. You could create a very tiny Ruby daemon to run on the Asterisk
machine. You'd create a helper in Adhearsion that sends commands to it
over DRb (distributed Ruby) instructing it to fetch a file.
Also, I notice in your email that you capitalized the execute()
method. Are you sure you didn't do this in your code? That'd
*definitely* not work :)
Jay Phillips