Fix SIP CallerId
authorMark Spencer <markster@digium.com>
Sun, 30 Mar 2003 18:20:23 +0000 (18:20 +0000)
committerMark Spencer <markster@digium.com>
Sun, 30 Mar 2003 18:20:23 +0000 (18:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@720 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 3117824..7d473c1 100755 (executable)
@@ -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) {