]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_caller_id: Copy header name to short header name 67/3467/2
authorGeorge Joseph <gjoseph@digium.com>
Thu, 11 Aug 2016 16:24:34 +0000 (10:24 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 11 Aug 2016 19:16:41 +0000 (13:16 -0600)
commit4d5e96ab53f7076496e62b251dd349f320120d88
tree3b180ac77ed9ab997c02a703edbffe0f57da0c21
parent134db75e67850513e26addf171b8be79e66ee03d
res_pjsip_caller_id:  Copy header name to short header name

When compact_headers was set, we were sending a zero-length header name
for PAI and RPID because we always forced the short header name length
to 0.  We did this because we cloned the header from "From" and wanted
to clear "f" from the sname.  By cloning however, we bypass pjproject's
automatic logic that sets sname to name if there's no compact form of
the header, which there isn't for PAI and RPID.  So now we force sname
to be the same as name right after we set name.

res_pjsip_diversion needed the same treatment for the Diversion header.

ASTERISK-26241 #close

Change-Id: I633ec139630cd83809aae00336cee4a10077e467
res/res_pjsip_caller_id.c
res/res_pjsip_diversion.c