]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix From header truncation for extremely long CALLERID(name). 69/1269/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 07:56:54 +0000 (09:56 +0200)
commit2fcf45e9cfc3a68ed4b37ba8cafdf73279f5aae7
tree1f25f424ed81d3d73921cbbbd1063d2ec9a1531f
parent3cf0f293101cb8f044b3b1b57e3ecaaaf47365bf
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