[asterisk-dev] rtp data in an app question
    Russell Bryant 
    russell at digium.com
       
    Wed Aug 12 10:40:29 CDT 2009
    
    
  
Kevin P. Fleming wrote:
> Russell Bryant wrote:
> 
>> One other note is that a frame is not always audio.  Frames may also be 
>> signaling frames, among other things (see ast_frame_type in frame.h). 
>> Make sure that you check to ensure that the frame type is 
>> AST_FRAME_AUDIO before you treat it as such.
> 
> You might want to check for AST_FRAME_VOICE instead, as it has a better
> chance of compiling :-)
> 
Compiling is overrated.  At least I provided a reference to the enum 
type and header file!  AST_FRAME_AUDIO is the 4 AM version.  During sane 
hours of the day, it's AST_FRAME_VOICE.
Thanks, Kevin.  :-)
-- 
Russell Bryant
Digium, Inc. | Engineering Manager, Open Source Software
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