[Freeswitch-users] Take uuid out of conference and bridge

Anthony Minessale anthony.minessale at gmail.com
Wed Oct 22 13:54:17 EDT 2008


try skipping the kick
if you call uuid_bridge on a session who is busy doing something he will be
warped to your bridge anyway.


On Wed, Oct 22, 2008 at 12:37 PM, Birgit Arkesteijn
<birgit at westhawk.co.uk>wrote:

> Hi,
>
> In javascript I'm trying to take 'memberA' out of a conference and
> bridge this person to a customer services number.
>
> I no longer have the session object of memberA, so I find the uuid via
> an apiExecute() on conference list.
>
> I then create a new session object with the customer services endpoint,
> and try to uuid_bridge the uuid of memberA with the uuid of the new
> session object.
>
> The customer service endpoint ring successfully, but when I try to
> bridge both endpoints hangup with cause DESTINATION_OUT_OF_ORDER.
>
> Does anyone know how to do this successfully?
>
>
> Here is the function involved:
>
> function bridge_to_customer_services(conf_name, member_id, uuid,
> customer_service_url)
> {
>     if (member_id && uuid)
>     {
>         var sSession = new
> Session("{ignore_early_media=true,originate_timeout=10}"
>             + customer_service_url);
>
>         var ready = sSession.ready();
>         if (ready == true)
>         {
>             // The customer services call has been answered
>
>             var argument = conf_name + " kick " + member_id;
>             var res = apiExecute("conference",  argument);
>             log("after apiExecute conference: " + res);
>
>             argument = uuid + " " + sSession.uuid;
>             res = apiExecute("uuid_bridge", argument);
>             log("after apiExecute uuid_bridge: " + res);
>         }
>     }
> }
>
>
> BTW, log() is just a helper function that wraps around console_log().
>
>
> Thanks, Birgit
>
> --
> -- Birgit Arkesteijn, birgit at westhawk.co.uk,
> -- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
> -- Company no: 1769350
> -- Registered Office:
> -- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
> -- tel.: +44 (0)161 237 0660
> -- <URL: http://www.westhawk.co.uk>
>
> _______________________________________________
> 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
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081022/458fc4b1/attachment-0001.html 


More information about the Freeswitch-users mailing list