Jeremy A wrote:
> 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 ))
>
>   

The above fix is a bit wrong - my mistake in typing the report. The text
should be

strip_header_params( req.content_type )

rather than

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





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

Reply via email to