[asterisk-dev] How to create a slinear silent frame?

Russell Bryant russell at digium.com
Mon May 18 08:23:10 CDT 2009


Holger Wirtz wrote:
> Hi,
> 
> I tried to create an empty frame (with data set to 0000000...) but I get
>  crashes when I try to send this frames with ast_write() to a channel.

Take a look at the function silence_generator_generate() in
main/channel.c for an example of how to do this.

-- 
Russell Bryant
Digium, Inc. | Senior Software Engineer, Open Source Team Lead
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list