]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Set the peer name on the dialog to the one configured in sip.conf and NOT the usernam...
authorJoshua Colp <jcolp@digium.com>
Mon, 18 Jun 2007 18:13:03 +0000 (18:13 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 18 Jun 2007 18:13:03 +0000 (18:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69765 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 36e5aab24017d760d129215c16fa5d04dbd7c650..868fe8c8266dc7890f8f37b988cf0adef6293200 100644 (file)
@@ -1893,7 +1893,7 @@ static int create_addr_from_peer(struct sip_pvt *r, struct sip_peer *peer)
                ast_log(LOG_DEBUG, "Setting NAT on VRTP to %d\n", (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
                ast_rtp_setnat(r->vrtp, (ast_test_flag(r, SIP_NAT) & SIP_NAT_ROUTE));
        }
-       ast_copy_string(r->peername, peer->username, sizeof(r->peername));
+       ast_copy_string(r->peername, peer->name, sizeof(r->peername));
        ast_copy_string(r->authname, peer->username, sizeof(r->authname));
        ast_copy_string(r->username, peer->username, sizeof(r->username));
        ast_copy_string(r->peersecret, peer->secret, sizeof(r->peersecret));