What are the log lines leading up to the &quot;executed last dialplan instruction&quot;?<div>-MC<br><br><div class="gmail_quote">On Tue, Jan 25, 2011 at 7:45 AM, Helmut Kuper <span dir="ltr">&lt;<a href="mailto:helmut.kuper@ewetel.de">helmut.kuper@ewetel.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hello,<br>
<br>
I try to intercept a call in lua script. For the intercepting extension<br>
I do this:<br>
<br>
<br>
if (dialed_ext:len()==6 and dialed_ext:sub(1,2) == &quot;**&quot;) then<br>
        uuid=api:execute(&quot;hash&quot;, &quot;select/last_caller/&quot;..dialed_ext:sub(3))<br>
        if (uuid and uuid:len()&gt; 2) then<br>
                session:setAutoHangup(false)<br>
                session:execute(&quot;intercept&quot;, uuid)<br>
                return<br>
        end<br>
end<br>
<br>
<br>
This results to a hangup of the intercepting extension while intercepted<br>
extension hangs up (completed_elsewhere) and caller/originator&#39;s call is<br>
connected.<br>
<br>
FS logs shows this for the intercepting extension:<br>
<br>
switch_core_state_machine.c:189 sofia/internal_et/8000@spklw.x has<br>
executed the last dialplan instruction, hanging up.<br>
<br>
<br>
When I use the ACTIONS table like this:<br>
<br>
if (dialed_ext:len()==6 and dialed_ext:sub(1,2) == &quot;**&quot;) then<br>
        uuid=api:execute(&quot;hash&quot;, &quot;select/last_caller/&quot;..dialed_ext:sub(3))<br>
        if (uuid and uuid:len()&gt; 2) then<br>
                session:setAutoHangup(false)<br>
                table.insert(ACTIONS, {&quot;intercept&quot;, uuid})<br>
                return<br>
        end<br>
end<br>
<br>
<br>
then intercept/pickup works fine. Is there a trick to get it work with<br>
&quot;session:execute(&quot;intercept&quot;, uuid)&quot; ?<br>
<br>
regards<br>
helmut<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (MingW32)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAk0+8DYACgkQ4tZeNddg3dyKwACeKR4lsxUv3G26pdNp8GGsbWNg<br>
/OIAn2EIl2Vq+qibtodGd9vjjLfqKv8s<br>
=2fTE<br>
-----END PGP SIGNATURE-----<br>
<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>
</blockquote></div><br></div>