[asterisk-bugs] [JIRA] (ASTERISK-15421) SayUnixTime plays nothing if say.conf mode=new and a format is specified

Sean Bright (JIRA) noreply at issues.asterisk.org
Thu Aug 31 10:12:09 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-15421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright closed ASTERISK-15421.
----------------------------------

    Resolution: Not A Bug

This is technically not a bug. The implementation leaves something to be desired, but that is neither here nor there. As others have pointed out, in order to be able to use a specific format, you need to modify {{say.conf}}. For the example {{abd}} format and assuming English, you need to open {{say.conf}} and find this block:

{noformat}
[en](en-base,date-base,digit-base)
    _datetime::. => date:AdBY 'digits/at' IMp:${SAY}
    _date::. => date:AdBY:${SAY}
    _time::. => date:IMp:${SAY}
{noformat}

Once you have found it, add another {{_datetime}}, so that you end up with this:

{noformat}
[en](en-base,date-base,digit-base)
    _datetime::. => date:AdBY 'digits/at' IMp:${SAY}
    _datetime:abd:. => date:abd:${SAY} ; <-- Add this line
    _date::. => date:AdBY:${SAY}
    _time::. => date:IMp:${SAY}
{noformat}

Restart Asterisk or run {{module reload app_playback.so}} at the CLI. Run {{say load new}}, and then try your test call.

For every custom datetime format that you want to use you have to specify a corresponding format in {{say.conf}}.

Yes it's lame. Yes it's inelegant. But it is unfortunately not a bug.

> SayUnixTime plays nothing if say.conf mode=new and a format is specified
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-15421
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-15421
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Applications/app_sayunixtime
>            Reporter: David Ruggles
>            Assignee: Sean Bright
>            Severity: Minor
>
> There is no error generated, SayUnixTime simply does nothing. Any format can be specified, I have even duplicated the default format with the same result. I tried to debug it, but this seems be beyond my limited C abilities to debug.
> ****** ADDITIONAL INFORMATION ******
> I'm more then willing to assist with debugging this and I'll take any opportunity to learn more.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list