]> 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)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 17 Jan 2022 14:27:30 +0000 (08:27 -0600)
commita611c07dd43f208cffafb75c8df094534b803f61
tree51f4e04d73234331c04bd1be0584a0eed5dcb30d
parent1ce57621de7466bc6c3404716774547368f235af
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