[Re-devel] notify does not need to have body

Juha Heinanen jh at tutpro.com
Sat Sep 20 18:04:21 CEST 2014


Alfred E. Heggestad writes:

> just a minor comment here:
> 
> - struct sip_msg already contains the parsed content length in the
>    "struct pl clen" field.
> 
> so if you want to check if Content-Length is not present or zero,
> you can do:
> 
>      if (pl_u32(&msg->clen) == 0)

ok, i didn't know that.  below is a new patch to subscriber.c that uses
the above test.  i tried and it worked fine.

-- juha

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: subscriber.c-diff
URL: <http://lists.creytiv.com/pipermail/re-devel/attachments/20140920/0c8a1755/attachment.ksh>
-------------- next part --------------
_______________________________________________
Re-devel mailing list
Re-devel at lists.creytiv.com
http://lists.creytiv.com/mailman/listinfo/re-devel


More information about the Re-devel mailing list