<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 16.8999996185303px; background-color: rgb(255, 255, 255);">I'm testing with another Freeswitch system for sending Fax. Send faxes with "api originate" and it works. But with a bridge does not work...</span><div><br></div><div><br><div><hr id="stopSpelling">From: ximop_22@hotmail.com<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Set Variable in Dial String from Lua Script<br>Date: Wed, 26 Aug 2015 19:20:45 +0200<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr"><div><p style="border:0px;font-size:15px;clear:both;color:rgb(34, 34, 34);font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;line-height:19.5px;background-color:rgb(255, 255, 255);">I am using a lua script in Freeswitch.</p><p style="border:0px;font-size:15px;clear:both;color:rgb(34, 34, 34);font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;line-height:19.5px;background-color:rgb(255, 255, 255);">The routes are generated from SQL queries. And there may be several trunks output.</p><p style="border:0px;font-size:15px;clear:both;color:rgb(34, 34, 34);font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;line-height:19.5px;background-color:rgb(255, 255, 255);">For that I use bridge failover:</p><p style="border:0px;font-size:15px;clear:both;color:rgb(34, 34, 34);font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;line-height:19.5px;background-color:rgb(255, 255, 255);"><br></p></div><i>bridge({ignore_early_media=false}[nobal_amt=-250,execute_on_post_originate=limit hash outbound NameTrunk 500 !NORMAL_TEMPORARY_FAILURE,gateway=4]sofia/gateway/NameTrunk/xxxxxxxxxxxxx|[nobal_amt=-250,execute_on_post_originate=limit hash outbound NameTrunk2 500 !NORMAL_TEMPORARY_FAILURE,gateway=5]sofia/gateway/NameTrunk2/xxxxxxxxxxxxx)</i><div><i><br></i></div><div><span style="color:rgb(34, 34, 34);font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;background-color:rgb(255, 255, 255);">The problem are the channels variable in dial strings, these are not stored in the XML CDR or CDR CSV and do not know the variable "gateway" (gateway=4 or gateway=5). It is very important that I can save channels variables that are in dial strings.</span></div><div><span style="color:rgb(34, 34, 34);font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;background-color:rgb(255, 255, 255);"><br></span></div><div><span style="color:rgb(34, 34, 34);font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:15px;line-height:19.5px;background-color:rgb(255, 255, 255);">Any ideas? Thanks!</span></div>                                               </div></div></div>                                               </div></body>
</html>