Hi,<div>Could you please advice if this callback scenario can be achieved?</div><div><br></div><div> Freeswitch calls one number via external provider.</div><div> After it answered, it gets the digits and dials another number via external provider.</div>
<div> After second phone is answered, it bridge both sessions.</div><div><br></div><div> Is it possible that from this moment media will flow directly from one sip phone to another, bypassing freeswitch?</div><div> And if yes, which command (in Lua preferably)?</div>
<div><br></div><div><br></div><div><br></div><div>I tried to use the following code after getting the digits from first phone:</div><div><br></div><div>...</div><div><div>calling_session:setVariable("bypass_media", "true");</div>
<div>called_session = freeswitch.Session(some_called_string, calling_session);</div></div><div>...</div><div><br></div><div><br></div><div>But as per log, the INVITE to the second phone contains FreeSWITCH's IP address in SDP section, and not first phone's IP address.</div>
<div>Looks like bypass_media is not working as I would expect in this case.</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Vitalie</div>