<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<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="BodyFragment"><font size="2"><span style="font-size:11pt;"></span></font></div>
</div>
</div>
</body>
</html>