Hi,<div>I&#39;m facing same situation. I read the Lua transfer page: 
<a href="http://wiki.freeswitch.org/wiki/Mod_lua#session:transfer">http://wiki.freeswitch.org/wiki/Mod_lua#session:transfer</a>  which states that  I need to set AutoHangup to false. I did that too but my transfer command still fails :(</div>
<div><br></div><div>I&#39;ve to do looping between a list of numbers and each number could have different XML script to be run.So as soon as I parse CSV I find out the XML context on which to transfer the call and do a transfer, but it fails immediately.</div>
<div><br></div><div>Hope to hear from you soon.</div><div>Regards,</div><div>Sammy</div><div><br><br><div class="gmail_quote">On Sat, Oct 22, 2011 at 3:35 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Don&#39;t forget that in a Lua dp script the script must &quot;end&quot; before the transfer takes place. Make sure that there isn&#39;t a logic loop or something in your code preventing it from ending. If you pastebin your script we&#39;ll take a look.<div>

-MC<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Oct 20, 2011 at 2:27 PM, Anestis Mavro <span dir="ltr">&lt;<a href="mailto:devel@omninet.eu" target="_blank">devel@omninet.eu</a>&gt;</span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">











<div lang="EL" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">Hi,<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">I have tried two different ways of transfer in LUA:<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">session:transfer(number,”XML”,”default”)<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">And <u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">Session:execute(“transfer”,”12345
XML default”)<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">And I can’t make it working.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">I get “switch_cpp.cpp:797 transfer result: 0”<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">The same transfer from within the dialplan works fine<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">The call is not answered before the transfer.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">Does anybody have an idea?<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">Thanks<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">Anestis<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

</div>

 <br><br>__________ Information from ESET NOD32 Antivirus, version of virus signature database 5054 (20100423) __________<br><br>The message was checked by ESET NOD32 Antivirus.<br><br><a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>

 </div>


<br><br></div></div>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<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>