Periodic-announce

Hello i have multiple periodic-announcements to make
i see that it is implemented into the source of 1.4.17 but i cant figure out how to use it

any ideas

i have tried
periodic-announce=file1
periodic-announce=file2
periodic-announce=file3
and
periodic-announce=file1,file2,file3

the First only plays the last file
the second does nothing…

Cheers

hi
You need to format all 3 file in 1 sound file. then use it as auunounce -perodic. that is best solution. number of tools which use for mixing such sound files
3 diffrent file not act to play back to back mode
Amit

Hello,

the thread was started long time ago but I have currently exactly the same problem with a debian wheezy (using the debian packages) installation and asterisk 1.8.13.1.

Everywhere in the internet I find the information that you CAN play multiple periodic announcements in a fixed order by separating the files by a comma. If I do that the first one gets played but not the second.

Merging would be a solution but I need the single sound files at other places, as well, so just playing multiple files one after another as periodic-announce would be way more convenient.

Maybe now someone can give us some insight on this.

Thank you for your help an advance!!

Thomas

This is the documentation. periodic-announce is the correct name.

;periodic-announce = queue-periodic-announce
;
; A set of periodic announcements can be defined by separating
; periodic announcements to reproduce by commas. For example:
;periodic-announce = queue-periodic-announce,your-call-is-important,please-wait

The names re not file names; they are the file name without the extension. Asterisk chooses the extension that gives the lowest transcoding cost for the particular call. The extension must be one for a known codec and the file must be formatted for the specific codec. In particular, wav must be 8kHz, mono, signed linear 16 bits, and WAV must be full rate GSM, not just any format supported by Windows .wav.

Thanks david55 for your fast reply.

I read the documentation and I am aware about the fact that you don’t put the file names without the extension into the configuration. As well, I have files in the correct format. Currently, in my case only gsm files but for testing it should be fine.

I moved my 2 test files for english and german accordingly into /usr/share/asterisk/sounds/de/ and /usr/share/asterisk/sounds/en/ which is the default sound folder for debian. They are called tb35 and tb36.

-rw-r--r-- 1 root root 3828 Jul 11 14:07 /usr/share/asterisk/sounds/de/tb35.gsm
-rw-r--r-- 1 root root 4818 Jul 11 14:07 /usr/share/asterisk/sounds/de/tb36.gsm
-rw-r--r-- 1 root root 2442 Jul 11 14:07 /usr/share/asterisk/sounds/en/tb35.gsm
-rw-r--r-- 1 root root 5280 Jul 11 14:07 /usr/share/asterisk/sounds/en/tb36.gsm

My queue configuration is the following:

[test]
music=moh-default
strategy=ringall
timeoutpriority = app
autofill = yes
maxlen = 10
keepstats = yes
leavewhenempty = strict
joinempty = strict
announce-frequency = 60
min-announce-frequency = 40
periodic-announce-frequency=30
relative-periodic-announce=yes
random-periodic-announce=no
periodic-announce = tb35,tb36
member => SIP/agent

The log part from the asterisk console with “agi set debug on” shows:

...
SIP/agent-0000000a is ringing
    -- SIP/agent-0000000a is ringing
    -- SIP/agent-0000000a is ringing
    -- SIP/agent-0000000a is ringing
    -- Nobody picked up in 15000 ms
    -- Stopped music on hold on SIP/customer1-00000008
    -- Playing periodic announcement
    -- <SIP/customer1-00000008> Playing 'tb35.gsm' (language 'de')
    -- Started music on hold, class 'moh-default', on SIP/customer1-00000008
  == Using SIP RTP CoS mark 5
    -- SIP/agent-0000000b connected line has changed. Saving it until answer for SIP/customer1-00000008
    -- SIP/agent-0000000b is ringing
    -- SIP/agent-0000000b is ringing
...

It plays tb35.gsm and then starts the moh music again. It just skips tb36.gsm.

I checked the asterisk “full” log, as well, but it does not show any more information regarding the announcements than the regular asterisk console with agi debug set to on.

Any ideas?

It will only play one file in each interval.

Mh true.

Seems like I missunderstood the documentation. But on the other hand the documentation is not very clear for this point…

Thanks again for pointing that out.