Give time of day ( local )...oclock

Asterisk : 22.2.0+asl3-3.4.5-1.deb12
ASL [app_rpt] : 3.4.5

I have removed the '/usr/share/asterisk/sounds/en/digits/oclock.ulaw ', and added a 1/4 second silence file ' oclock.wav '.
From a CLI prompt, if I do ' rpt fun xxxxx *712 ', It says the time WITHOUT the oclock. YEAH!
Yet, when I do the same from a macro ( 4=*712# ), it still says oclock? Where is it getting that oclock from? This does not make sense!

Can you post your command assignment for 712= ?

standard ASL3 installation. In rpt.conf: 712 = status,12 ; Give Time of Day (local only)
Macro: 4=*712# ;Time; [scheduler] 4 = 0 * * * * ;Time every hour

Scheduled time every hour still says ' oclock '
From CLI, rpt fun xxxxx *712 says time WITHOUT oclock?

In /usr/share/asterisk/sounds/en/digits, oclock.ulaw is renamed oclock_old.ulaw, and a new file oclock.wav is added ( 1/4 second of silence ).

Do you have any other files inside that directory named 'oclock' of ANY other format

ie .ulaw etc

Move this file outside the directory in question.

The package manager will just simply replace a packaged file in /usr that you manually replaced. That's its job and expected. The correct way to do this is to put your custom sound (of nothing) in /usr/local/share/asterisk/sounds with the same name - olock.ulaw. In this case, since the sound file is technically digits/oclock.ulaw in Asterisk parlance, you need to put the file in /usr/local/share/asterisk/sounds/digits/oclock.ulaw.

1 Like

If I change NOTHING, still using my oclock.wav silence file, and just add a line to the scheduler to say the time every minute ( 4 = * * * * * ), it says the time every minute WITHOUT the oclock. Yet, if the scheduler is set to say the time at the top of the hour ( 4 = 0 * * * * ), it still says oclock? Clearly this makes no sense, or there is something I am missing. I appreciate this discussion and all the replies.

OK. I DID make the silence file in /usr/share/asterisk/sounds/en/digits oclock.ulaw ( instead of oclock.wav ), and it now does NOT say oclock. I do not quite understand why. My experience is that as long as it is 8k, 8bit, mono, a wave file will work.

I would not expect to hear "three oh four", not "three oh four oclock". I suspect that if you had waited for the on-the-hour time the oclock would have been spoken.

I see that now. Seems that replacing the ' oclock.ulaw ' with my own silence file with the EXACT same name DID work.