Hi,

Working with 1.1.1 I have observed that the header "Content-Type" in an
AmSipRequest is not available when accessing it by

getHeader ( req.hdrs,  "Content-Type" )

That call returns an empty string

It is however available in req.content_type

I imagine it has been removed from req.hdrs during initial parsing and
assignment - perhaps for efficiency?

This will result in failure in

apps/announce_transfer/AnnounceTransfer.cpp:      if
((strip_header_params(getHeader(req.hdrs,"Content-Type"))

Which should now be

apps/announce_transfer/AnnounceTransfer.cpp:      if
((strip_header_params(getHeader( req.content_type ))

There are a few other locations where the Content-Type header is
accessed that may (?)  have similar problems.

core/AmSession.cpp:     (strip_header_params(getHeader(req.hdrs,
"Content-Type"))
core/AmB2BSession.cpp:    //string content_type =
getHeader(reply.hdrs,"Content-Type");
core/AmB2BSession.cpp:    content_type =
getHeader(callee_reply.hdrs,"Content-Type", "c");
core/plug-in/unixsockctrl/UnixSocketAdapter.cpp:  reply.content_type =
getHeader(reply.hdrs,"Content-Type");

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to