[Serdev] modify body

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Jun 22 16:52:00 UTC 2005


On Jun 22, 2005 at 15:01, Pedro Braga <pbraga at av.it.pt> wrote:
> Hello all,
> 
> A simple and quick answer question: "is there a way of changing the SIP 
> Body"
> 
> 
> I have a new SDP string (say... "str new_sdp;") and want to change the 
> original SDP body.
> I know there is a "get_body" to get the poiter to body's start.
> 
> Do I have to, or Can I use lump to switch body? I must change 
> "Content-Length" too.
> Is there another better way of setting a new body? a SER way?

No, there isn't. Use get_body to find the body start, add a delete lump
to remove it and a new  lump with the new body.


Andrei




More information about the Serdev mailing list