|
|
|
@ -240,43 +240,26 @@ extern struct ast_frame ast_null_frame;
|
|
|
|
|
#define AST_FORMAT_MAX_VIDEO (1 << 24)
|
|
|
|
|
#define AST_FORMAT_VIDEO_MASK (((1 << 25)-1) & ~(AST_FORMAT_AUDIO_MASK))
|
|
|
|
|
|
|
|
|
|
/* Control frame types */
|
|
|
|
|
/*! Other end has hungup */
|
|
|
|
|
#define AST_CONTROL_HANGUP 1
|
|
|
|
|
/*! Local ring */
|
|
|
|
|
#define AST_CONTROL_RING 2
|
|
|
|
|
/*! Remote end is ringing */
|
|
|
|
|
#define AST_CONTROL_RINGING 3
|
|
|
|
|
/*! Remote end has answered */
|
|
|
|
|
#define AST_CONTROL_ANSWER 4
|
|
|
|
|
/*! Remote end is busy */
|
|
|
|
|
#define AST_CONTROL_BUSY 5
|
|
|
|
|
/*! Make it go off hook */
|
|
|
|
|
#define AST_CONTROL_TAKEOFFHOOK 6
|
|
|
|
|
/*! Line is off hook */
|
|
|
|
|
#define AST_CONTROL_OFFHOOK 7
|
|
|
|
|
/*! Congestion (circuits busy) */
|
|
|
|
|
#define AST_CONTROL_CONGESTION 8
|
|
|
|
|
/*! Flash hook */
|
|
|
|
|
#define AST_CONTROL_FLASH 9
|
|
|
|
|
/*! Wink */
|
|
|
|
|
#define AST_CONTROL_WINK 10
|
|
|
|
|
/*! Set a low-level option */
|
|
|
|
|
#define AST_CONTROL_OPTION 11
|
|
|
|
|
/*! Key Radio */
|
|
|
|
|
#define AST_CONTROL_RADIO_KEY 12
|
|
|
|
|
/*! Un-Key Radio */
|
|
|
|
|
#define AST_CONTROL_RADIO_UNKEY 13
|
|
|
|
|
/*! Indicate PROGRESS */
|
|
|
|
|
#define AST_CONTROL_PROGRESS 14
|
|
|
|
|
/*! Indicate CALL PROCEEDING */
|
|
|
|
|
#define AST_CONTROL_PROCEEDING 15
|
|
|
|
|
/*! Indicate call is placed on hold */
|
|
|
|
|
#define AST_CONTROL_HOLD 16
|
|
|
|
|
/*! Indicate call is left from hold */
|
|
|
|
|
#define AST_CONTROL_UNHOLD 17
|
|
|
|
|
/*! Indicate video frame update */
|
|
|
|
|
#define AST_CONTROL_VIDUPDATE 18
|
|
|
|
|
enum ast_control_frame_type {
|
|
|
|
|
AST_CONTROL_HANGUP = 1, /*! Other end has hungup */
|
|
|
|
|
AST_CONTROL_RING = 2, /*! Local ring */
|
|
|
|
|
AST_CONTROL_RINGING = 3, /*! Remote end is ringing */
|
|
|
|
|
AST_CONTROL_ANSWER = 4, /*! Remote end has answered */
|
|
|
|
|
AST_CONTROL_BUSY = 5, /*! Remote end is busy */
|
|
|
|
|
AST_CONTROL_TAKEOFFHOOK = 6, /*! Make it go off hook */
|
|
|
|
|
AST_CONTROL_OFFHOOK = 7, /*! Line is off hook */
|
|
|
|
|
AST_CONTROL_CONGESTION = 8, /*! Congestion (circuits busy) */
|
|
|
|
|
AST_CONTROL_FLASH = 9, /*! Flash hook */
|
|
|
|
|
AST_CONTROL_WINK = 10, /*! Wink */
|
|
|
|
|
AST_CONTROL_OPTION = 11, /*! Set a low-level option */
|
|
|
|
|
AST_CONTROL_RADIO_KEY = 12, /*! Key Radio */
|
|
|
|
|
AST_CONTROL_RADIO_UNKEY = 13, /*! Un-Key Radio */
|
|
|
|
|
AST_CONTROL_PROGRESS = 14, /*! Indicate PROGRESS */
|
|
|
|
|
AST_CONTROL_PROCEEDING = 15, /*! Indicate CALL PROCEEDING */
|
|
|
|
|
AST_CONTROL_HOLD = 16, /*! Indicate call is placed on hold */
|
|
|
|
|
AST_CONTROL_UNHOLD = 17, /*! Indicate call is left from hold */
|
|
|
|
|
AST_CONTROL_VIDUPDATE = 18, /*! Indicate video frame update */
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#define AST_SMOOTHER_FLAG_G729 (1 << 0)
|
|
|
|
|
|
|
|
|
|