]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_diversion: Use static pj_str_t for Diversion header names
authorSean Bright <sean.bright@gmail.com>
Thu, 28 Feb 2019 16:01:15 +0000 (11:01 -0500)
committerSean Bright <sean.bright@gmail.com>
Fri, 1 Mar 2019 22:46:54 +0000 (17:46 -0500)
commitffe07772e688e79e31e3a5873bc7a2977b29e304
treeccf3f1f6efaead4ec651e30102df2ccc7e1d6d77
parent2a387f04dbe2f551e9d456f6cc0f442cb33ac4f3
res_pjsip_diversion: Use static pj_str_t for Diversion header names

PJSIP assumes that these header names are not allocated, and does not
clone the name strings when reusing headers.

Block unload of res_pjsip_diversion until shutdown to ensure static
memory stays valid.

ASTERISK-28312 #close

Change-Id: Ibd6ea55ec4a604bbd43ac07f8d0b54da2c39b8b9
res/res_pjsip_diversion.c