]> 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:18 +0000 (08:27 -0600)
commit2f2af26e96e529f5f4e1b073c0c77cea3bab9850
tree35b85cd89dd14a8852c4bcbdd366507e9af502c7
parent96c2a7932dcf78df719855394ed8626e776a2ab2
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