Record function random slow recording

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Record function random slow recording

Postby canwan » Tue Sep 15, 2015 7:46 pm

I have searched quite a bit for this but I can't seem to narrow the problem down. I use the Record function quite a bit on my asterisk 11.2.1 setup. It works great most of the time but occasionally I will receive a recorded file that is very slow. It is not the playback that is the issue, the recorded file itself is slow. I have not been able to narrow this down any further because I really don't know how to proceed. I would estimate it is about 1 in 50 recordings that are slow. By slow I mean it sounds almost like a robot. I can make out the recording but it sounds about 1/2 speed of what it should be.

Setup is Asterisk 11.2.1 on Centos 6.6 No Dahdi is installed.

Module Description Use Count
res_timing_pthread.so pthread Timing Interface 0
res_timing_timerfd.so Timerfd Timing Interface 1

Can anyone offer some suggestions on how to narrow this down? I really appreciate any and all help.

Thanks
canwan
Newsterisk
 
Posts: 8
Joined: Tue Sep 15, 2015 7:38 pm

Re: Record function random slow recording

Postby canwan » Tue Nov 03, 2015 7:41 am

To add to this, I have used tcpdump to monitor the offending calls and they are coming in properly but the recordings are slow. I have tried both timer modules individually and they both do the same thing although it seems like pthread may do it more often.


Another thing that may be related so sometimes no recordings are left at all. Just a 44 byte file with a Riff header.

In the dialplan I am using the Record() function.

Hopefully someone can point me towards something to try. I'm not sure how to troubleshoot this any further.
canwan
Newsterisk
 
Posts: 8
Joined: Tue Sep 15, 2015 7:38 pm

Re: Record function random slow recording

Postby canwan » Fri Nov 06, 2015 10:26 am

When I am having issues with the wav files not recording (44 bytes) I am seeing my logs flooded with this:

[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- Condition for learning hasn't exited, so reject the frame.
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- start learning mode pass with addr = xxxxxxxxxx:12322
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- probation = 2, seq = 63636
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- Condition for learning hasn't exited, so reject the frame.
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- start learning mode pass with addr = xxxxxxxxxxx:12322
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- probation = 3, seq = 63637
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- Condition for learning hasn't exited, so reject the frame.
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- start learning mode pass with addr = xx.xx.xxx.xx:12322
[Nov 6 10:15:27] DEBUG[9132][C-000001c9] res_rtp_asterisk.c: 0x7f3c78014690 -- probation = 2, seq = 63637


I searched high and low but I can't seem to make any sense of why this is happening?


The 44 bytes wav file is now my bigger issue as it is happening several times per day now. Is there any way I can log in more detail what is happening when asterisk tries to write the wav file?

I'd be willing to pay someone if they have the expertise to solve this.
canwan
Newsterisk
 
Posts: 8
Joined: Tue Sep 15, 2015 7:38 pm


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest