[Asterisk-Dev] Calling Reload Remotely

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jun 30 12:15:36 MST 2004


On Wednesday 30 June 2004 10:59, James Dutton wrote:
> I am trying to call the Asterisk Reload command remotely from a Windows box
>
> I have created a shell script containing the text ...
>
> /usr/sbin/asterisk -r -x reload
>
> I have saved it as filename reload
>
> I can run this on the Linux box using ./reload from terminal within the
> correct directory
>
> I now want to run it from the Windows box
>
> I am using the command "plink username at host -pw password -ssh -v ./reload"
>
> It certainly appears to run the script, but complains that it cannot
> connect to the remote Asterisk server
>
> Does anyone have a workaround for this. Would I be better off calling a
> Perl script or something similar?

root at iax:/usr/src/asterisk# telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
Asterisk Call Manager/1.0
Action: login
Username: foo
Secret: bar

Response: Success
Message: Authentication accepted

Action: Command
Command: Reload

Response: Follows
--END COMMAND--

Action: Logoff

Response: Goodbye
Message: Thanks for all the fish.

Connection closed by foreign host.
root at iax:/usr/src/asterisk#

-- 
Tilghman



More information about the asterisk-dev mailing list