I've partially figured it out:
The voip-info.org <http://voip-info.org> wiki for SayUnixTime suggests
that
if you don't specify the 3rd parameter, it will default to:
ABdY 'digits/at' IMp
For some reason, for my setup, the default wasn't working when I left the
parameter blank. When I specified the format in the extensions line, it
works fine:
exten => 400,n,SayUnixTime(,EST5EDT,ABdY \'digits/at\' IMp )
I looked at the code and it seems to attempt to set the default format
string based on chan->language ... maybe my language isn't set up
correctly.
Anyway, hope that may be useful to someone.
On 9/22/05, Brian McEntire <brian.mcentire@gmail.com>
wrote:>
> Can anyone tell me what I missed? I'm trying to setup a simple
extension
> (400) that reports the time when it is dialed. I searched the threads and
it
> seems like this should work...
>
> Here's what's in my extensions.conf:
>
> exten => 400,1,Answer()
> exten => 400,n,Wait,1
> exten => 400,n,SayUnixTime(,EST5EDT,)
> exten => 400,n,Playback(tt-weasels)
>
>
> [BTW, tt-weasels is hillarious! ;-) Props to whoever made that. ]
>
>
> When I call the extension, it answers and immediately falls through to
> tt-weasels, which I hear fine. It's like SayUnixTime gets jumped over
or
> returns nothing (very quickly.) I checked and the "at" sound
which is used
> by the default SayUnixTime format string is in place. Also, SayDigits and
> SayNumber seem to work okay.
>
> When asterisk starts up in verbose mode, it looks like SayUnixTime gets
> loaded okay:
>
> [app_sayunixtime.so]Sep 23 03:24:04 VERBOSE[3854] logger.c:
> [app_sayunixtime.so] => (Say time)
> == Registered application 'SayUnixTime'
> == Registered application 'DateTime'
>
>
> This is what is output from asterisk -vvv when I dial 400:
>
> -- Starting simple switch on 'Zap/1-1'
> -- Executing Answer("Zap/1-1", "") in new stack
> -- Executing Wait("Zap/1-1", "1") in new stack
> -- Executing SayUnixTime("Zap/1-1", "|EST5EDT|") in new
stack
> -- Executing Playback("Zap/1-1", "tt-weasels") in new
stack
> -- Playing 'tt-weasels' (language 'en')
> -- Executing Wait("Zap/1-1", "5") in new stack
>
>
> Any ideas?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050922/92d5fc55/attachment.htm