<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Ah, so exported variables are inherited
- didn't know (or guess) that!<br>
Thanks.<br>
</div>
<blockquote
cite="mid:8956A328-611D-4C1E-8CF6-499B8A2B22CD@freeswitch.org"
type="cite">
<pre wrap="">Don’t export no local the variable, set that in the {} for the B-Leg. Then the C-Leg won’t inherit the variable from the export no local.
--
Brian West
<a class="moz-txt-link-abbreviated" href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
<a class="moz-txt-link-freetext" href="http://www.freeswitchbook.com">http://www.freeswitchbook.com</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchcookbook.com">http://www.freeswitchcookbook.com</a>
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
<a class="moz-txt-link-freetext" href="Skype:briankwest">Skype:briankwest</a>
PGP Key: <a class="moz-txt-link-freetext" href="http://www.bkw.org/key.txt">http://www.bkw.org/key.txt</a> (AB93356707C76CED)
On Feb 7, 2014, at 4:00 AM, Alex Lake <a class="moz-txt-link-rfc2396E" href="mailto:alex@digitalmail.com"><alex@digitalmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">FreeSWITCH Version 1.2.10
Got a call where the A-Leg triggers a bridge to a B-Leg where I want to
have certain things happen on ring/answer.
So I based my dial plan on the example code
<action application="export" data="nolocal:execute_on_answer=lua incrInUse.lua ${uuid}"/>
Although mine is in Lua
session:execute("export","nolocal:execute_on_ring=lua cc_tell.lua ring
"..CCNumIPN.." "..getSessVar("uuid"))
And it works fine. However, it APPEARS that I have a problem when the
B-Leg initiates a C-Leg, that the execute_on_xxx seems to be executed by
the C-Leg too - not what I want!
I think there are ways around this (i.e. put some more intelligence into
the lua code) but I can't help thinking that I've misunderstood
something about export and/or the execute_on_ family.
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">-----
No virus found in this message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
Version: 2014.0.4259 / Virus Database: 3684/7068 - Release Date: 02/06/14
</pre>
</blockquote>
<br>
</body>
</html>