]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix From header truncation for extremely long CALLERID(name). 70/1270/2
authorWalter Doekes <walter+asterisk@wjd.nu>
Thu, 17 Sep 2015 09:52:09 +0000 (11:52 +0200)
committerWalter Doekes <walter+asterisk@wjd.nu>
Fri, 18 Sep 2015 08:04:41 +0000 (03:04 -0500)
commitb59c4d82b58a7a10e1791f9ed5759af8ac637df2
tree2a486bb08786fc078915484a3822b8a2e5aa49c0
parenta665b3128177fc87036d7eb8b3174ac85e791d22
chan_sip: Fix From header truncation for extremely long CALLERID(name).

The CALLERID(num) and CALLERID(name) and other info are placed into the
`char from[256]` in initreqprep. If the name was too long, the addr-spec
and params wouldn't fit.

Code is moved around so the addr-spec with params is placed there first,
and then fitting in as much of the display-name as possible.

ASTERISK-25396 #close

Change-Id: I33632baf024f01b6a00f8c7f35c91e5f68c40260
channels/chan_sip.c