<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I'm also very interested in some answers! I've been bitten by
    att_xfer in the past.<br>
    <br>
    Is getting dialplan processing working within the att_xfer function
    possible, and just a low priority for implementation, or is there
    some technical reason why this is not feasible?<br>
    <br>
    Lastly, is this somewhere that execute_extension can help? I've
    never been able to get it to work inside att_xfer.<br>
    <br>
    <br>
    On 12-06-04 8:53 AM, Dmitry Sytchev wrote:
    <blockquote
cite="mid:CA+GmxbYZ0fVusbdqDNeLUxwi94aDaK8SjPRU+py-V+JRL6TUqQ@mail.gmail.com"
      type="cite">
      <div>I asked this question many times on mailing list, and now I'm
        sure this can't be really done with loopback.</div>
      The only alternative for loopback is to re-inject call into FS via
      some separate Sofia profile, and specify that profile in string
      for att_xfer.<br>
      This brings up large amount of troubles including DTMF
      transcoding, sequential att_xfer attempt recognition and overall
      voice/dtmf delay introduced by chained channels. Maybe some
      channels can be moved out of scene by using 'simplify' api on
      correct channels, but this needs tests.
      <div>
        <br>
        <div>Anyway, loopback channel in FS is completely unusable, so
          we do need to have some &nbsp;best practices on how to do things
          without it in FS wiki... Maybe I have time and will describe
          our experience soon.<br>
          <br>
          <div class="gmail_quote">
            2012/6/4 Michael Collins <span dir="ltr">&lt;<a
                moz-do-not-send="true" href="mailto:msc@freeswitch.org"
                target="_blank">msc@freeswitch.org</a>&gt;</span><br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <br>
              <br>
              <div class="gmail_quote">
                <div class="im">On Sun, Jun 3, 2012 at 2:15 PM, Avi
                  Marcus <span dir="ltr">&lt;<a moz-do-not-send="true"
                      href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div dir="ltr">I know you can do anything in the
                      dialstring. But intended feature is to allow the
                      user to do an attended transfer to any number that
                      they could reach via the default calling. The
                      default outbound path already has a LOT of stuff
                      set up and it would be impossible to duplicate
                      that within a SINGLE dialstring in a function
                      call.
                      <div>
                        What is needed is for an att_xfer to be able to
                        have leg C hit the dialplan and bridged however
                        a "normal" leg B to that number would be called.</div>
                      <div>Does this make sense?</div>
                    </div>
                  </blockquote>
                </div>
                <div>
                  Perhaps, but I remain unconvinced that this scenario
                  is impossible without loopback. How about the OP
                  actually supply a sample Lua script and dialplan and
                  call log? I'd be willing to wager that the gurus could
                  come up with a non-evil alternative that actually
                  works. Just because loopback seems like a clean
                  solution doesn't necessarily mean that it is. I'll
                  leave it to Anthony to give the technical reasons why
                  loopback doesn't always work as one would expect or
                  why it should be avoided wherever possible.<span
                    class="HOEnZb"><font color="#888888"><br>
                      <br>
                      -MC<br>
                      <br>
                    </font></span></div>
                <div>
                  <div class="h5">
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      <div dir="ltr">
                        <div><span><font color="#888888"><br clear="all">
                              <div dir="ltr">
                                <span
                                  style="font-family:Verdana,Arial,Helvetica,sans-serif"><span
                                    style="font-size:small">-Avi</span></span></div>
                              <br>
                              <br>
                              <br>
                            </font></span>
                          <div class="gmail_quote">
                            <div>
                              <div>On Mon, Jun 4, 2012 at 12:02 AM,
                                Michael Collins <span dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:msc@freeswitch.org"
                                    target="_blank">msc@freeswitch.org</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>
                                  Au contraire mon frere!<br>
                                  <br>
                                  You can do multiple things in a
                                  dialstring, like setting channel
                                  variables. You can also use
                                  execute_on_ring/media/answer to
                                  execute the extension with doing all
                                  the loopback overhead.<br>
                                  <br>
                                  I propose an experiment: provide a
                                  dialplan and loopback dialstring and
                                  we'll see if we can't give you a
                                  non-loopbackish alternative. <br>
                                  <span><font color="#888888"><br>
                                      -MC</font></span>
                                  <div>
                                    <div><br>
                                      <br>
                                      <div class="gmail_quote">On Sun,
                                        Jun 3, 2012 at 1:54 PM, Avi
                                        Marcus <span dir="ltr">&lt;<a
                                            moz-do-not-send="true"
                                            href="mailto:avi@avimarcus.net"
                                            target="_blank">avi@avimarcus.net</a>&gt;</span>
                                        wrote:<br>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          <div dir="ltr">... all the
                                            normal dialplan handling.
                                            Setting CID, options, LCR
                                            stuff, billing controls.<br
                                              clear="all">
                                            <div dir="ltr"><span
                                                style="font-family:Verdana,Arial,Helvetica,sans-serif"><span
