]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_caller_id: Use static pj_str_t for fromto header names.
authorCorey Farrell <git@cfware.com>
Thu, 15 Nov 2018 20:47:50 +0000 (15:47 -0500)
committerCorey Farrell <git@cfware.com>
Thu, 15 Nov 2018 20:49:12 +0000 (15:49 -0500)
commit02c7a061ea312efd6401be9ffa0bcffc03f2f0e2
tree3b22746153af0c92f83d7f93c8ccca00c4519a9c
parentfc82312aab06c0844c813d319a0b7a4abd8cec4a
res_pjsip_caller_id: Use static pj_str_t for fromto header names.

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

Block unload of res_pjsip_caller_id until shutdown to ensure static
memory stays valid.  It was previously unsafe to unload while any
sessions are active.

Change-Id: I190854dea943d6e441cf03733f8a0da661aea27f
res/res_pjsip_caller_id.c