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:[EMAIL PROTECTED]>;boundary=bJVARonZbIIuteNTNq6iNU46

The correct way is as follows
=========
Content-Type: multipart/related;type="application/rlmi+xml";start= 
"<1227263305.sip:[EMAIL PROTECTED]>";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:[EMAIL PROTECTED];tag=s+1+1440000+5882a317
From: sip:[EMAIL PROTECTED];tag=10.21683.1227170190.0
CSeq: 1 NOTIFY
Call-ID: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]>;boundary=bJVARonZbIIuteNTNq6iNU46

--bJVARonZbIIuteNTNq6iNU46
Content-Transfer-Encoding: binary
Content-ID: <1227170190.sip:[EMAIL PROTECTED]>
Content-Type: application/rlmi+xml;charset="UTF-8r"

<?xml version="1.0"?>
<list uri="sip:[EMAIL PROTECTED]" xmlns="urn:ietf:params:xml:ns:rlmi" 
version="1" fullState="true">
  <resource uri="sip:[EMAIL PROTECTED]"/>
  <resource uri="sip:[EMAIL PROTECTED]"/>
  <resource uri="sip:[EMAIL PROTECTED]"/>
  <resource uri="sip:[EMAIL PROTECTED]"/>
</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

_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to