Fix get_rdnis typo
authorMark Spencer <markster@digium.com>
Tue, 13 May 2003 00:17:14 +0000 (00:17 +0000)
committerMark Spencer <markster@digium.com>
Tue, 13 May 2003 00:17:14 +0000 (00:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1009 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index cee0326..1786e0a 100755 (executable)
@@ -3058,7 +3058,7 @@ static int get_rdnis(struct sip_pvt *p, struct sip_request *oreq)
        req = oreq;
        if (!req)
                req = &p->initreq;
        req = oreq;
        if (!req)
                req = &p->initreq;
-       strncpy(tmp, get_header(oreq, "Diversion"), sizeof(tmp) - 1);
+       strncpy(tmp, get_header(req, "Diversion"), sizeof(tmp) - 1);
        if (!strlen(tmp))
                return 0;
        c = ditch_braces(tmp);
        if (!strlen(tmp))
                return 0;
        c = ditch_braces(tmp);