]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Add utils for checking media types
authorGeorge Joseph <gjoseph@digium.com>
Thu, 6 Jan 2022 19:05:34 +0000 (12:05 -0700)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 17 Jan 2022 14:25:58 +0000 (08:25 -0600)
commit921ab52cf30586b921287f6cc513d476cb574bd2
tree709a86822bc9d9d3cfe3ca9d8e90b8573691baf8
parent0d1b9e6baffd4188d26494e8254461cd0e50f82c
res_pjsip: Add utils for checking media types

Added two new functions to assist checking media types...

* ast_sip_are_media_types_equal compares two pjsip_media_types.
* ast_sip_is_media_type_in tests if one media type is in a list
  of others.

Added static definitions for commonly used media types to
res_pjsip.h.

Changed several modules to use the new functions and static
definitions.

ASTERISK_29813
(not ready to close)

Change-Id: Ief77675235bd3bf00a6b095d4673fd878d0801b9
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip.exports.in
res/res_pjsip_sdp_rtp.c
res/res_pjsip_session.c