diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d029eaf98e..0c5add6c83 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23692,6 +23692,9 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str ast_string_field_set(peer, cid_num, cid_num); } 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")) {