<div dir="ltr"><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">okay, I got some ideas from your sample scripts, thanks!</div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace"><br></div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">My challenge is the agent is already on a call in a callcenter queue. so initiating a new call to the agent isn&#39;t going to work.</div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace"><br></div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">I just tried this, and it looks like it works:</div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace"><br></div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">&lt;new-uuid&gt; = create_uuid</div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace"><div class="gmail_default">originate {origination_uuid=&lt;new-uuid&gt;}loopback/&lt;agent&gt; &amp;park()</div><div class="gmail_default">uuid_setvar &lt;new-uuid&gt; toll_allow domestic,local</div><div class="gmail_default">uuid_transfer &lt;new-uuid&gt; &lt;destination&gt;</div><div class="gmail_default"><br></div><div class="gmail_default">next step, which I will test tomorrow, will be to add this to the above:</div><div class="gmail_default"><br></div><div class="gmail_default">uuid_setvar &lt;agent-uuid&gt; <span style="font-size:12.8000001907349px">transfer_after_bridge 7777</span></div><div class="gmail_default">bridge &lt;agent-uuid&gt; &lt;new-uuid&gt;</div><div class="gmail_default"><br></div><div class="gmail_default">I hear that loopback is evil. I will analyze the cdr and see just how evil it is. Is there a cleaner way to do this? 7777 is supposed to put the agent back into the call queue when the call ends, which is working fine for inbound calls</div></div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace"><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div><span style="font-family:arial;font-size:small"><br></span></div><div><span style="font-family:arial;font-size:small"><br></span></div><span style="font-family:arial;font-size:small">Royce Mitchell, </span>IT Consultant<div style="font-family:arial;font-size:small">ITAS Solutions</div><div style="font-family:arial;font-size:small"><a href="mailto:royce3@itas-solutions.com" target="_blank">royce3@itas-solutions.com</a></div></div></div>
<br><div class="gmail_quote">On Sat, Feb 28, 2015 at 1:41 AM, Stanislav Sinyagin <span dir="ltr">&lt;<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">here&#39;s my script that does this:<br>
<a href="https://github.com/voxserv/freeswitch-helper-scripts/tree/master/esl" target="_blank">https://github.com/voxserv/freeswitch-helper-scripts/tree/master/esl</a><br>
<br>
It does:<br>
uuid_create<br>
originate with &amp;park()<br>
uuid_transfer<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Sat, Feb 28, 2015 at 1:38 AM, Royce Mitchell III &lt;<a href="mailto:royce3@gmail.com">royce3@gmail.com</a>&gt; wrote:<br>
&gt; I need to initiate a call on an agent&#39;s behalf, but I can&#39;t seem to get it<br>
&gt; to work.<br>
&gt;<br>
&gt; This is the closest I&#39;ve gotten ( 7777 puts agent back in the call-queue )<br>
&gt;<br>
&gt; uuid_setvar &lt;agent-uuid&gt; transfer_after_bridge 7777<br>
&gt;<br>
&gt; uuid_transfer &lt;agent-uuid&gt; &lt;pstn-number&gt;<br>
&gt;<br>
&gt; I have 2 problems:<br>
&gt;<br>
&gt; 1) the transfer_after_bridge isn&#39;t happening, or it&#39;s not going to the right<br>
&gt; place<br>
&gt;<br>
&gt; 2) I have to wait forever to get a uuid to control that call.<br>
&gt;<br>
&gt; I want to be able to allocate a uuid for the outbound leg before I initiate<br>
&gt; the call, but I can&#39;t figure out the syntax to make it work.<br>
&gt;<br>
&gt; I&#39;ve tried this, but I get a fast busy:<br>
&gt;<br>
&gt; uuid_transfer &lt;agent-uuid&gt; {origination_uuid=&lt;new-uuid&gt;}&lt;pstn-number&gt;<br>
&gt;<br>
&gt; I&#39;ve also tried this and it doesn&#39;t work either:<br>
&gt;<br>
&gt; originate {origination_uuid=&lt;new-uuid&gt;}sofia/external/&lt;pstn-number&gt;<br>
&gt; &amp;bridge(&lt;agent-extension&gt;)<br>
&gt;<br>
&gt; Please help, thanks<br>
&gt;<br>
&gt;<br>
&gt; Royce Mitchell, IT Consultant<br>
&gt; ITAS Solutions<br>
&gt; <a href="mailto:royce3@itas-solutions.com">royce3@itas-solutions.com</a><br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</div></div></blockquote></div><br></div>