Hello,<br><br>I will be watching for your progress/updates on this. I maintain a couple custom Asterisk modules for 1.2 and did a major rework under 1.8 (only minor changes were needed for 1.8 compatibility, but the modules themselves needed a lot of instrumenting for ongoing support and debugging). We use Asterisk as the dialer and communication framework for mass message delivery.<br>
<br>As a part of this project, our support folks indicated that they were having problems delivering messages to certain AT&amp;T VOIP systems on the East coast which were disconnecting us within a fraction of a second of waiting for us to deliver a voicemail. After spending a couple days experimenting with what we guessed might be the problem, we found that simply sending silence packets when we are not transmitting audio is sufficient to keep AT&amp;T from dropping us.<br>
<br>Our application plays and stops various streams on the channel according to a scripted sequence, so I simply made it stop the silence when a stream starts, and start the silence when a stream stops. I use f.ast_channel_start_silence_generator() and f.ast_channel_stop_silence_generator() for this purpose. Examining the Asterisk code, I see that it simply sends 0-filled channel frame buffers. This is sufficient for our current needs, however we are somewhat concerned that we will eventually run into some system running silence suppression which will drop these packets and again either kill our connection, or cause strange choppiness in the streams due to inexactness of the suppression technique.<br>
<br>Out of sheer paranoia, I wrote a small bit that fills the buffer instead with random low-level noise (+/- 10 on a signed short) in the hopes that this would not be perceived as an empty packet that may be discarded. At a higher amplitude, this makes a horribly shrill sound, so something more in line with actual comfort noise would be great and the amplitude could be brought up to an audible level at that point.<br>
<br>I understand that your comfort noise solution is generally expected to perform a somewhat different function, however if there were some way to invoke it with a generator similar to the way the silence generator is, that would be much preferable to hacking my own.<br>
<br>Regards,<br>- Sean<br><br><div class="gmail_quote">On Tue, Sep 18, 2012 at 9:21 AM, Olle E. Johansson <span dir="ltr">&lt;<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Friends,<br>
<br>
Just a heads up on a new project. I&#39;m trying to implement support for cng in Asterisk. I&#39;ve started the easy way with cmantunes patch found in issue  <a href="https://issues.asterisk.org/jira/browse/ASTERISK-5263" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-5263</a> ...which is marked post-1.2 ;-)<br>

<br>
I&#39;ve checked with cmantues and he&#39;s happy that we&#39;re looking into this code.<br>
<br>
I will use this generator to generate noise on the outbound channel if the inbound channel starts sending CNG packets. That&#39;s level one, to fill in the gaps.<br>
<br>
I haven&#39;t looked into if we have support for silence detection that could be used to send CN out of Asterisk. If anyone has any ideas or suggestions on how to detect silence in a bridged call I&#39;m listening :-)<br>

<br>
The README that shows the starting point and my thoughts about this work plus quotes from the RFC about CNG in RTP  is attached.<br>
<br>
As usual, I look forward to the feedback!<br>
<br>
/O<br>
<br>
***** README *******<br>
Edvina AB<br>
Olle E. Johansson<br>
<br>
<br>
Started: 2012-09-18<br></blockquote></div>