mod_avmd with mod_com_g729
Hello FreeSWITCH Users, Just to get this out of the way: FreeSWITCH 1.6.10 installed via CentOS 7 repo I’m curious to see if anyone is using the g729 codec with mod_avmd. I’m doing some testing for a project here which is going to require some answering machine detection. We would like to use the g729 codec to keep bandwidth down but I am running into an issue where avmd detects a false beep right after being started on the channel via the ESL. This happens about 50% of the time but I haven’t been able to reproduce the issue using PCMU. In the console I see avmd start, the media bug gets set and the g729 encoder / decoder gets allocated. Immediately after this happens a beep is detected causing my application to go in the wrong direction. Any input is welcome. Thanks! Chad
You're better off using G711... G729 is designed for speech compression not for sinal tone compression. This is why its recommended to use out of band signaling for DTMF with G729... Plus if you are in the US the cost of bandwidth just isn’t worth it unless you are somewhere like no where Arkansas where they don’t have bandwidth... -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Chad Sent: Monday, October 3, 2016 4:27 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] mod_avmd with mod_com_g729 Hello FreeSWITCH Users, Just to get this out of the way: FreeSWITCH 1.6.10 installed via CentOS 7 repo I’m curious to see if anyone is using the g729 codec with mod_avmd. I’m doing some testing for a project here which is going to require some answering machine detection. We would like to use the g729 codec to keep bandwidth down but I am running into an issue where avmd detects a false beep right after being started on the channel via the ESL. This happens about 50% of the time but I haven’t been able to reproduce the issue using PCMU. In the console I see avmd start, the media bug gets set and the g729 encoder / decoder gets allocated. Immediately after this happens a beep is detected causing my application to go in the wrong direction. Any input is welcome. Thanks! Chad _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Chad, I would expect the version you installed is outdated - didn't support estimation of amplitude. The avmd gave (not so) false beeps (but also not what you think it should), because it fired beep detection event if constant frequency has been detected - it neglected the signal level at all. The recent version of avmd merged into master has this support included. You can also specify whether you want to detect amplitude only, frequency only, or both of them at once. detection_mode setting is responsible for this (0 - amp, 1 - freq, 2 - both (default)). <action application="avmd_start" data="detection_mode=2,(...other settings...)"/> freeswitch@> avmd show ================================================================================================= Avmd global settings debug 0 report status 1 fast_math 0 require continuous streak 1 sample n continuous streak 3 sample n to skip 0 require continuous streak amp 1 sample n continuous streak amp 3 simplified estimation 1 inbound channel 0 outbound channel 1 detection mode 2 sessions 0 +OK show commit 121bf8390966e9d7ac5dde9ed701d3503744d57e or later Please could you try this one. cheers, Piotr
participants (3)
-
Chad
-
Ken Rice
-
Piotr Gregor