[Devel] Mediaproxy / function fix_contact

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jan 4 18:07:10 CET 2007


Hi Jean-Luc,

I haven't look into this functions, but all the changes on a SIP message 
are done via lumps - you add a lump saying where and what you want to 
change. The lumps are kept in the sip_msg structure and freed along with it.

regards,
bogdan

Behr Jean-Luc wrote:

>Hi,
>
>In function fix_contact of module mediaproxy the IP:Port is replaced in the Contact field of the SIP message.
>This is done by replacing the pointer "uri.s" of the parsed structure in the message.
>The replacement is done thanks to an allocated memory (pkg_malloc).
>Usually "uri.s" points inside the message itself.
>I don't understand where this memory is freed.
>Any idea ?
>
>Thanks,
>Jean-Luc
>
>
>_______________________________________________
>Devel mailing list
>Devel at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/devel
>
>  
>




More information about the Devel mailing list