]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 31178249e7cb87219b9c4858b68b7935a976d1c1..7d473c128fab97416e5d9812b1273f1d2fdef6f7 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) {