<div dir="ltr">you could try <div><a href="http://wiki.freeswitch.org/wiki/Variable_campon">http://wiki.freeswitch.org/wiki/Variable_campon</a><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, May 2, 2013 at 2:43 PM, Tiago Sampaio <span dir="ltr">&lt;<a href="mailto:tnsampaio@bsd.com.br" target="_blank">tnsampaio@bsd.com.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there something like blind transfer with call waiting when the target<br>
is busy?<br>
<br>
I have a situation here, EX: When Jhon (user 1001) answer a call and and<br>
customer ask to talk to Robert (user 1002),<br>
Jhon do a blind tansfer an hangup. Currently im wasting that call when<br>
Robert is busy. I need an way to park the<br>
call and when Robert become available ring his extension (and maybe put<br>
an timeout and call back to Jhon).<br>
<br>
Im currently writing an script with perl to do this, something like that<br>
(i do this from memory):<br>
<br>
use strict;<br>
use POSIX qw(strftime);<br>
my ($target_ext,$source_ext,$tryes);<br>
my $max_time = 30;<br>
<br>
our $session;<br>
<br>
$target_ext = $session-&gt;getVariable(&#39;target_ext&#39;);<br>
$source_ext = $session-&gt;getVariable(&#39;source_ext&#39;);<br>
<br>
while($tryes &lt;= $max_time){<br>
    my $uuid = $session-&gt;execute(&quot;db&quot;,&quot;select/in_a_call/$target_ext&quot;);<br>
<br>
    if(!$uuid)<br>
        $session-&gt;execute(&quot;trasfer&quot;,&quot;$target_ext XML transfer_context&quot;);<br>
<br>
    sleep(1);<br>
    $tryes++;<br>
}<br>
<br>
$session-&gt;execute(&quot;transfer&quot;,&quot;$source_ext XML transfer_context&quot;);<br>
<br>
<br>
Before call an extension i do db insert/in_a_call/&lt;EXTENSION&gt;/${uuid}<br>
and after db delete/in_a_call/&lt;EXTENSION&gt;<br>
<br>
But in thinking will be too hard to maintain this code and must be an<br>
easier way to do this...<br>
<br>
Any help?<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>
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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900
</div>