[OpenSIPS-Devel] [ opensips-Bugs-2320539 ] Inserting Content-Type Header Wrongly
SourceForge.net
noreply at sourceforge.net
Fri Nov 21 16:14:04 CET 2008
Bugs item #2320539, was opened at 2008-11-21 14:31
Message generated for change (Comment added) made by anca_vamanu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2320539&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.4.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Inserting Content-Type Header Wrongly
Initial Comment:
Inserting Content-Type header wrongly as per syntax.
Content-Type: "multipart/related;type="application/rlmi+xml";start= <1227170190.sip:s3-1 at 192.168.166.150.100461836>;boundary=bJVARonZbIIuteNTNq6iNU46
The correct way is as follows
=========
Content-Type: multipart/related;type="application/rlmi+xml";start= "<1227263305.sip:s3-1 at 192.168.166.150.1633791553>";boundary=dXAwGlXKOFXQ6rSATAbvSdga
========
code to change
==============
/* old code: str_hdr->len+= sprintf(str_hdr->s+str_hdr->len,
"Content-Type: \"multipart/related;type=\"application/rlmi+xml\"");
str_hdr->len+= sprintf(str_hdr->s+str_hdr->len,
";start= <%s>;boundary=%s\r\n", start_cid, boundary_string);*/
new changes:
str_hdr->len+= sprintf(str_hdr->s+str_hdr->len,
"Content-Type: multipart/related;type=\"application/rlmi+xml\"");
str_hdr->len+= sprintf(str_hdr->s+str_hdr->len,
";start= \"<%s>\";boundary=%s\r\n", start_cid, boundary_string);
Sample Msg:
===========
NOTIFY sip:192.168.166.150:50604 SIP/2.0
Via: SIP/2.0/UDP 10.6.2.246:4343;branch=z9hG4bK993d.15a823c3.0
To: sip:s3-1 at 192.168.166.150;tag=s+1+1440000+5882a317
From: sip:s3-1 at 192.168.166.150;tag=10.21683.1227170190.0
CSeq: 1 NOTIFY
Call-ID: DD18E458 at s
Content-Length: 524
User-Agent: OpenSIPS (1.4.2-notls (i386/linux))
Max-Forwards: 70
Event: presence
Contact: <sip:10.6.2.246:4343;transport=udp>
Subscription-State: active;expires=360
Require: eventlist
Content-Type: "multipart/related;type="application/rlmi+xml";start= <1227170190.sip:s3-1 at 192.168.166.150.100461836>;boundary=bJVARonZbIIuteNTNq6iNU46
--bJVARonZbIIuteNTNq6iNU46
Content-Transfer-Encoding: binary
Content-ID: <1227170190.sip:s3-1 at 192.168.166.150.100461836>
Content-Type: application/rlmi+xml;charset="UTF-8r"
<?xml version="1.0"?>
<list uri="sip:s3-1 at 192.168.166.150" xmlns="urn:ietf:params:xml:ns:rlmi" version="1" fullState="true">
<resource uri="sip:c3-1 at 192.168.166.150"/>
<resource uri="sip:c3-2 at 192.168.166.150"/>
<resource uri="sip:c3-3 at 192.168.166.150"/>
<resource uri="sip:c3-4 at 192.168.166.150"/>
</list>
----------------------------------------------------------------------
>Comment By: Anca Vamanu (anca_vamanu)
Date: 2008-11-21 17:14
Message:
Hi,
This is already fixed in svn branch 1.4.x. As I already mentioned in the
other bug report, I advise you to take this module from there.
Thanks and regards,
Anca
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2320539&group_id=232389
More information about the Devel
mailing list