style="font-size:small">-Avi</span></span></div>
                                            <br>
                                            <br>
                                            <div class="gmail_quote">On
                                              Sun, Jun 3, 2012 at 11:40
                                              PM, Michael Collins <span
                                                dir="ltr">&lt;<a
                                                  moz-do-not-send="true"
href="mailto:msc@freeswitch.org" target="_blank">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">
                                                Let me rephrase...<br>
                                                <br>
                                                Since loopback is
                                                generally evil and
                                                should be avoided
                                                wherever possible, what
                                                does loopback give you
                                                that you can't get from
                                                doing a normal
                                                dialstring?<span><font
                                                    color="#888888"><br>
                                                    -MC</font></span>
                                                <div>
                                                  <div><br>
                                                    <br>
                                                    <div
                                                      class="gmail_quote">
                                                      On Sat, Jun 2,
                                                      2012 at 11:13 AM,
                                                      Avi Marcus <span
                                                        dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</span>
                                                      wrote:<br>
                                                      <blockquote
                                                        class="gmail_quote"
                                                        style="margin:0
                                                        0 0
                                                        .8ex;border-left:1px
                                                        #ccc
                                                        solid;padding-left:1ex">
                                                        <div dir="ltr">...
                                                          because
                                                          att_xfer seems
                                                          to require a
                                                          "sofia/$profile/$destination"
                                                          directive, and
                                                          he just wants
                                                          the call to
                                                          hit the
                                                          dialplan.
                                                          <div><br
                                                          clear="all">
                                                          <div dir="ltr"><span
style="font-family:Verdana,Arial,Helvetica,sans-serif"><span
                                                          style="font-size:small">-Avi</span></span></div>
                                                          <br>
                                                          <br>
                                                          <div
                                                          class="gmail_quote">On
                                                          Fri, Jun 1,
                                                          2012 at 8:13
                                                          PM, Michael
                                                          Collins <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:msc@freeswitch.org" target="_blank">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">
                                                          Why do you
                                                          need to use
                                                          loopback at
                                                          all?<span><font
color="#888888"><br>
                                                          -MC</font></span>
                                                          <div>
                                                          <div><br>
                                                          <br>
                                                          <div
                                                          class="gmail_quote">On
                                                          Fri, Jun 1,
                                                          2012 at 3:17
                                                          AM, Alex Lake
                                                          <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:alex@digitalmail.com"
                                                          target="_blank">alex@digitalmail.com</a>&gt;</span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">Got
                                                          a lua script
                                                          for a B-party
                                                          "mid-call
                                                          menu". Is it
                                                          legitimate to
                                                          do..<br>
                                                          "session:execute("att_xfer",
"loopback/"..destnum)"<br>
                                                          <br>
                                                          I've tried it
                                                          and it seems
                                                          to start off
                                                          doing the
                                                          right things,
                                                          but my<br>
                                                          A-party gets
                                                          disconnected
                                                          as soon as the
                                                          call to the
                                                          C-Party (the
                                                          person<br>
                                                          I'm
                                                          transferring
                                                          the call to)
                                                          answers the
                                                          call.<br>
                                                          <br>
                                                          Maybe better
                                                          to try to
                                                          orchestrate
                                                          the entire
                                                          affair from
                                                          within the lua<br>
                                                          script?
                                                          (Tricky for a
                                                          beginner like
                                                          me!)<br>
                                                          <br>
                                                          Thanks,<br>
                                                          Alex<br>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          </blockquote>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </blockquote>
                                                    </div>
                                                    <br>
                                                  </div>
                                                </div>
                                                <br>
                                              </blockquote>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <br>
                                    </div>
                                  </div>
                                  <br>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
              <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"
                target="_blank">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a moz-do-not-send="true" href="http://www.cudatel.com"
                target="_blank">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
              <a moz-do-not-send="true" href="http://www.cluecon.com"
                target="_blank">http://www.cluecon.com</a><br>
              <br>
              Join Us At ClueCon - Aug 7-9, 2012<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"
                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"
                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          Best regards,<br>
          <br>
          Dmitry Sytchev,<br>
          IT Engineer<br>
        </div>
      </div>
      <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>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.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://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

Join Us At ClueCon - Aug 7-9, 2012

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>
  </body>
</html>