Can't change voicemail greeting from second clustered server

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Can't change voicemail greeting from second clustered server

Postby mjohn425 » Mon Feb 01, 2021 2:18 am

Hi,

We have 2 clustered servers and everything is going great between them for a few months. Our users if they dial and attempt to change their voicemail greeting (Dial 8500, Option 0, Option 1) this will not work from the second server, the call cuts off immediately after it should be recording. Note that they can access their voice recordings fine, it is just setting the greeting, there is no issue accessing the voicemails from the other server. This is the issue we get (on the primary voicemail server) when you try to set a voicemail. I can set the greeting from any phone on the primary voicemail server.

[Feb 1 17:08:40] -- x=0, open writing: /var/spool/asterisk/voicemail/default/1052/unavail.tmp format: wav49, 0x7f2a28025f88
[Feb 1 17:08:40] -- x=1, open writing: /var/spool/asterisk/voicemail/default/1052/unavail.tmp format: gsm, 0x7f2a28022c28
[Feb 1 17:08:40] -- x=2, open writing: /var/spool/asterisk/voicemail/default/1052/unavail.tmp format: wav, 0x7f2a28024f08
[Feb 1 17:08:42] WARNING[53046][C-00000a9d]: file.c:233 ast_writestream: Natural write failed
[Feb 1 17:08:42] WARNING[53046][C-00000a9d]: app.c:1718 __ast_play_and_record: Error writing frame
[Feb 1 17:08:42] == Spawn extension (default, 8500, 1) exited non-zero on 'IAX2/CHDialer01-14904'

Any ideas? Cheers.
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: Can't change voicemail greeting from second clustered se

Postby carpenox » Mon Feb 01, 2021 7:41 am

Seems like your out of space on those drives? I mean typically thats what write failed would mean. Or incorrect permissions to write to the drive.....
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2250
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Can't change voicemail greeting from second clustered se

Postby mjohn425 » Mon Feb 01, 2021 7:47 am

Problem is that the voicemail is all stored on one server in clustered setups, so if it's write permission/disk space then it shouldn't be able to record when the recording is made on a softphone which is on the primary dialer, but yet that works fine.
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: Can't change voicemail greeting from second clustered se

Postby carpenox » Mon Feb 01, 2021 7:52 am

Yes but does the user who is logged into the system trying to change their voicemail have the permissions to do so?
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2250
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Can't change voicemail greeting from second clustered se

Postby mjohn425 » Mon Feb 01, 2021 8:20 am

Which user are you referring to? When we change the greeting, it's not through uploading it to the webserver, it's through the asterisk extension. When you dial 8500 from the second server it places a call to the voicemail server with the same extension (which is automatically generated by vicidial). If you mean the asterisk (linux) user that is on the voicemail server, then it still shouldn't be able to record the voicemail when dialed from a phone that is on the voicemail server, but that is working fine.

To clarify, a phone on the clustered server should be hitting the same dialplan/context as a phone which is on the server. We know that it at least hitting the extension because we can reach and access voicemails fine (regardless of server) but when it comes to changing the greeting (Option 0 then Option 1) it works when the phone that it dialled from is on the voicemail server only (despite hitting the same extension and context). The error log that I posted earlier is from the voicemail server not the clustered server.

On clustered servers (working for accessing voicemail but not setting greeting):
[ Included context 'vicidial-auto-internal' created by 'pbx_config' ]
'8500' => 1. Dial(${TRUNKDIALER0}/${EXTEN},99,oT) [pbx_config]
2. Hangup()

On voicemail server (DIALER0):
[ Included context 'vicidial-auto-internal' created by 'pbx_config' ]
'8500' => 1. VoicemailMain() [pbx_config]
2. Goto(s,6) [pbx_config]
3. Hangup()
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am

Re: Can't change voicemail greeting from second clustered se

Postby carpenox » Mon Feb 01, 2021 8:49 am

I still believe its a permissions issue but I may be wrong. hit me up on skype and ill see if I can help you figure it out
Alma Linux 9.3 | SVN Version: 3822 | DB Schema Version: 1711 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3 | Discord: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2250
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Can't change voicemail greeting from second clustered se

Postby mjohn425 » Wed Apr 26, 2023 5:40 pm

Postback:
Issue wasn't related to permissions, tried changing to asterisk:asterisk and even chmod 777.
Changed the format to only have wav49 in voicemail.conf on the server hosting the voicemails which has fixed it.
OS: VICIBox 9.0.1 OpenSuse 15.1 | VERSION: 2.14-742a BUILD: 200327-1715 | Asterisk: 13.21.1-vici | SVN: 3205 DB Schema: 1588
Linux: 4.12.14-lp151.28.44-default | MYSQL: Ver 15.1 Distrib 10.2.31-MariaDB | Perl: v5.26.1 | php: v7.2.5
mjohn425
 
Posts: 51
Joined: Tue Jan 21, 2020 1:20 am


Return to Support

Who is online

Users browsing this forum: No registered users and 252 guests