<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'><div><p style="margin-bottom: 1em; 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="margin-bottom: 1em; 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="margin-bottom: 1em; 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="margin-bottom: 1em; 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></body>
</html>