Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Peter Bowyer
On Apr 5, 2005 12:45 AM, Mike Sander [EMAIL PROTECTED] wrote: I have installed Asterisk using the [EMAIL PROTECTED] image for a client that is VoIP-a-phobic. Hence the system cannot be connected to their LAN at all - don't ask why! I have tested the clock at my installation lab, and all

Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Matt Riddell
Peter Bowyer wrote: exten 456,1,Background(Please-set-time-mmddhhmm) exten _.,1,System (date ${EXTEN}) If I dial 456 I get the message, so I type 04021305 (2nd April, 13:05). On the console Asterisk reports the command Dial 04021305 exits non-zero. You need 'Read' instead of 'Background'. No,

Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Roman Volf
Another way is to do: exten 456,1,Background(Please-set-time-mmddhhmm) exten _.,1,System (echo ${EXTEN} /tmp/datetime ) Then have a cron job that runs every minute to check if file exists. For example: #!/bin/bash if [ -f /tmp/datetime ] then date `cat /tmp/datetime` rm -f /tmp/datetime fi

Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Peter Bowyer
On Apr 5, 2005 7:45 AM, Matt Riddell [EMAIL PROTECTED] wrote: Peter Bowyer wrote: exten 456,1,Background(Please-set-time-mmddhhmm) exten _.,1,System (date ${EXTEN}) If I dial 456 I get the message, so I type 04021305 (2nd April, 13:05). On the console Asterisk reports the command Dial

Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Tzafrir Cohen
On Tue, Apr 05, 2005 at 09:45:54AM +1000, Mike Sander wrote: I have installed Asterisk using the [EMAIL PROTECTED] image for a client that is VoIP-a-phobic. Hence the system cannot be connected to their LAN at all - don't ask why! Does it have a lan connection at all? If so, you could use

Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Mike Sander
PROTECTED] To: asterisk-users@lists.digium.com Sent: Tuesday, April 05, 2005 8:02 PM Subject: Re: [Asterisk-Users] Set system time over the phone On Tue, Apr 05, 2005 at 09:45:54AM +1000, Mike Sander wrote: I have installed Asterisk using the [EMAIL PROTECTED] image for a client that is VoIP-a-phobic

Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Mike Sander
Looks good - thanks for the help! Mike - Original Message - From: Roman Volf [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Tuesday, April 05, 2005 4:48 PM Subject: Re: [Asterisk-Users] Set system time over the phone

Re: [Asterisk-Users] Set system time over the phone

2005-04-05 Thread Kenneth Porter
--On Tuesday, April 05, 2005 1:02 PM +0300 Tzafrir Cohen [EMAIL PROTECTED] wrote: Does it have a lan connection at all? If so, you could use ntpd. Agreed. This is present in most Linux distros and is pretty straightforward to set up. ___

[Asterisk-Users] Set system time over the phone

2005-04-04 Thread Mike Sander
I have installed Asterisk using the [EMAIL PROTECTED] image for a client that is VoIP-a-phobic. Hence the system cannot be connected to their LAN at all - don't ask why! I have tested the clock at my installation lab, and all is fine, but they might want to set/check it. I know there is the

Re: [Asterisk-Users] Set system time over the phone

2005-04-04 Thread [EMAIL PROTECTED]
Asterisk runs as the asterisk user not as root for security reasons. Asterisk does not have permissions to set the date. to test commands from the console do an su asterisk first. you will then have the same permissions as your script. --- Mike Sander [EMAIL PROTECTED] wrote: I have installed