[sr-dev] presence notify packet garbage with latest 4.0

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 11 09:45:28 CET 2013


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
>> sr-dev at lists.sip-router.org
>> 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 -




More information about the sr-dev mailing list