[reSIProcate] IntergerCategory

Ryan Kereliuk ryker at ryker.org
Thu Jul 5 08:57:48 CDT 2007


Max-Forwards is a little bit different from Content-Length.
Content-Length is computed from the size the body attached to your
SipMessage.  Since you didn't add a body, it's computed to be 0.

Thanks,
-Ryan

On 2007-07-05 at 01h12, Tuan Viet Nguyen wrote:
> Thanks for your answer Byron. I did as you said
> 
> SipMessage *msg;
> msg->header(h_ContentLength).value() = 100;
> 
> I verified the value of mValue in the Content-Length field, it was 100. But when I convert this SipMessage to char* using the following method and print the result, I have always "Content-Length: 0" in the SIP header
> 
> Data data = Data::from(*msg);
> const char* result = data.c_str();
> 
> Do you have any ideas?



More information about the resiprocate-devel mailing list