Try with latest master or 4.0 branch and let me know if it is ok now.

Btw, to be more clear, the "-1"in sizeof() is removing ending '\0' from the defined buffer.

Thanks,
Daniel

On 3/11/13 9:26 AM, Daniel-Constantin Mierla wrote:
Hello,

that should be ok, I will push a patch soon, it is related to the fact the maxfwd header is added by presence module in this case.

Cheers,
Daniel

On 3/11/13 9:04 AM, Juha Heinanen wrote:
does this make sense in t_msgbuilder.h:

#define MAXFWD_VALUE "70"
#define MAXFWD_HEADER "Max-Forwards: " MAXFWD_VALUE CRLF
#define MAXFWD_HEADER_LEN (sizeof(MAXFWD_HEADER) - 1)

what is that "-1" leaving CR and removing LF from the length?

-- juha

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev



--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
 - http://conference.kamailio.com -


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to