Hello,
I am not calling rtpproxy_offer() from branch_route (though perhaps I should be), but rather from a request route called from a failure_route. However, rtpproxy_offer() does get called every time on every branch, and perhaps that is the route of my mistake.
I'll investigate more and see what I can figure out. It seems to me that the aim should be to call rtpproxy_offer() from branch_route and have it work precisely as Juha expects, because I need to have the option of hairpinning media on some branches and not on others.
-- Alex
On 07/14/2014 08:41 AM, Richard Fuchs wrote:
On 07/13/14 21:11, Alex Balashov wrote:
No. But, of course, rtpproxy_offer() is being called on both branches.
I'm not too familiar with the internals of the branching logic, but if you send out the same SDP a second time, you don't need to call _offer() again. If you do want to call it again (say, with different flags), you'd have to undo the changes done by the first call and then call it again. The msg_apply_changes() function may come in useful.
cheers
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev