Hi<div><br /></div><div>Is this compatible with gateway and distributor? We have pool of "proxies" (gws) to terminate to.</div><div>Also can we set from-domain per gw config?<br /><br />-- <br />Wbr, Serge via mobile<br /><br />21.09.2018, 21:41, "Shaun Stokes" <shaun.stokes@itec-support.co.uk>:<br /><blockquote type="cite">




<div dir="ltr">
<div id="divtagdefaultwrappere76c1a16b30fd17657df2a5b8511e54a" 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="LPlnk288819f43148b38815aeec304b05d7859226ff" 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="divRplyFwdMsg143d95406757383ab92f9b574181a7d8" 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>


<div dir="ltr">
<div id="x_divtagdefaultwrapper22cdce10a4a6df8d32fbf1a11e14551a" 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:<a href="mailto:220@mydomain.com">220@mydomain.com</a>:5060 SIP/2.0</div>
<div><br />
</div>
<div>Instead our invite looks like this:</div>
<div>INVITE sip:<a href="mailto:220@127.0.0.111">220@127.0.0.111</a>: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><font size="2"><span style="font-size:11pt;"></span></font></div>
</div>
</div>
</div>
</div>

<br /><p>_________________________________________________________________________<br />Professional FreeSWITCH Services<br /><a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br /><a href="https://freeswitch.com">https://freeswitch.com</a><br /><br />Official FreeSWITCH Sites<br /><a href="https://freeswitch.com/oss">https://freeswitch.com/oss</a><br /><a href="https://freeswitch.org/confluence">https://freeswitch.org/confluence</a><br /><a href="https://cluecon.com">https://cluecon.com</a><br /><br />FreeSWITCH-users mailing list<br /><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br /><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br />UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /><a href="https://freeswitch.com">https://freeswitch.com</a><br /></p></blockquote></div>