<div dir="ltr">thanks..it works<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 June 2014 10:06, Peter Olsson <span dir="ltr"><<a href="mailto:peter@olssononline.se" target="_blank">peter@olssononline.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The variable varname has not been set prior to the consoleLog call.<br><br>torsdag 26 juni 2014 skrev Aqs Younas <<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>>:<div class="HOEnZb">
<div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Everytime i rum this code..<br> <br><div><div><div>while (session.ready() == True):<br> session.answer()<br> number=session.getVariable("caller_id_number");<br> session.setVariable("varname", "hammer");<br>
consoleLog("info",varname)<br><br></div><div>i get this error.<br><br>"Message: global name 'varname' is not defined<br>Exception: None"<br><br></div><div>Don't where i am doing something wrong<br>
<br></div><div>Any help would be much appreciated.<br><br></div><div>Thanks<br></div></div></div></div>
</blockquote>
</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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>