Hello, 

i try to get content from Invite request but it gives boundary error. it is not multipart or mixed content but it checks boundary and gives error.


Thanks.


My message
INVITE

Content-Type: application/resource-lists+xml

       <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
        <list>
         <entry uri="100?Call-ID=$calli&amp;From=$fromtag&amp;To=$toTag&amp;Session-ID=1"/>
         <entry uri="103?Call-ID=$calli2&amp;From=$fromtag2&amp;To=$toTag2&amp;Session-ID=2"/>
        </list>
       </resource-lists>





static int ki_get_body_part_helper(sip_msg_t* msg, str* ctype, pv_spec_t *dst,
                int mode)
{

...
if(get_boundary(msg, &boundary)!=0) {
                LM_ERR("Cannot get boundary. Is body multipart?\n");
                return -1;
        }
....

int get_boundary(struct sip_msg* msg, str* boundary)


 params.s = memchr(msg->content_type->body.s, ';',msg->content_type->body.len);
if (params.s == NULL)
{
LM_INFO("Content-Type hdr has no params <%.*s>\n",
msg->content_type->body.len, msg->content_type->body.s);
return -1;
}