]> 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)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 12 Jul 2022 12:20:21 +0000 (06:20 -0600)
commit4afe2355beb249c67d1c21bd2102c1f497052b3a
tree3d57b31b7980f2d5632a5b6cef927c21c1150d3a
parent2ff2ccedc62c8e3f7456e7afea104c5546c2a7a7
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