]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_aoc: Don't assume a body exists on responses.
authorJoshua C. Colp <jcolp@sangoma.com>
Tue, 13 Dec 2022 15:25:17 +0000 (11:25 -0400)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 13 Dec 2022 16:53:07 +0000 (10:53 -0600)
commitb65aa359c4c552282dbee553d0bcb44bac865f2b
treec219f4612eec6a830238895e7dfdf0e07b5838fa
parent462461870df7cb27ea8175a2410548f8f85adbbf
res_pjsip_aoc: Don't assume a body exists on responses.

When adding AOC to an outgoing response the code
assumed that a body would exist for comparing the
Content-Type. This isn't always true.

The code now checks to make sure the response has
a body before checking the Content-Type.

ASTERISK-21502

Change-Id: Iaead371434fc3bc693dad487228106a7d7a5ac76
res/res_pjsip_aoc.c