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

Birgit Arkesteijn birgit at westhawk.co.uk
Tue Oct 28 12:57:04 EDT 2008


Hi Anthony,

Yes, it works now!!!

I added an additional 'while (session.ready())' loop in the consumer 
script. I also had to add 'setAutoHangup(false)' to make it work.

For archive purposes, here is the latest version of my javascript  function:

// conf_name: the name of the conference, for example '25'
// member_id: the member_id of the consumer in the conference
// uuid: the uuid of the consumer
// customer_service_url: the endpoint of the customer service department
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)
         {
             sSession.setAutoHangup(false);
             sSession.execute("intercept", uuid);
         }
         else
         {
             // No customer services
             // kick the member out off the conference and hangup.
             kick_n_hangup_member(conf_name, member_id, uuid);
         }
     }
}


Thank you very, very much for your help!

Cheers, Birgit


On 28/10/08 16:12, Anthony Minessale wrote:
> you might want to add {ignore_early_media=true} to the dial string
> and also make sure it was properly setup by testing for
> sSession.ready() before executing intercept but I know that would work I 
> tested a similar situation in my box.
> 
> is the channel who is in the conference in there via a js also,
> are you being sure to test for session.ready to release the channel from 
> the script
> when the system wants it back?


-- 
-- 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>



More information about the Freeswitch-users mailing list