Thomas,<div><br></div><div>I suspect there is a problem elsewhere in your dialplan. Can you pastebin the whole extension and also a debug log of a call flowing through this extension? I have a feeling that will help us figure out what is going on. Please use <a href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a> and &quot;FreeSWITCH Log&quot; for syntax highlighting.</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Sun, Nov 6, 2011 at 3:51 PM, Thomas Hoellriegel <span dir="ltr">&lt;<a href="mailto:admin@blindi.net">admin@blindi.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Sammy,<br>
I become no output true or false.<br>
My Script is now:<div class="im"><br>
function file_exists(fname)<br>
local f = io.open(fname, &quot;r&quot;)<br>
if (f and f:read()) then return true end<br>
end<br>
if ( session:ready() ) then<br>
session:answer( );<br></div>
datei = session:getVariable(&quot;call_<u></u>screen_filename&quot;);<br>
if (file_exists(datei..extension.<u></u>**.&quot;.wav&quot;)) then<br>
session:setVariable(&quot;fileex&quot;, &quot;true&quot;);<br>
session:setVariable(fileex, true)<br>
returns true;<br>
else<br>
session:setVariable(&quot;fileex&quot;, &quot;false&quot;);<br>
returns false;<br>
end<br>
end<br>
<br>
The variable fileex is emty.<br>
The variable:<br>
call_screen_filename<br>
will not be changed after to execute these script.<br>
<br>
I like to setup a callscreening.<br>
if the name exists, transfer to the given extension.<br>
If the name don.t exists, start the recording and transwer the call.<br>
<br>
Thanks.<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
---------------<br>
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:<br>
<a href="http://www.blindi.net/callback" target="_blank">http://www.blindi.net/callback</a><br>
homepage: <a href="http://www.blindi.net" target="_blank">http://www.blindi.net</a><br>
blinde-misc mailingliste für blinde. anmeldung unter:<br>
<a href="http://www.blindi.net/mailman/listinfo/blinde-misc" target="_blank">http://www.blindi.net/mailman/<u></u>listinfo/blinde-misc</a><br>
</div></div><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>