<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace">okay, I got some ideas from your sample scripts, thanks!</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">My challenge is the agent is already on a call in a callcenter queue. so initiating a new call to the agent isn't going to work.</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">I just tried this, and it looks like it works:</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace"><new-uuid> = create_uuid</div><div class="gmail_default" style="font-family:'courier new',monospace"><div class="gmail_default">originate {origination_uuid=<new-uuid>}loopback/<agent> &park()</div><div class="gmail_default">uuid_setvar <new-uuid> toll_allow domestic,local</div><div class="gmail_default">uuid_transfer <new-uuid> <destination></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 <agent-uuid> <span style="font-size:12.8000001907349px">transfer_after_bridge 7777</span></div><div class="gmail_default">bridge <agent-uuid> <new-uuid></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:'courier new',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"><<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">here'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 &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 <<a href="mailto:royce3@gmail.com">royce3@gmail.com</a>> wrote:<br>
> I need to initiate a call on an agent's behalf, but I can't seem to get it<br>
> to work.<br>
><br>
> This is the closest I've gotten ( 7777 puts agent back in the call-queue )<br>
><br>
> uuid_setvar <agent-uuid> transfer_after_bridge 7777<br>
><br>
> uuid_transfer <agent-uuid> <pstn-number><br>
><br>
> I have 2 problems:<br>
><br>
> 1) the transfer_after_bridge isn't happening, or it's not going to the right<br>
> place<br>
><br>
> 2) I have to wait forever to get a uuid to control that call.<br>
><br>
> I want to be able to allocate a uuid for the outbound leg before I initiate<br>
> the call, but I can't figure out the syntax to make it work.<br>
><br>
> I've tried this, but I get a fast busy:<br>
><br>
> uuid_transfer <agent-uuid> {origination_uuid=<new-uuid>}<pstn-number><br>
><br>
> I've also tried this and it doesn't work either:<br>
><br>
> originate {origination_uuid=<new-uuid>}sofia/external/<pstn-number><br>
> &bridge(<agent-extension>)<br>
><br>
> Please help, thanks<br>
><br>
><br>
> Royce Mitchell, IT Consultant<br>
> ITAS Solutions<br>
> <a href="mailto:royce3@itas-solutions.com">royce3@itas-solutions.com</a><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _________________________________________________________________________<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>
<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>