<div dir="ltr">Hi,<div><br></div><div>I have a situation like this:</div><div>I have kamailio with 3 NIC's. I'm sending INVITE to first provider over NIC1. Before sending INVITE I use rtpengine_manage to rewrite sdp body with IP that is on NIC1:</div><div>rtpengine_manage ("replace-origin replace-session-connection direction=intvlan direction=prov1 ICE=remove");<br></div><div><br></div><div>If first provider fails i want to send INVITE for the same call to second provider. But if i use like this:</div><div>rtpengine_manage ("replace-origin replace-session-connection direction=intvlan direction=prov2 ICE=remove");</div><div>or (because ip of prov1 is allready set):</div><div>rtpengine_manage ("replace-origin replace-session-connection direction=prov1 direction=prov2 ICE=remove");</div><div>rtpengine ignores my changes as said in documentation: "<span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">The direction must only be specified in for initial </span><acronym class="acronym" style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">SDP</acronym><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"> offer; answers or subsequent offers can omit this option."</span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">and if I try to set ip like this:</span></div><div>rtpengine_manage ("replace-origin replace-session-connection media-address=X.X.X.X ICE=remove");<span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br></span></div><div>SDP body is doubled: it leaves old values and adds the new one.</div><div><br></div><div>What i'm doing wrong or how can I rewrite SDP for second time? Thanks in advance for answer!</div></div>