<div dir="ltr"><div>you can try setting those variables as channel variables before bridging, then put them into the cdr template...<br><br></div>-giovanni<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 11:00 AM, Ximo Peral <span dir="ltr">&lt;<a href="mailto:ximop_22@hotmail.com" target="_blank">ximop_22@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><span style="color:rgb(34,34,34);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:13px;line-height:16.8999996185303px;background-color:rgb(255,255,255)">I&#39;m testing with another Freeswitch system for sending Fax. Send faxes with &quot;api originate&quot; and it works. But with a bridge does not work...</span><div><br></div><div><div class="hm HOEnZb"><br></div><div><div class="hm HOEnZb"><hr>From: <a href="mailto:ximop_22@hotmail.com" target="_blank">ximop_22@hotmail.com</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Subject: Set Variable in Dial String from Lua Script<br>Date: Wed, 26 Aug 2015 19:20:45 +0200</div><div><div class="h5"><br><br>


<div dir="ltr"><div><p style="border:0px;font-size:15px;clear:both;color:rgb(34,34,34);font-family:&#39;Helvetica Neue&#39;,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:&#39;Helvetica Neue&#39;,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:&#39;Helvetica Neue&#39;,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:&#39;Helvetica Neue&#39;,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:&#39;Helvetica Neue&#39;,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 &quot;gateway&quot; (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:&#39;Helvetica Neue&#39;,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:&#39;Helvetica Neue&#39;,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></div>                                               </div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>Cell : +39-347-2665618<br></div>
</div>