This is a copy of an original commit from your nasty twin's Git repository. It allows rtpproxy_offer/rtpproxy_answer to accept variables.
I'm using a generic functions - fixup_spve_null, fixup_spve_spve, so please review it. I suppose that no additional fixup_free function is required here, right?
Proposed patch.
Hi Peter,
Thanks for the patch - I had to do some changes as there was an error in your patch ; fixup_get_svalue() returns a STR value, while the params for force_rtp_proxy() are CHAR* . Simply doing str->s is not enough as that string is not null terminated. I made a fix on that, so please test my code and let me know if all cases do work as expected.
Regards,
Bogdan