Fix which one we use initreqprep vs. reqprep (bug #2591, 2596)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-10-07 21:47:46 +00:00
parent f9be91101f
commit b0180d6665

View File

@@ -3970,7 +3970,7 @@ static int transmit_notify_with_sipfrag(struct sip_pvt *p, int cseq)
struct sip_request req;
char tmp[256];
char clen[20];
initreqprep(&req, p, "NOTIFY", NULL);
reqprep(&req, p, "NOTIFY", 0, 1);
snprintf(tmp, sizeof(tmp), "refer;id=%d", cseq);
add_header(&req, "Event", tmp);
add_header(&req, "Subscription-state", "terminated;reason=noresource");