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
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,
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
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
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
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
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
--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.
___
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
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
10 matches
Mail list logo