try skipping the kick<br>if you call uuid_bridge on a session who is busy doing something he will be warped to your bridge anyway.<br><br><br><div class="gmail_quote">On Wed, Oct 22, 2008 at 12:37 PM, Birgit Arkesteijn <span dir="ltr"><<a href="mailto:birgit@westhawk.co.uk">birgit@westhawk.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
In javascript I'm trying to take 'memberA' out of a conference and<br>
bridge this person to a customer services number.<br>
<br>
I no longer have the session object of memberA, so I find the uuid via<br>
an apiExecute() on conference list.<br>
<br>
I then create a new session object with the customer services endpoint,<br>
and try to uuid_bridge the uuid of memberA with the uuid of the new<br>
session object.<br>
<br>
The customer service endpoint ring successfully, but when I try to<br>
bridge both endpoints hangup with cause DESTINATION_OUT_OF_ORDER.<br>
<br>
Does anyone know how to do this successfully?<br>
<br>
<br>
Here is the function involved:<br>
<br>
function bridge_to_customer_services(conf_name, member_id, uuid,<br>
customer_service_url)<br>
{<br>
if (member_id && uuid)<br>
{<br>
var sSession = new<br>
Session("{ignore_early_media=true,originate_timeout=10}"<br>
+ customer_service_url);<br>
<br>
var ready = sSession.ready();<br>
if (ready == true)<br>
{<br>
// The customer services call has been answered<br>
<br>
var argument = conf_name + " kick " + member_id;<br>
var res = apiExecute("conference", argument);<br>
log("after apiExecute conference: " + res);<br>
<br>
argument = uuid + " " + sSession.uuid;<br>
res = apiExecute("uuid_bridge", argument);<br>
log("after apiExecute uuid_bridge: " + res);<br>
}<br>
}<br>
}<br>
<br>
<br>
BTW, log() is just a helper function that wraps around console_log().<br>
<br>
<br>
Thanks, Birgit<br>
<br>
--<br>
-- Birgit Arkesteijn, <a href="mailto:birgit@westhawk.co.uk">birgit@westhawk.co.uk</a>,<br>
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK<br>
-- Company no: 1769350<br>
-- Registered Office:<br>
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.<br>
-- tel.: +44 (0)161 237 0660<br>
-- <URL: <a href="http://www.westhawk.co.uk" target="_blank">http://www.westhawk.co.uk</a>><br>
<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"><br>-- <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>
<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="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>