Fix SIP CallerId

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@720 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-03-30 18:20:23 +00:00
parent 503f3be1d2
commit 0e170f8f81
1 changed files with 1 additions and 1 deletions

View File

@ -2042,7 +2042,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, char *cmd, c
l = callerid;
}
if (!n)
n = callerid;
n = l;
snprintf(from, sizeof(from), "\"%s\" <sip:%s@%s>;tag=%08x", n, l, inet_ntoa(p->ourip), p->tag);
if (strlen(p->username)) {
if (ntohs(p->sa.sin_port) != DEFAULT_SIP_PORT) {