[asterisk-commits] file: branch 1.2 r69765 - /branches/1.2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 18 13:13:04 CDT 2007


Author: file
Date: Mon Jun 18 13:13:03 2007
New Revision: 69765

URL: http://svn.digium.com/view/asterisk?view=rev&rev=69765
Log:
Set the peer name on the dialog to the one configured in sip.conf and NOT the username to be used for authentication attempts. (issue #9967 reported by achauvin)

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?view=diff&rev=69765&r1=69764&r2=69765
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Mon Jun 18 13:13:03 2007
@@ -1893,7 +1893,7 @@
 		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));




More information about the asterisk-commits mailing list