<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">We figured this out looking a previous thread with Ken, just need to set the fs_path on the bridge then we can modify the domain.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Source:</p>
<p style="margin-top:0;margin-bottom:0"><font face="Calibri,sans-serif" size="2" style="color: rgb(33, 33, 33);"><span style="font-size: 11pt;">In FreeSWITCH if you want to send it to a proxy see fs_path… example <action application=”bridge” data=”</span></font><a href="mailto:sofia/profile/someuser@somedom.com;fs_path=the.proxy" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" style="font-family: "Times New Roman", serif; font-size: 16px;" id="LPlnk288819" class="OWAAutoLink" previewremoved="true"><font face="Calibri,sans-serif" size="2"><span style="font-size: 11pt;">sofia/profile/someuser@somedom.com;fs_path=the.proxy</span></font></a><font face="Calibri,sans-serif" size="2" style="color: rgb(33, 33, 33);"><span style="font-size: 11pt;">”/></span></font><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Shaun Stokes<br>
<b>Sent:</b> 21 September 2018 15:56:32<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> How to set invite domain on a sofia bridge?</font>
<div> </div>
</div>
<meta content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0; margin-bottom:0"></p>
<div>Hi All,</div>
<div><br>
</div>
<div>Freeswitch 1.8.1</div>
<div><br>
</div>
<div>Using sofia bridge inside a LUA script trying to set the domain on the INVITE to look like this:</div>
<div>INVITE sip:220@mydomain.com:5060 SIP/2.0</div>
<div><br>
</div>
<div>Instead our invite looks like this:</div>
<div>INVITE sip:220@127.0.0.111:5060 SIP/2.0</div>
<div><br>
</div>
<div>We've tried setting various variables for domain\host, as follows:</div>
<div>domain_name = "mydomain.com";</div>
<div>session:execute("bridge_export","sip_invite_domain="..domain_name);</div>
<div>session:execute("bridge_export","domain_name="..domain_name);</div>
<div>session:execute("bridge_export","sip_from_host="..domain_name);</div>
<div>session:execute("bridge_export","sip_req_host="..domain_name);</div>
<div>session:execute("bridge_export","sip_to_host="..domain_name);</div>
<div>session:execute("bridge_export","sip_contact_host="..domain_name);</div>
<div>session:execute("bridge_export","sip_via_host="..domain_name);</div>
<div>session:execute("bridge", "sofia/internal/sip:"..dialed_extension.."@127.0.0.111:5060^"..dialed_extension.."@"..domain_name");</div>
<div><br>
</div>
<div>Tried putting the above exported variables inside the bridge using {}, like so:</div>
<div>session:execute("bridge", "{sip_invite_domain="..domain_name..",domain_name="..domain_name.."...etc...}sofia/<span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">internal</span>/sip:"..dialed_extension.."@127.0.0.111:5060^"..dialed_extension.."@"..domain_name");</div>
<div><br>
</div>
<div>Tried with-out overriding the To header, like so:</div>
<div>session:execute("bridge", "sofia/local_internal/sip:"..dialed_extension.."@127.0.0.111:5060);</div>
<div><br>
</div>
<div>How do we set the invite domain on a bridge? Hope someone here can help.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Shaun</div>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<div style="color:rgb(0,0,0)">
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt"></span></font></div>
</div>
</div>
</div>
</body>
</html>