Summary:ASTERISK-20508: Monitor run twice on the same channel. Resulting mix of second Monitor instance has offset or drifting audio legs.
Reporter:Renato Marques Rizzatto (rizzatto)Labels:
Date Opened:2012-10-03 14:20:02Date Closed:
Versions: 13.18.4 Frequency of
Environment:CentOS release 6.2 Intel Core I7Attachments:( 0) extensions.conf
( 1) iax.conf
( 2) myDebugLog
( 3) myDebugLog.2
( 4) second_monitor_file_mix.wav
Description:When i have two monitors in a same call, it occurs problems with mix in second monitor.

For example:

The IAX channel dial to some exten.
The exten in dialplan start monitor skipping out channel.
After 10 seconds stop monitor
So next start monitor again, but with option mix, and call one other IAX channel.

The mix of second monitor is a problem out of sync.
Comments:By: Renato Marques Rizzatto (rizzatto) 2012-10-03 14:25:09.764-0500

I attached dialplan for reproduce the problem.

By: Matt Jordan (mjordan) 2012-10-03 15:05:48.467-0500

1) Are you using MixMonitor, or Monitor?
2) What codecs are in use on the involved channels?  Is any transcoding involved, and if so, is Asterisk providing the transcoding or is some piece of hardware providing the transcoding?
3) Is there any jitter on the channels involved?

By: Renato Marques Rizzatto (rizzatto) 2012-10-04 06:36:55.692-0500

1) I'm using the Monitor.
2) I'm using the gsm codec in both channels, and there isn't transcoding.
3) Don't have jitter, the channels are registered by local network.

By: Matt Jordan (mjordan) 2012-10-04 11:03:02.510-0500

We require a complete debug log to help triage the issue. This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

Please set 'iax set debug on' as well.

By: Renato Marques Rizzatto (rizzatto) 2012-10-05 08:55:05.752-0500

I attached log requested.
You don't will see errors in the log, but if you reprocude the problem with the dialplan in attached and listem the second record call, you see the out of sync.

By: Rusty Newton (rnewton) 2012-10-10 13:49:50.193-0500

Can you provide the sample recorded calls demonstrating the problem?

Can you also provide a log with the iax2 debugging enabled additional to everything you already have. "iax2 set debug on"

By: Renato Marques Rizzatto (rizzatto) 2012-10-11 12:44:50.911-0500

Hi Rusty,   I attached the recording WAV file to demonstrate the problem and LOG collect during this recording.

Here is the dialog they are talking on this record:

Luis: Hi Andrea
Andrea: Hey Luis.
Luis: I received an email from Patrick. He is asking about the reports we have on our IVR solution.
Andrea: Yes. How can I help you ?
Luis: Could you prepare a step by step paper ? Patrick is from help desk and his team needs something very simple and clear. We need to show how to request main reports only.
Andrea: Sure. In fact I already have this kind of document but it has some details I believe it´s not necessary to Help Desk team, like how can I create a new report.
Luis: Exactly. They don´t need this information because they will never create new reports. They just extract reports and send to customers.
Andrea: OK. I´ll review and create a new one specific for Help Desk needs. I belive I can finish this new paper today at 5 PM. Is it ok for you ?
Luis: Great. Sounds good. Thanks Andrea. Please send the paper to Patrick and copy me.

By: Renato Marques Rizzatto (rizzatto) 2012-10-11 12:46:24.569-0500

Requested files attached.

By: Rusty Newton (rnewton) 2012-10-16 08:02:32.075-0500

Do you see the same problem if you use MixMonitor instead?

What are the IAX devices in use? Softphones, or physical devices, if so what model?

Renato, can you also post your iax.conf, sanitized?

By: Renato Marques Rizzatto (rizzatto) 2012-10-16 11:38:17.580-0500

Hi Rusty,

1) You are correct. Using MixMonitor the problem did not occured.

2) Our IAX devices are Softphones (Zoiper).

3) iax.conf was attached.

We are using "Monitor" skipping output channel because we are using Input Channel for "Voice Recognition".  

One possible solution is to use Monitor on the first monitoring and  use MixMonitor on seccond monitoring to save the "Call Recorder".  

Is this recommended ? or we´ll have any solution to use Monitor ?

By: Rusty Newton (rnewton) 2012-10-18 14:04:59.549-0500

Thank you for the additional information.

I can't find any other recent reports of this problem.  We'll acknowledge the report as a possible bug. Any developer will be free to look at the issue when they get a chance.

In the interim, I would recommend using MixMonitor if that works for you.