mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Setup fromuser properly (bug #2802)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4125,6 +4125,7 @@ static int transmit_register(struct sip_registry *r, char *cmd, char *auth, char
|
||||
if (!ast_strlen_zero(r->username)) {
|
||||
strncpy(p->peername, r->username, sizeof(p->peername)-1);
|
||||
strncpy(p->authname, r->username, sizeof(p->authname)-1);
|
||||
strncpy(p->fromuser, r->username, sizeof(p->fromuser)-1);
|
||||
}
|
||||
}
|
||||
if (!ast_strlen_zero(r->username))
|
||||
|
Reference in New Issue
Block a user