<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi,</div><div><br></div><div>If I'm not wrong, i can see two way of doing it:</div><div><br></div><div>1. You can define your leg variable in [] (not {}).</div><div>Eg:</div><div>Sofia/gateway1|[var=2]sofia/gateway2</div><div><br></div><div>2. </div><div><action application="set" data="continue_on_fail=true"/></div><div><action application="bridge" data="sofia/gateway1"/></div><div><span style="background-color: rgba(255, 255, 255, 0);"><action application="set" data="var=2"/></span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><action application="bridge" data="sofia/gateway2"/></span></div><div><br></div><div><br></div><div>Srigo<br><div>Sent from my iPhone</div></div><div><br>On 1 Nov 2017, at 01:12, Gregor Nanger <<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Hi, need some advice.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Is it possible to set variable on failover scenario?</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">I have failover in bridge /gateway1|/gateway2, but would like to set variable on a leg when failover occurs. Something like:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">/gateway1/|{myvariable=2}/gateway2</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Is this possible?</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Thank you, Gregor</div></div>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span></div></blockquote></body></html>