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

Birgit Arkesteijn birgit at westhawk.co.uk
Thu Oct 23 08:23:46 PDT 2008


Hi Anthony,

Well, that definitely improved the situation, thanks!
I'm running 498:8901, installed on 2008-10-08.

The problem I now hit is that the two calls are bridged indeed, but the 
first person (0662) remains in the conference as well. See lines below. 
Since the first person was alone in the conference, the hold music keeps 
playing.

I tried kicking the first person out of the conference before bridging, 
but sometimes this resulted in a hangup.
I tried a park, but that failed altogether.

Any ideas?


Code snippet:
log("create new consumer session object: " + uuid);
var cSession = new Session(uuid);
cSession.setAutoHangup(false);
cSession.execute("bridge", customer_service_url);


freeswitch at apso> show channels
API CALL [show(channels)] output:
uuid,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,write_codec,write_rate
f7d6e318-a114-11dd-bdec-fbb3834a5c38,2008-10-23 
16:12:12,1224774732,sofia/external/0662,CS_SOFT_EXECUTE,FreeSWITCH,0000000000,,0662,bridge,sofia/gateway/doneright/0663,,default,L16,8000,PCMA,8000
f8ac05e8-a114-11dd-bdec-fbb3834a5c38,2008-10-23 
16:12:13,1224774733,sofia/external/0663,CS_EXCHANGE_MEDIA,FreeSWITCH,0000000000,,0663,,,,default,PCMA,8000,PCMA,8000

2 total.


freeswitch at apso> conference list
API CALL [conference(list)] output:
Conference 25 (1 member)
7;sofia/external/0662;f7d6e318-a114-11dd-bdec-fbb3834a5c38;FreeSWITCH;0000000000;hear|speak|floor;0;0;300



Thanks, Birgit


On 23/10/08 15:26, Anthony Minessale wrote:
> See this one?
> 2008-10-23 14:38:49 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
> Hangup sofia/external/0662 [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
> 
> try
> session.setAutoHangup(false);
> 
> to keep the call from getting hungup when the script exits.
> 
> BTW, you seem to be using older code.  Keep in mind my advice is coming
> from the perspective of latest code.
> 
> 
> 
> On Thu, Oct 23, 2008 at 8:54 AM, Birgit Arkesteijn 
> <birgit at westhawk.co.uk <mailto:birgit at westhawk.co.uk>> wrote:
> 
>     Hi Anthony,
> 
>     No, I didn't even think of trying it, so sure was I that it possibly
>     couldn't be this simple. :-) Sorry. It's great that it works this way!
> 
>     I amended the Wiki page
>     (http://wiki.freeswitch.org/wiki/Session#Constructor)
>     (I'll try to do that more often now that I seem to learn more and more).
> 
>     This is what I ended up with:
>     log("create new consumer session object: " + uuid);
>     var cSession = new Session(uuid);
>     cSession.execute("bridge", customer_service_url);
> 
> 
>     Unfortunately it doesn't help me with my problem.
>     Immediately after the bridging statement, both endpoints hang up instead
>     of being able to talk to each other. :-(
> 
>     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>




More information about the FreeSWITCH-users mailing list