Given a paging P with an announcement file
Given I remove the announcement file by setting the `announce_sound` field to an empty string
When I call my paging
Then I hear a beep and the call gets hanged up
The announce_sound has to be null to get the correct behaviour
We can either prevent the `announce_sound` to be an empty string or make an empty string behave as if it was a null.
A migration script will be required here because the DB uses 2 fields to store this information.
`announcement_file` and `announcement_play`
In the current form if someone has entered an announcement sound at any point in time the announcement_play will be 1 and wazo-agid will try to play the playback directory (no filename).
I’ve attached a patch that can be applied with the following commands
patch -p1 -d/usr/lib/python2.7/dist-packages < WAZO-1854.patch
This will require wazo-agid to be restarted
systemctl restart wazo-agid