<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">They are different calls to different destinations?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 6, 2015, at 2:40 PM, David Villasmil Govea &lt;<a href="mailto:david.villasmil@gmail.com" class="">david.villasmil@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Yes, why are sessions different? Because they are different scripts?? Do I need to keep everything in one script? <br class="">
</p>
<div class="gmail_quote">On Jan 5, 2015 7:26 PM, "Michael Jerris" &lt;<a href="mailto:mike@jerris.com" class="">mike@jerris.com</a>&gt; wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">sounds like the second time its executing on a different session<div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 4, 2015, at 9:01 PM, David Villasmil Govea &lt;<a href="mailto:david.villasmil@gmail.com" target="_blank" class="">david.villasmil@gmail.com</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Hello guys,<div class=""><br class=""></div><div class="">Any help with this?</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">David</div></div><div class="gmail_extra" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class=""><div class="gmail_quote">On Sun, Jan 4, 2015 at 7:12 AM, David Villasmil Govea<span class="">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:david.villasmil@gmail.com" target="_blank" class="">david.villasmil@gmail.com</a>&gt;</span><span class="">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class="">Update:<div class=""><br class=""></div><div class="">I execute 2 scripts.</div><div class=""><br class=""></div><div class="">I set an execute_on_answer lua script (lua2), and execute another (lua1).</div><div class="">like so:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">        </span>&lt;extension name="wholesale" continue="true"&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                </span>&lt;condition field="destination_number" expression="^1.*$"&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                        </span>&lt;action application="info"/&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                        </span>&lt;action application="set" data="hangup_after_bridge=false"/&gt;<br class=""></font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                        </span>&lt;action application="set" data="execute_on_answer=lua lua2"/&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                        </span>&lt;action application="log" data="INFO EXECUTING SCRIPT NOW"/&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                        </span>&lt;action application="lua" data="lua1"/&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                        </span>&lt;action application="hangup" data="NORMAL_CLEARING"/&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                </span>&lt;/condition&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">        </span>&lt;/extension&gt;</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Now, the lua1 executes, i set a variable "custom_dur" which is the duration for the call.</div><div class="">When lua3 executes on answer, the variable custom_duration is still there, no problems. Then I transfer the call to "9999", which is:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">        </span>&lt;extension name="9999"&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                </span>&lt;condition field="destination_number" expression="^9999$"&gt;</font></div><div class=""><span style="font-family:monospace,monospace;font-size:x-small;white-space:pre-wrap" class="">                        </span><span style="font-family:monospace,monospace;font-size:x-small" class="">&lt;action application="lua" data="lua3"/&gt;</span><br class=""></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                        </span>&lt;action application="hangup" data="NORMAL_CLEARING"/&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">                </span>&lt;/condition&gt;</font></div><div class=""><font face="monospace, monospace" size="1" class=""><span style="white-space:pre-wrap" class="">        </span>&lt;/extension&gt;</font></div></div><div class=""><br class=""></div><div class="">Now, on lua3 I try to get the variable and it's not there anymore!</div><div class=""><br class=""></div><div class="">I also tried the following: On lua1 I create a new variable, which is seen on ALL scripts, including lua3, but I reset it to a new value on lua2, and on lua3 I don't see the change!! The variable is still the value I set on lua1!!! wth??</div><div class=""><br class=""></div><div class="">Am I missing something on variables??</div><div class="">On Sun, Jan 4, 2015 at 3:30 AM, David Villasmil Govea&nbsp;<span dir="ltr" class="">&lt;<a href="mailto:david.villasmil@gmail.com" target="_blank" class="">david.villasmil@gmail.com</a>&gt;</span>&nbsp;wrote:</div></div><div class=""><div class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class="">Hello Guys,<div class=""><br class=""></div><div class="">I have this lus script, which sets a custom variable, this is ok.</div><div class="">The the call is transferred to another extension, and the variable is not there anymore, is this by design?</div></div></blockquote></div></div></div></div></blockquote></div></div></div></blockquote></div><br class=""></div></div><br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>