]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Make message_filter and session multipart aware
authorGeorge Joseph <gjoseph@digium.com>
Mon, 10 Jan 2022 13:44:12 +0000 (06:44 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 17 Jan 2022 17:19:18 +0000 (11:19 -0600)
commit9e975d4c185ed7e353b222980ef6cfce82f4f7b8
tree40103d9167e2ce227bd669bd9251d3f76231c4f6
parent5fdf6e4e18d1daaec8fc62c79ce6672f1a8665b6
res_pjsip: Make message_filter and session multipart aware

Neither pjsip_message_filter's filter_on_tx_message() nor
res_pjsip_session's session_outgoing_nat_hook() were multipart
aware and just assumed that an SDP would be the only thing in
a message body.  Both were changed to use the new
pjsip_get_sdp_info() function which searches for an sdp in
both single- and multi- part message bodies.

ASTERISK-29813

Change-Id: I8f5b8cfdc27f1d4bd3e7491ea9090951a4525c56
res/res_pjsip/pjsip_message_filter.c
res/res_pjsip_session.c