[asterisk-bugs] [JIRA] (ASTERISK-22294) [patch] format_g729 - better handling of CNG

Joshua Colp (JIRA) noreply at issues.asterisk.org
Mon Dec 18 11:46:07 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-22294:
-----------------------------------

    Affects Version/s: 13.18.4

> [patch] format_g729 - better handling of CNG
> --------------------------------------------
>
>                 Key: ASTERISK-22294
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22294
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Formats/format_g729
>    Affects Versions: 11.5.0, 13.18.4
>         Environment: asterisk 11.5.0
>            Reporter: Jaco Kroon
>            Severity: Trivial
>         Attachments: asterisk_g729_vad_detection.patch
>
>
> In spite of asterisk passing all possible paramaters to kill VAD (annexb) some endpoints are hard-coded to send it, or simply ignore these settings.  I've got two examples, the one is a Yealink phone with "silence suppression" switched on, the other is an upstream peer for one of my clients.  To aggravate the issue they combine CNG with payload, and insist on a ptime=60, so I've seen 10*n+2 byte packets.  The assumption here is that the first 50 bytes is payload followed by 2 bytes CNG parameter data.
> I've written a patch that will in these cases take whatever payload it can and write it to the stream and silently (after generating a WARNING to the logs for each affected stream - I'd like to add the actual channel name to the warning but don't see an easy way) discard the CNG data.  This results in 10-byte all-zero blocks, which I'll deal with externally.  This results in a 100Hz hum-like noise when listening to the stream again.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list