Setup fromuser properly (bug #2802)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4169 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
f93aab065d
commit
ed93c876b2
|
@ -4055,6 +4055,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