[Asterisk-Users] Set system time over the phone
Matt Riddell
matt.riddell at sineapps.com
Mon Apr 4 23:45:14 MST 2005
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, because his next line is _.,1 so it will actually use the extension.
His problem is just one of permissions. Maybe he should use a suid prog
to set the date.
--
Cheers,
Matt Riddell
_______________________________________________
http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
More information about the asterisk-users
mailing list