[Asterisk-Dev] Calling Reload Remotely

brian brian at bkw.org
Wed Jun 30 12:11:05 MST 2004


You can tie an extension to the reload with a pin number and use of the
System app to do the reload.

exten => 555,1,Answer
exten => 555,2,Authenticate(123)
exten => 555,3,System(/usr/sbin/asterisk -rx reload)
exten => 555,4,Hangup
exten => 555,103,Hangup

-----Original Message-----
From: asterisk-dev-admin at lists.digium.com
[mailto:asterisk-dev-admin at lists.digium.com] On Behalf Of Dmitri Pavlenkov
Sent: Wednesday, June 30, 2004 11:45 AM
To: asterisk-dev at lists.digium.com
Subject: RE: [Asterisk-Dev] Calling Reload Remotely

User you connect as doesn’t have permissions to run asterisk.
 
Dmitri Pavlenkov
Technical Support
Im1 Web Hosting
 
-----Original Message-----
From: James Dutton [mailto:james at instantecommerce.co.uk]
Sent: Wednesday, June 30, 2004 11:59 AM
To: asterisk-dev at lists.digium.com
Subject: [Asterisk-Dev] Calling Reload Remotely
 
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?
 
Thanks
 
James





More information about the asterisk-dev mailing list