<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    Just an update...  it work!! :) Thanks for the tip.<br>
    <br>
    <br>
    If it help others, my solution was:<br>
    <br>
    Dialplan action:<br>
    &lt;action application="lua" data="intercept.lua
    ${hash(select/last_uuid/".${val1}.")}"/&gt;<br>
    <br>
    Lua script:<br>
    <br>
    intercept_uuid = argv[1] or nil<br>
    if (intercept_uuid == nil) then<br>
        cm.error("Missing uuid to intercept")<br>
        return<br>
    end<br>
    <br>
    fifo_bridge_uuid = api:execute("uuid_getvar", intercept_uuid .. "
    fifo_bridge_uuid") or "_undef_"<br>
    fifo_status = api:execute("uuid_getvar", intercept_uuid .. "
    fifo_status") or "_undef_" -- TALKING when the call is answered <br>
    <br>
    if (fifo_bridge_uuid ~= "_undef_" and fifo_status == "_undef_") then<br>
        myuuid = session:get_uuid()<br>
        -- fifo intercept / bridge uuids (caller / extension trying to
    intercep)<br>
        api:execute("uuid_bridge", myuuid .. " " .. fifo_bridge_uuid)<br>
    else<br>
        -- normal intercept<br>
        session:execute("intercept", "-bleg " .. intercept_uuid)<br>
    end<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/13/2016 09:24 PM, Antonio Silva
      wrote:<br>
    </div>
    <blockquote cite="mid:5696B274.5080909@wirelessmundi.com"
      type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      I'm my setup i have analog phones (using atas) and IP phones, to
      be able to have call waiting in the analog phones i put a fifo for
      each account connected to the ata. So a call going to an ata
      extension is always from a "self" fifo.<br>
      <br>
      <br>
      The problem is that, in the office extensions can
      capture/intercept each other, when the person on that desk is out,
      by pressing **+extension, answering the call (even if is just to
      say that the person is out... ), this works for ip phones, but it
      fails when the ringing phone is the analog extension because of
      the fifo. <br>
      <br>
      <br>
      Mike:<br>
           you give me one idea, i could could uuid_bridge the uuid
      (a-leg) from the caller in the fifo to the channel uuid trying to
      execute the intercept. I guess once i done this the calls gets
      hangup in the fifo and the b-leg (agent) channel should hangup as
      well. <br>
      <br>
          i'm think of something like: uuid_bridge &lt;original caller
      uuid&gt; &lt;uuid extension that is requesting intercept &gt;<br>
          I will try to do test this tomorrow. i post here the results.<br>
         <br>
      <br>
      <br>
      Thanks,<br>
      António<br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 01/13/2016 07:22 PM, Anthony
        Minessale wrote:<br>
      </div>
      <blockquote
cite="mid:CAKbxfG9aJ8qtHe+PsDpDG+_Q43ZEHWGAz+BettTNfAkNztyQyw@mail.gmail.com"
        type="cite">
        <div dir="ltr">Why do you want to intercept the agent anyway,
          won't that hangup on the customer?
          <div><br>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, Jan 13, 2016 at 12:05 PM,
            Michael Jerris <span dir="ltr">&lt;<a
                moz-do-not-send="true" href="mailto:mike@jerris.com"
                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:mike@jerris.com">mike@jerris.com</a></a>&gt;</span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">in
              mod_fifo, the agent is called by mod_fifo before it is
              bridged to the a leg, therefore if you are trying to grab
              that a-leg while that b-leg is ringing, you will need to
              do so using the a-leg uuid, there is no connection to the
              b-leg until after the b-leg answers.<br>
              <div class="HOEnZb">
                <div class="h5"><br>
                  <br>
                  &gt; On Jan 13, 2016, at 1:00 PM, Antonio Silva &lt;<a
                    moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:asilva@wirelessmundi.com"><a class="moz-txt-link-abbreviated" href="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</a></a>&gt;

                  wrote:<br>
                  &gt;<br>
                  &gt; Hi all,<br>
                  &gt;<br>
                  &gt; is it possible to intercept a channel from a fifo
                  with the intercept<br>
                  &gt; command?<br>
                  &gt;<br>
                  &gt; scenario:<br>
                  &gt; a ----&gt; fifo (with fifo  calling ---&gt; B)<br>
                  &gt; c -- dial to trigger the command intercept -b
                  uuid of B<br>
                  &gt; It fails with "switch_ivr_bridge.c:1915 no uuid
                  bridged to uuid of B"<br>
                  &gt; forget to say, it work if the call (fifo -&gt; B)
                  is answered..<br>
                  &gt;<br>
                  &gt;<br>
                  &gt; Could it be possible now... in 2010 wasn't
                  possible...<br>
                  &gt; <a moz-do-not-send="true"
href="http://freeswitch-users.2379917.n2.nabble.com/intercept-in-fifo-queue-td4739579.html"
                    rel="noreferrer" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/intercept-in-fifo-queue-td4739579.html</a><br>
                  &gt;<br>
                  &gt;<br>
                  &gt;<br>
                  &gt; --<br>
                  &gt;<br>
                  &gt; Saludos / Regards / Cumprimentos,<br>
                  &gt; António silva<br>
                  &gt;<br>
                  <br>
                  <br>
_________________________________________________________________________<br>
                  Professional FreeSWITCH Consulting Services:<br>
                  <a moz-do-not-send="true"
                    href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.freeswitchsolutions.com"
                    rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
                  <br>
                  Official FreeSWITCH Sites<br>
                  <a moz-do-not-send="true"
                    href="http://www.freeswitch.org" rel="noreferrer"
                    target="_blank">http://www.freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://confluence.freeswitch.org"
                    rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.cluecon.com" rel="noreferrer"
                    target="_blank">http://www.cluecon.com</a><br>
                  <br>
                  FreeSWITCH-users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                    rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                  UNSUBSCRIBE:<a moz-do-not-send="true"
                    href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                    rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.freeswitch.org" rel="noreferrer"
                    target="_blank">http://www.freeswitch.org</a></div>
              </div>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">Anthony Minessale II       ♬
                      @anthmfs  ♬ @FreeSWITCH  ♬
                      <div><br>
                        <div>☞ <a moz-do-not-send="true"
                            href="http://freeswitch.org/"
                            target="_blank">http://freeswitch.org/</a>
                           ☞ <a moz-do-not-send="true"
                            href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>
                           ☞ <a moz-do-not-send="true"
                            href="http://twitter.com/FreeSWITCH"
                            target="_blank">http://twitter.com/FreeSWITCH</a></div>
                        <div>
                          <div>☞ <a moz-do-not-send="true"
                              href="http://irc.freenode.net"
                              target="_blank">irc.freenode.net</a>
                            #freeswitch ☞ <u><a moz-do-not-send="true"
                                href="http://freeswitch.org/g+"
                                target="_blank">http://freeswitch.org/g+</a></u><br>
                            <br>
                          </div>
                          <div>ClueCon Weekly Development Call <br>
                          </div>
                          <div>☎ <a moz-do-not-send="true"
                              href="mailto:sip%3A888@conference.freeswitch.org"
                              target="_blank">sip:888@conference.freeswitch.org</a>
                             ☎ +19193869900 </div>
                          <div><br>
                          </div>
                        </div>
                      </div>
                      <div><a moz-do-not-send="true"
                          href="https://www.youtube.com/watch?v=9XXgW34t40s"
style="color:rgb(17,85,204);font-size:12.8000001907349px"
                          target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div>
                      <div><a moz-do-not-send="true"
                          href="https://www.youtube.com/watch?v=NLaDpGQuZDA"
                          target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 

Saludos / Regards / Cumprimentos,
António silva</pre>
  </body>
</html>