[Kamailio-Devel] content length

Alex Hermann alex at speakup.nl
Mon Mar 30 19:11:34 CEST 2009


On Monday 30 March 2009 15:06:05 Daniel-Constantin Mierla wrote:
> the data lumps system is critically affected if content-length is wrong
> for UDP. The anchor_lump() calls abort() in the case content-length is
> higher than actually body length. This can be prevented by called sanity
> module to check the content length, however, I consider being too
> drastic to have abort in such case, it would be better to return an
> error and let the sip router process other messages. Opinions?
>
> Checking sip-router sources, it faces same issue.
>
> Another option would be to correct the C-L value locally, but the right
> one is that phone vendor fixes its side.

The proxy could also jump to error_route when it find such an error. The admin 
can then decide what to do with the message.

-- 
Alex Hermann




More information about the Devel mailing list