[asterisk-commits] file: branch 1.2 r70551 - /branches/1.2/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 20 17:20:17 CDT 2007
Author: file
Date: Wed Jun 20 17:20:16 2007
New Revision: 70551
URL: http://svn.digium.com/view/asterisk?view=rev&rev=70551
Log:
Don't overwrite the configured username setting upon a REGISTER. (issue #8565 reported by jsmith)
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=70551&r1=70550&r2=70551
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Wed Jun 20 17:20:16 2007
@@ -6144,10 +6144,8 @@
memcpy(&p->addr, &pvt->recv, sizeof(p->addr));
}
- if (c) /* Overwrite the default username from config at registration */
+ if (c && ast_strlen_zero(p->username))
ast_copy_string(p->username, c, sizeof(p->username));
- else
- p->username[0] = '\0';
if (p->expire > -1) {
ast_sched_del(sched, p->expire);
More information about the asterisk-commits
mailing list