Setup fromuser properly (bug #2802)
authorMark Spencer <markster@digium.com>
Sun, 7 Nov 2004 00:19:42 +0000 (00:19 +0000)
committerMark Spencer <markster@digium.com>
Sun, 7 Nov 2004 00:19:42 +0000 (00:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4169 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0e441c6..8cf486a 100755 (executable)
@@ -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))