mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
- Add error handling to ast_parse_allow_disallow
- Use this in chan_sip configuration parsing git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -533,8 +533,9 @@ struct ast_format_list ast_codec_pref_getsize(struct ast_codec_pref *pref, int f
|
||||
/*! \brief Parse an "allow" or "deny" line in a channel or device configuration
|
||||
and update the capabilities mask and pref if provided.
|
||||
Video codecs are not added to codec preference lists, since we can not transcode
|
||||
\return Returns number of errors encountered during parsing
|
||||
*/
|
||||
void ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char *list, int allowing);
|
||||
int ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char *list, int allowing);
|
||||
|
||||
/*! \brief Dump audio codec preference list into a string */
|
||||
int ast_codec_pref_string(struct ast_codec_pref *pref, char *buf, size_t size);
|
||||
|
Reference in New Issue
Block a user