Parse initial request
authorMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 21:52:56 +0000 (21:52 +0000)
committerMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 21:52:56 +0000 (21:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@805 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c3379ab..ecf863a 100755 (executable)
@@ -2563,6 +2563,7 @@ static int transmit_register(struct sip_registry *r, char *cmd, char *auth)
        add_header(&req, "Content-length", "0");
        add_blank_header(&req);
        copy_request(&p->initreq, &req);
        add_header(&req, "Content-length", "0");
        add_blank_header(&req);
        copy_request(&p->initreq, &req);
+       parse(&p->initreq);
        r->regstate=auth?REG_STATE_AUTHSENT:REG_STATE_REGSENT;
        return send_request(p, &req, 1, p->ocseq);
 }
        r->regstate=auth?REG_STATE_AUTHSENT:REG_STATE_REGSENT;
        return send_request(p, &req, 1, p->ocseq);
 }