]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: set callerid_tag to empty string
authorAlexei Gradinari <alex2grad@gmail.com>
Fri, 12 Oct 2018 17:14:03 +0000 (13:14 -0400)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 12 Oct 2018 19:05:15 +0000 (14:05 -0500)
commit6b1a981ee15bc9afe302989110082400e322859d
treeea1bf2910685fdd41eee03ec8f440916b3d2e49f
parentc4b979a84172cf14d0c00a24906b8639fd798327
res_pjsip: set callerid_tag to empty string

This patch sets the callerid_tag to empty string by default.

If the callerid_tag is set to NULL then the tag does not
become part of a connected line update.
For example:
Alice's tag is "Alice".
Bob's tag is empty.
Charlie's tag is "Charlie".
Alice calls Bob and then does attended transfer to Charlie.
When Alice hangs up the CONNECTEDLINE(tag) is "Alice"
on the interception routine on the Charlie's channel, but should be empty.

Ths patch also fix memory leaks if there are more then one options
"callerid", "callerid_tag", "voicemail_extension" and "contact_user"
in the pjsip.conf endpoint definition.

Change-Id: I86ba455c4677ca8d516d9a04ce7fb4d24dd576e4
res/res_pjsip/pjsip_configuration.c