Hi Francisco, just debugging it is not relevant, as the content-len is updated just before sending out the message (building the outgoing buffer - so whatever debug/log stuff you use, you will not see the change.
Just look on the network, at the outbound request ..... regards, bogdan Francisco Seratti wrote: > Hello Bagdan, > I have debugged before and after adding data to the > body and the Content-Length doesnt changes. Actually > im using del_lump() and insert_new_lump_after() > functions. What can i be doing wrong? > > Thanks > > --- Bogdan-Andrei Iancu <[EMAIL PROTECTED]> > escribió: > > >> Hi Francisco, >> >> If you added a body lump, than the content-length >> header is >> automatically updated by openser when sending out >> the message. You do >> not need to do anything special. >> >> Regards, >> Bogdan >> >> Francisco Seratti wrote: >> >>> Hello, I have added some gtd info to the body of >>> >> some >> >>> SIP messages using data lumps, and now i have to >>> re-calculate Content-Length header. Ive tried with >>> strlen(get_body(struct sip_msg *)) but no changes >>> >> are >> >>> present after modifies. How should i calc this >>> >> header >> >>> value? >>> Thanks a lot! >>> >>> Francisco >>> >>> >>> Yahoo! Encuentros. >>> >>> Ahora encontrar pareja es mucho más fácil, probá >>> >> el nuevo Yahoo! Encuentros >> >> > http://yahoo.cupidovirtual.com/servlet/NewRegistration > >>> _______________________________________________ >>> Devel mailing list >>> [email protected] >>> >>> > http://lists.openser.org/cgi-bin/mailman/listinfo/devel > >>> >>> >> > > > > Yahoo! Encuentros. > > Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros > http://yahoo.cupidovirtual.com/servlet/NewRegistration > > _______________________________________________ Devel mailing list [email protected] http://lists.openser.org/cgi-bin/mailman/listinfo/devel
