]> 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 15:40:23 +0000 (09:40 -0600)
commit59cf9f0047cf250fd870806a1052dbf9d3a75b81
treeb07f9608718782ccd55c4c0605b8cc14122c3ccb
parentb59bd3d3e47b7d8d2924d5566b2d8cbe9f9464f2
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