[Freeswitch-users] Blind transfer with call waiting

Tiago Sampaio tnsampaio at bsd.com.br
Fri May 3 16:54:24 MSD 2013


Its exactly what i need! Thx.

But i supose it may work with att_xfer, correct?
Here when i hangup when start att_xfer call hungup...


Em 02-05-2013 17:12, Anthony Minessale escreveu:
> you could try 
> http://wiki.freeswitch.org/wiki/Variable_campon
>
>
>
> On Thu, May 2, 2013 at 2:43 PM, Tiago Sampaio <tnsampaio at bsd.com.br
> <mailto:tnsampaio at bsd.com.br>> wrote:
>
>     Is there something like blind transfer with call waiting when the
>     target
>     is busy?
>
>     I have a situation here, EX: When Jhon (user 1001) answer a call
>     and and
>     customer ask to talk to Robert (user 1002),
>     Jhon do a blind tansfer an hangup. Currently im wasting that call when
>     Robert is busy. I need an way to park the
>     call and when Robert become available ring his extension (and
>     maybe put
>     an timeout and call back to Jhon).
>
>     Im currently writing an script with perl to do this, something
>     like that
>     (i do this from memory):
>
>     use strict;
>     use POSIX qw(strftime);
>     my ($target_ext,$source_ext,$tryes);
>     my $max_time = 30;
>
>     our $session;
>
>     $target_ext = $session->getVariable('target_ext');
>     $source_ext = $session->getVariable('source_ext');
>
>     while($tryes <= $max_time){
>         my $uuid = $session->execute("db","select/in_a_call/$target_ext");
>
>         if(!$uuid)
>             $session->execute("trasfer","$target_ext XML
>     transfer_context");
>
>         sleep(1);
>         $tryes++;
>     }
>
>     $session->execute("transfer","$source_ext XML transfer_context");
>
>
>     Before call an extension i do db insert/in_a_call/<EXTENSION>/${uuid}
>     and after db delete/in_a_call/<EXTENSION>
>
>     But in thinking will be too hard to maintain this code and must be an
>     easier way to do this...
>
>     Any help?
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
>
> -- 
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> <mailto:MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> <mailto:PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> <mailto:sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org
> <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130503/c53851e8/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list