<div>I asked this question many times on mailing list, and now I&#39;m sure this can&#39;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 &#39;simplify&#39; 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  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 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 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 &quot;normal&quot; 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&#39;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&#39;t necessarily mean that it is. I&#39;ll leave it to Anthony to give the technical reasons why loopback doesn&#39;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 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&#39;ll see if we can&#39;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 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 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&#39;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 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 &quot;sofia/$profile/$destination&quot; 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 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 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 &quot;mid-call menu&quot;. Is it legitimate to do..<br>
&quot;session:execute(&quot;att_xfer&quot;, &quot;loopback/&quot;..destnum)&quot;<br>
<br>
I&#39;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&#39;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 href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a 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 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><br clear="all"><div><br></div>-- <br>Best regards,<br><br>Dmitry Sytchev,<br>IT Engineer<br>
</div></div>