Probably the user/group under which asterisk runs does not have right to delete/create files in /etc

----
Andre Courchesne - Consultant
http://www.net-forces.com
Phone: (514) 667-8448
MSN: [email protected]
Skype: VoipForces

L'information contenue dans le pre'sent document est la proprie'te' de Andre Courchesne. Et est divulgue'e en toute confidentialite'. Cette information ne doit pas e^tre utilise'e, divulgue'e a` d'autres personnes ou reproduite sans le consentement e'crit explicite de Andre Courchesne.

The information contained in this document is confidential and property of Andre Courchesne. It shall not be used, disclosed to others or reproduced without the express written consent of Andre Courchesne.

Dean Yorke wrote:
Hi All,

I am trying to create a file and remove a file in the /etc directory with the dial plan

here is what I have

[custom-support_off]
exten => 330,1,Answer()
exten => 330,2,Authenticate(7877678)
exten => 330,3,Playback(welcome)
exten => 330,4,System(echo off > /etc/nologin.ttyS0)
exten => 330,5,Hangup()

[custom-support_on]
exten => 331,1,Answer()
exten => 331,2,Authenticate(7877678)
exten => 331,3,Playback(welcome)
exten => 331,4,System(rm /etc/nologin.ttyS0)
exten => 331,5,Hangup()

it runs through the process and the cli show it functioning, but the file never gets created or deleted.

Thanks for the help


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to