[Home]

Summary:ASTERISK-26023: app_mixmonitor: Sound distortion while "End MixMonitor Recording SIP/XXXX"
Reporter:cagdas kopuz (cagdas)Labels:
Date Opened:2016-05-16 03:51:34Date Closed:
Priority:MajorRegression?
Status:Open/NewComponents:Applications/app_mixmonitor
Versions:13.7.2 13.8.1 13.8.2 13.9.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:about 200 calls with sounds recording, SSD with RAID 10 E5 XEON 2680 v2 x2 32gb MEMORYAttachments:( 0) debug.log
( 1) log.txt
Description:After few hours the Asterisk has been started, sounds distortion occurs in all calls while the other recording calls hangup(stopMixMonitor()).



Comments:By: Asterisk Team (asteriskteam) 2016-05-16 03:51:36.486-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: cagdas kopuz (cagdas) 2016-05-16 03:54:54.172-0500

All calls happening in this way (150-200 calls).

By: cagdas kopuz (cagdas) 2016-05-17 08:28:28.602-0500

I realize this problem cause ami connection.

By: Joshua C. Colp (jcolp) 2016-05-18 08:28:50.469-0500

[~cagdas] Can you elaborate on what you meant by your last comment? Was this caused by something external?

By: cagdas kopuz (cagdas) 2016-05-18 09:09:32.022-0500

I listen my asterisk from diffrent server with asterisk-java and when i terminated manager connection, sound distortion problem solved. But after few hours later, sound distortion problem occurs again. This problem still happens on playback or Backround function when other calls were terminated.

By: Rusty Newton (rnewton) 2016-05-18 16:32:02.248-0500

Are you saying that even after removing/stopping the AMI connection, the problem continues to occur?

I'm still confused!

By: cagdas kopuz (cagdas) 2016-05-23 00:49:59.826-0500

Yes, after a few hours problem occurs again.

By: cagdas kopuz (cagdas) 2016-05-23 06:37:09.193-0500

In summary, If I put this line:
{noformat}
"exten => s,n,MixMonitor(${FILENAME},b)"
{noformat}

Sound distortion occurs every "End MixMonitor Recording SIP/XXXX" event for all playbacks (not bridged calls). If i remove mixmonitor line from extensions, everythings fine.


By: Rusty Newton (rnewton) 2016-05-23 13:13:26.275-0500

Can you reproduce this with only a few calls. Lets say one call up with Mixmonitor on it, another call up with a Playback happening ?

Or does it only occur when the system is loaded with the 200-300 calls you mentioned?

By: cagdas kopuz (cagdas) 2016-05-24 02:55:04.801-0500

Asterisk work three days with high load (about 200 calls)

then i test with only two calls;

channel 1 = bridged two endpoint
channel 2 = listen playback

scenario 1 = if channel 1 with mixmonitor app and  terminated, channels 2's voice distorted.
scenario 2 = if channel 1 without mixmonitor app and terminated, channels 2's voice properly.


By: Rusty Newton (rnewton) 2016-05-25 18:14:13.461-0500

Thanks. Can you help us understand what most calls on the system are doing?

What might help:

1. A detailed description of general call flow.
2. Configuration files for a common channel (sip.conf/pjsip.conf) that would make up the majority of your ~200 channels.
3. Dialplan or scripts involved in your typical call processing.

By: cagdas kopuz (cagdas) 2016-06-03 04:02:30.099-0500

Only one call type on my test server (it's attached as log.txt)
I use cdr adaptive for cdr records.
All peers, extensions, queues, mohs, etc. in realtime.
{noformat}
astspooldir => /mnt/ramdisk/spool/asterisk
cache_record_files = yes
record_cache_dir = /mnt/ramdisk/tmp ;mixmonitor files in ramdisk
{noformat}

sip.conf:
{noformat}
[general]
language=tr
bindport=5060
nat=force_rport,comedia
100rel=required
rtcachefriends=yes
rtupdate=yes
disallow=all
allow=g729
allow=ulaw
allow=alaw
allowguest=no
alwaysauthreject=yes
trustrpid=yes
sendrpid=yes
context=from-outside
allowsubscribe=yes
callcounter=yes
avpf=no
rtptimeout=120

extensions.conf
[general]
static=yes
writeprotect=yes
priorityjumping=no
autofallthrough=no
clearglobalvars=yes
language=tr
{noformat}

extconfig.conf:
{noformat}
sipusers => mysql,pbxconf,sip_users
sippeers => mysql,pbxconf,sip_users
voicemail => mysql,pbxconf,voicemail_users
queues => mysql,pbxconf,queues
queue_members => mysql,pbxconf,queue_members
queue_dmembers => mysql,pbxconf,queue_dmembers
extensions => mysql,pbxconf,extensions
extensions_realtime.include => mysql,pbxconf,dialplan
musiconhold.conf => mysql,pbxconf,moh
extensions.include => mysql,pbxconf,dialplan
menus.include => mysql,pbxconf,dialplan
schedule.include => mysql,pbxconf,dialplan
{noformat}

By: Rusty Newton (rnewton) 2016-06-14 14:03:03.454-0500

Thanks! I can't reproduce this in small scale and I don't have the resources to reproduce your environment and configuration exactly - so I'm going to open this up and we can hope that someone else comes along who can reproduce it or narrow down what is happening. I don't see an obvious issue in the debug, so resolving this would likely take a developer to poke around in the code.