Should someone want to know the answers I found, here they are.<br><br>I had two ideas about how to forward SDP ICE-related headers from FS to leg-B.<br><div><i>1. Redirect a directly to b. But to accomplish this I've to know
b's IP, that it was registered with, which is being stored in
sip_registrations db. Can I obtain it with db app in dialplan and
substitute as a parameter to deflect app?<br></i>This is<i> </i>rather simple - just call "defend" app from dialplan with ${destination_number} parameter. Actually, FS answers with a bit awkward address in Refer-to header, containing <profile_name><destination>@<domain>, so one would have to parse recieved address manually, to use a correct sip uri. Did I make something wrong?..<br>
<i><br></i></div>
<div><i>2. Force FS to copy remote SDP headers, or at least a part of them, to it's local SDP.</i><br>This is even more simple - just set inbound_bypass_media to true in sofia profile settings, and FS will leave all of the SDP headers intact. But, you have to remember, that media traffic for this profile will bypass FS, as parameter's name implies. Therefore FS will not be able to manipulate media data in anyway.<br>
</div>
<div><br></div>Best regards, <br>RobertT.<br>