karlma / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Voicemail messages dropping #982

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call a DID that is assigned to an extension with voicemail
2. Allow call to go to voicemail
3. Record a message in the voicemail box (usually longer (+50s) messages are 
having this issue) as usual
4. Voicemail only records the first few seconds of the voicemail, the rest is 
missing in the recording. CDR shows the correct length and external packet 
capture shows the full RTP with no issues.

What is the expected output? What do you see instead?
The full voicemail should be recorded, if the recording is stopping then the 
person leaving the message should be notified (press 1 to review, 2 to 
re-record, etc).

Usually messages over 50s have this issue, but I've seen it on messages that 
are shorter. Sometimes you just get the first 2-5 seconds of the recording, 
other times you'll get 30-40 seconds, and sometimes it works just fine (I've 
been able to leave >60s messages and receive a full recording via the same 
carrier). Calls shorter than 50s do not seem to have this problem.

What version of the product are you using? On what operating system?
3.7.1 on Debian 7 x64

Please provide any additional information below.

I am using MP3 recording via mod_shout for voicemails, the issue is still 
present even if I use WAV files (same problem, except the WAV files are 
unplayable with WMP if they are cut short). I tried messing around with the 
silence detection (changed the "silence_seconds" to 100, set 
"silence_threshold" to 1, did the same thing in the voicemail.conf.xml file, 
I'm not sure if the XML files have anything to do with this or not, I've put 
them back to default in both the XML and lua script) but it did not seem to 
help. 

I have confirmed RTP from carrier is hitting the PBX without great latency or 
packet loss. I have enabled jitter-buffer (auto-jitter-buffer-msec=60) on the 
trunk SIP profile, that did not help. I confirmed the permissions are correct 
for /usr/local/freeswitch/storage & /usr/local/freeswitch/recordings. 

There are no errors being generated in the logs, I turned on debug for the 
voicemail lua scripts but still no errors or clues to why this is happening. I 
also manually updated the "record_message.lua" script to R8302, not sure if 
that has helped or not (doesn't look like it). It only seems to be an issue 
with voicemails coming in from an external numbers, but I cannot confirm as 
clients aren't really using internal voicemail. 

Original issue reported on code.google.com by blake.d....@gmail.com on 5 Jun 2015 at 4:29

GoogleCodeExporter commented 9 years ago
Sorry, I'm running Debian 7, not 6.

Original comment by blake.d....@gmail.com on 5 Jun 2015 at 4:32

GoogleCodeExporter commented 9 years ago
Did we talk on IRC and you are running this under vmWare?

Original comment by markjcrane@gmail.com on 8 Jun 2015 at 4:04

GoogleCodeExporter commented 9 years ago
Yes, that was me.

I'll try moving the datastore to a dedicated local drive, and ensure VMWare 
tools keeps running. We'll see if that helps with this or not. Changing FS from 
1.5.15b to 1.4.19 helped a little bit, but did not fully resolve the issue. 

We'll re-configure our VM environment and see what happens. If that fixes the 
issue I'll update here in case anyone runs into this in the future.

Original comment by blake.d....@gmail.com on 8 Jun 2015 at 4:08

GoogleCodeExporter commented 9 years ago
Still have this issue plaguing me, here is what I have tried over the weekend:

- Upgrade Fusion to 3.8.4
- Upgrade of Debian OS (included updated VM-Ware-Tools)
- Change VMWare Host
- Change drives to dedicated local storage
- Reserve memory and CPU resources for Fusion VM
- Different NIC

After all of that I still seem to be having this problem. It seems like any 
recordings longer than 40 seconds get cut and still no errors in either 
freeswitch or syslog. 

Any other ideas?

Original comment by blake.d....@gmail.com on 15 Jun 2015 at 2:21

GoogleCodeExporter commented 9 years ago
Alright, I think I may have resolved this. I feel stupid now because it looks 
like RSync was causing this problem.

I had Rsync running every 5 minutes for high-availability. Whenever RSync would 
run (it was syncing /usr/local/freeswitch/storage/) the file would get cut. I 
have switched RSync to run only at 1AM and so far all of my recordings have 
been working fine. In hindsight, I should have checked this earlier. Feel free 
to close this ticket and thanks for taking the time to try and help me out. 

Original comment by blake.d....@gmail.com on 15 Jun 2015 at 3:00