• News
  • Idefisk
  • Tools
  • Tutorials
  • Forum
  • Reviews
  • VoIP Providers
  • Archives
  • Gallery
ZOIPER softphone

The forum for asterisk and voip discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reboot Linux from asterisk

 
Post new topic   Reply to topic     Forum Index -> Asterisk Questions - beginners
View previous topic :: View next topic  
Author Message
spooky



Joined: 05 Jun 2006
Posts: 19

PostPosted: Sun Aug 29, 2010 8:57 am    Post subject: Reboot Linux from asterisk Reply with quote

Hello to asterisk users.

I want to dial an extension to my asterisk box and reboot the linux box which runs asterisk. I made the following dialplan

exten => 700,1,Sustem(/sbin/reboot -f)

Dut nothing happens

I use Slackware as my OS for the asterisk.

Any help?
Back to top
View user's profile Send private message
sopel1000



Joined: 28 Jan 2010
Posts: 13
Location: Poznań / Poland

PostPosted: Sun Aug 29, 2010 11:01 pm    Post subject: Reply with quote

I hope you use "System" instead of "Sustem".

Anyway, probably this command is run as user who does not have enough privileges to do that. Maybe you should first add asterisk to sudoers in /etc/sudoers and then run the command with sudo?

I am not sure if this is a good idea or if it is a stupid one, but I at least try Smile I know how it is to not get an answer on this forum :/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Asterisk Questions - beginners All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™