diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-06 18:37:59 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-06 18:37:59 +0000 |
commit | 9baa79d4f165d4c8cef0a6703948894d85356a6b (patch) | |
tree | 0ad95837bc46546b0d80f58469b54911d97fd3ac | |
parent | 5cc2a875e791058c7ff7259a66cfac38b0362a52 (diff) |
Merged revisions 228547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r228547 | file | 2009-11-06 14:32:58 -0400 (Fri, 06 Nov 2009) | 4 lines
Don't overwrite caller ID name on a trunk with the configured fullname when using users.conf
(issue ABE-1989)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228548 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a7141b6e1..6850f833b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -24850,6 +24850,9 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str ast_string_field_set(peer, mwi_from, v->value); } else if (!strcasecmp(v->name, "fullname")) { ast_string_field_set(peer, cid_name, v->value); + } else if (!strcasecmp(v->name, "trunkname")) { + /* This is actually for a trunk, so we don't want to override callerid */ + ast_string_field_set(peer, cid_name, ""); } else if (!strcasecmp(v->name, "cid_number")) { ast_string_field_set(peer, cid_num, v->value); } else if (!strcasecmp(v->name, "context")) { |