diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-07 15:47:39 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-07 15:47:39 +0000 |
commit | eea5c37d1ee35cf46c8062061e3cf4a6d73af964 (patch) | |
tree | 5d7e478fa64fd4d4347a1e5695e33d6d77620999 /channels | |
parent | f526cd4c9ace630213eae19aa7e9a2bf18da705e (diff) |
Fix which one we use initreqprep vs. reqprep (bug #2591, 2596)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3928 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a313e9fc5..071c4a84f 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3863,7 +3863,7 @@ static int transmit_notify_with_mwi(struct sip_pvt *p, int newmsgs, int oldmsgs) char tmp[256]; char tmp2[256]; char clen[20]; - reqprep(&req, p, "NOTIFY", 0, 1); + initreqprep(&req, p, "NOTIFY", NULL); add_header(&req, "Event", "message-summary"); add_header(&req, "Content-Type", notifymime); @@ -3896,7 +3896,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"); |