]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_callerid: Clear out display name if id->name is not valid 57/2657/1
authorGeorge Joseph <george.joseph@fairview5.com>
Tue, 19 Apr 2016 22:52:15 +0000 (16:52 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 20 Apr 2016 13:31:18 +0000 (08:31 -0500)
commit1feead5760f37d1388bbb8b9b5e636832a011f37
treee07b28de01a23efa7c53a3b3936a9afc6435935c
parent1bd1bd1178af16e6c04b39090a35ee03c37cc252
res_pjsip_callerid:  Clear out display name if id->name is not valid

When create_new_id_hdr creates a new RPID or PAI header, it starts by cloning
the From header, then it overwrites the display name and uri from the channel's
connected.id.  If the connected.id.name wasn't valid, create_new_id_hdr was
leaving the display name from the From header in the new RPID or PAI header.
On an attended transfer where the originator had a caller id number set but not
a display name, the re-INVITE to the final transferee had the number of the
originator but the display name of the transferer.

Added a check to clear out the display name in the new header if
connected.id.name was invalid.

ASTERISK-25942 #close

Change-Id: I60b4bf7a7ece9b7425eba74151c0b4969cd2738b
res/res_pjsip_caller_id.c