]> 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:20:19 +0000 (11:20 -0600)
commitb1dfc9c8058e5570e83602e34210a2ee77f85bb5
tree2f327694f6a0dd4f1131808f1b59631a59f2aa23
parent5d1407aa06fcd7c0fc72bde15d7732ad65e889df
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