mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Adjust RTP instance's available_formats callback to return the correct type.
The RTP engine public function that gets the available formats expects a format_t to be returned; however when calling into an RTP instance's callback to get the available formats, the callback returned an int. This never was noticed in Asterisk because the two RTP engines included do not provide an available_formats callback. This introduces an API change, and the proposal for this change was brought up on the Asterisk developers mailing list [1]. There was no public objection to this change, so it is now being put in. (closes AST-1054) reported by Doug Bailey [1] http://lists.digium.com/pipermail/asterisk-dev/2012-December/058058.html git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@378147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -374,7 +374,7 @@ struct ast_rtp_engine {
|
||||
/*! Callback to request that the RTP engine send a STUN BIND request */
|
||||
void (*stun_request)(struct ast_rtp_instance *instance, struct ast_sockaddr *suggestion, const char *username);
|
||||
/*! Callback to get the transcodeable formats supported */
|
||||
int (*available_formats)(struct ast_rtp_instance *instance, format_t to_endpoint, format_t to_asterisk);
|
||||
format_t (*available_formats)(struct ast_rtp_instance *instance, format_t to_endpoint, format_t to_asterisk);
|
||||
/*! Callback to send CNG */
|
||||
int (*sendcng)(struct ast_rtp_instance *instance, int level);
|
||||
/*! Linked list information */
|
||||
|
||||
Reference in New Issue
Block a user