Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
birgit at westhawk.co.uk
Guest





PostPosted: Wed Oct 22, 2008 1:08 pm    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Wed Oct 22, 2008 1:47 pm    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

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@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote:
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@westhawk.co.uk (birgit@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@lists.freeswitch.org (Freeswitch-users@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@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Thu Oct 23, 2008 6:11 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi,

Just a thought ... is there a way in javascript to (re)create a session
object given an existing uuid?

If that was the case, I could do something like:
var session = new Session (uuid);
session.bridge(customer_service_url);

If that's not possible, I appreciate any thought about my current setup.

Thanks, Birgit

On 23/10/08 11:43, Birgit Arkesteijn wrote:
Quote:
Hi,

Thanks Anthony for your response.
Unfortunately removing the 'kick' didn't make a difference.

The result is also different if I change the order of the UUIDs around.
In one scenario I get [NORMAL_CLEARING], in the other
[DESTINATION_OUT_OF_ORDER].

I added the code (again) and 2 snippets of the freeswitch.log below.

Does anyone have an alternative?

Thanks, Birgit


Current code:

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (uuid)
{
var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
log("customer services answered: " + ready);
if (ready == true)
{
// The customer services call has been answered
argument = sSession.uuid + " " + uuid;
var res = apiExecute("uuid_bridge", argument);
log("after apiExecute uuid_bridge: " + res);
}
}
}

When I set argument as:
argument = sSession.uuid + " " + uuid;

I see the following in the freeswitch log:

(
sofia/external/0663: is the 'new' customer services call,
sofia/external/0662: is the call in the conference
)

2008-10-23 11:27:05 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[23638bbc-a0ed-11dd-843a-d9638db44114]
2008-10-23 11:27:05 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:27:08 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log() after
apiExecute uuid_bridge: +OK 20f309de-a0ed-11dd-843a-d9638db44114

2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log() after
cSession in conf
2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 6 (sofia/external/0663) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 5 (sofia/external/0662) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]



When I set argument as:
argument = uuid + " " + sSession.uuid;


I see the following in the freeswitch log:

2008-10-23 11:35:00 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[3ea7fdd0-a0ee-11dd-843a-d9638db44114]
2008-10-23 11:35:00 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:35:03 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
apiExecute uuid_bridge: +OK 3ea7fdd0-a0ee-11dd-843a-d9638db44114

2008-10-23 11:35:03 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:35:03 [NOTICE] switch_ivr_bridge.c:484
uuid_bridge_on_soft_execute() Hangup sofia/external/0662
[CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]
2008-10-23 11:42:21 [INFO] dispatcher_general.js:70 console_log()
consumer consumer_hungup(): cSession hangup HOOK, name:
sofia/external/0662, uuid: 42e859d4-a0ef-11dd-843a-d9638db44114, state:
CS_HANGUP, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
apiExecute conference:
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
cSession in conf
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 8 (sofia/external/0663) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 7 (sofia/external/0662) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]



On 22/10/08 18:54, Anthony Minessale wrote:
Quote:
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.


--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Thu Oct 23, 2008 6:17 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi,

Thanks Anthony for your response.
Unfortunately removing the 'kick' didn't make a difference.

The result is also different if I change the order of the UUIDs around.
In one scenario I get [NORMAL_CLEARING], in the other
[DESTINATION_OUT_OF_ORDER].

I added the code (again) and 2 snippets of the freeswitch.log below.

Does anyone have an alternative?

Thanks, Birgit


Current code:

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (uuid)
{
var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
log("customer services answered: " + ready);
if (ready == true)
{
// The customer services call has been answered
argument = sSession.uuid + " " + uuid;
var res = apiExecute("uuid_bridge", argument);
log("after apiExecute uuid_bridge: " + res);
}
}
}

When I set argument as:
argument = sSession.uuid + " " + uuid;

I see the following in the freeswitch log:

(
sofia/external/0663: is the 'new' customer services call,
sofia/external/0662: is the call in the conference
)

2008-10-23 11:27:05 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[23638bbc-a0ed-11dd-843a-d9638db44114]
2008-10-23 11:27:05 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:27:08 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log() after
apiExecute uuid_bridge: +OK 20f309de-a0ed-11dd-843a-d9638db44114

2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log() after
cSession in conf
2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 6 (sofia/external/0663) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 5 (sofia/external/0662) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]



When I set argument as:
argument = uuid + " " + sSession.uuid;


I see the following in the freeswitch log:

2008-10-23 11:35:00 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[3ea7fdd0-a0ee-11dd-843a-d9638db44114]
2008-10-23 11:35:00 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:35:03 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
apiExecute uuid_bridge: +OK 3ea7fdd0-a0ee-11dd-843a-d9638db44114

2008-10-23 11:35:03 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:35:03 [NOTICE] switch_ivr_bridge.c:484
uuid_bridge_on_soft_execute() Hangup sofia/external/0662
[CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]
2008-10-23 11:42:21 [INFO] dispatcher_general.js:70 console_log()
consumer consumer_hungup(): cSession hangup HOOK, name:
sofia/external/0662, uuid: 42e859d4-a0ef-11dd-843a-d9638db44114, state:
CS_HANGUP, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
apiExecute conference:
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
cSession in conf
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 8 (sofia/external/0663) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 7 (sofia/external/0662) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]



On 22/10/08 18:54, Anthony Minessale wrote:
Quote:
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.

--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mike at jerris.com
Guest





PostPosted: Thu Oct 23, 2008 6:49 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

can you post debug logs of this output?

Mike
On Oct 23, 2008, at 6:43 AM, Birgit Arkesteijn wrote:

Quote:
Hi,

Thanks Anthony for your response.
Unfortunately removing the 'kick' didn't make a difference.

The result is also different if I change the order of the UUIDs
around.
In one scenario I get [NORMAL_CLEARING], in the other
[DESTINATION_OUT_OF_ORDER].

I added the code (again) and 2 snippets of the freeswitch.log below.

Does anyone have an alternative?

Thanks, Birgit


Current code:

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (uuid)
{
var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
log("customer services answered: " + ready);
if (ready == true)
{
// The customer services call has been answered
argument = sSession.uuid + " " + uuid;
var res = apiExecute("uuid_bridge", argument);
log("after apiExecute uuid_bridge: " + res);
}
}
}

When I set argument as:
argument = sSession.uuid + " " + uuid;

I see the following in the freeswitch log:

(
sofia/external/0663: is the 'new' customer services call,
sofia/external/0662: is the call in the conference
)

2008-10-23 11:27:05 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[23638bbc-a0ed-11dd-843a-d9638db44114]
2008-10-23 11:27:05 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:27:08 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log()
after
apiExecute uuid_bridge: +OK 20f309de-a0ed-11dd-843a-d9638db44114

2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log()
after
cSession in conf
2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 6 (sofia/external/0663) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663
[CS_HANGUP]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 5 (sofia/external/0662) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662
[CS_HANGUP]



When I set argument as:
argument = uuid + " " + sSession.uuid;


I see the following in the freeswitch log:

2008-10-23 11:35:00 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[3ea7fdd0-a0ee-11dd-843a-d9638db44114]
2008-10-23 11:35:00 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:35:03 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log()
after
apiExecute uuid_bridge: +OK 3ea7fdd0-a0ee-11dd-843a-d9638db44114

2008-10-23 11:35:03 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:35:03 [NOTICE] switch_ivr_bridge.c:484
uuid_bridge_on_soft_execute() Hangup sofia/external/0662
[CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]
2008-10-23 11:42:21 [INFO] dispatcher_general.js:70 console_log()
consumer consumer_hungup(): cSession hangup HOOK, name:
sofia/external/0662, uuid: 42e859d4-a0ef-11dd-843a-d9638db44114,
state:
CS_HANGUP, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log()
after
apiExecute conference:
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log()
after
cSession in conf
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 8 (sofia/external/0663) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663
[CS_HANGUP]
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 7 (sofia/external/0662) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662
[CS_HANGUP]



On 22/10/08 18:54, Anthony Minessale wrote:
Quote:
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.

--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Thu Oct 23, 2008 7:09 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi Mike,

The two snippets can be found below.

Thanks, Birgit


***** The snippet where [DESTINATION_OUT_OF_ORDER] occurs:

2008-10-23 12:47:06 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 12:47:06 [DEBUG] switch_ivr_originate.c:1322
switch_ivr_originate() Originate Resulted in Success: [sofia/external/0663]
2008-10-23 12:47:06 [DEBUG] mod_spidermonkey.c:2682 session_construct()
sofia/external/0663 State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log()
customer services answered: true
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:904
switch_ivr_uuid_bridge() sofia/external/0662 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:905
switch_ivr_uuid_bridge() sofia/external/0663 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log() after
apiExecute uuid_bridge: +OK 4f1a9178-a0f8-11dd-bc47-611d57a250e3

2008-10-23 12:47:06 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 12:47:06 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0663 [KILL]
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_RESET
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:132 sofia_on_reset()
sofia/external/0662 SOFIA RESET
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:423
uuid_bridge_on_reset() sofia/external/0662 CUSTOM RESET
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:428
uuid_bridge_on_reset() sofia/external/0662 State Change CS_RESET ->
CS_SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change
CS_SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:329 sofia_on_soft_execute()
SOFIA TRANSMIT
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:440
uuid_bridge_on_soft_execute() sofia/external/0662 CUSTOM TRANSMIT
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_HANGUP
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0663 hanging up, cause: NORMAL_CLEARING
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0663
2008-10-23 12:47:06 [NOTICE] switch_ivr_bridge.c:484
uuid_bridge_on_soft_execute() Hangup sofia/external/0662
[CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]
2008-10-23 12:47:06 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0662 [KILL]
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE going
to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_HANGUP
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP
2008-10-23 12:47:06 [DEBUG] mod_conference.c:1997
conference_loop_output() Channel leaving conference, cause:
DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0662 hanging up, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0662
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log()
consumer consumer_hungup(): cSession hangup HOOK, name:
sofia/external/0662, uuid: 4d7e7942-a0f8-11dd-bc47-611d57a250e3, state:
CS_HANGUP, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log() after
apiExecute conference:
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log() after
cSession in conf
2008-10-23 12:47:06 [DEBUG] mod_conference.c:1190
conference_thread_run() Write Lock ON
2008-10-23 12:47:06 [DEBUG] mod_conference.c:1193
conference_thread_run() Write Lock OFF
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0663,
cause: NORMAL_CLEARING
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 2 (sofia/external/0663) Locked,
Waiting on external entities
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 2 (sofia/external/0663) Ended
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0662,
cause: DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 1 (sofia/external/0662) Locked,
Waiting on external entities
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 1 (sofia/external/0662) Ended
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]




***** Here the snippet where [NORMAL_CLEARING] occurs:

2008-10-23 12:53:05 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 12:53:05 [DEBUG] switch_ivr_originate.c:1322
switch_ivr_originate() Originate Resulted in Success: [sofia/external/0663]
2008-10-23 12:53:05 [DEBUG] mod_spidermonkey.c:2682 session_construct()
sofia/external/0663 State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:53:05 [INFO] dispatcher_general.js:76 console_log()
customer services answered: true
2008-10-23 12:53:05 [DEBUG] switch_ivr_bridge.c:904
switch_ivr_uuid_bridge() sofia/external/0663 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:53:05 [DEBUG] switch_ivr_bridge.c:905
switch_ivr_uuid_bridge() sofia/external/0662 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:53:05 [INFO] dispatcher_general.js:76 console_log() after
apiExecute uuid_bridge: +OK 240c53a8-a0f9-11dd-bc47-611d57a250e3

2008-10-23 12:53:05 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 12:53:05 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0663 [KILL]
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
going to sleep
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_HANGUP
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0663 hanging up, cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0663
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0663,
cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP going to sleep
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 5 (sofia/external/0663) Locked,
Waiting on external entities
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 5 (sofia/external/0663) Ended
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_RESET
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:132 sofia_on_reset()
sofia/external/0662 SOFIA RESET
2008-10-23 12:53:05 [DEBUG] switch_ivr_bridge.c:423
uuid_bridge_on_reset() sofia/external/0662 CUSTOM RESET
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:53
switch_core_standard_on_reset() Standard RESET sofia/external/0662
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET going to sleep
2008-10-23 12:53:05 [DEBUG] mod_conference.c:1997
conference_loop_output() Channel leaving conference, cause: NONE
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
2008-10-23 12:53:05 [INFO] dispatcher_general.js:76 console_log() after
cSession in conf
2008-10-23 12:53:05 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 12:53:05 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0662 [KILL]
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_HANGUP
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0662 hanging up, cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0662
2008-10-23 12:53:05 [DEBUG] mod_conference.c:1190
conference_thread_run() Write Lock ON
2008-10-23 12:53:05 [DEBUG] mod_conference.c:1193
conference_thread_run() Write Lock OFF
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0662,
cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP going to sleep
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 4 (sofia/external/0662) Locked,
Waiting on external entities
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 4 (sofia/external/0662) Ended
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]


On 23/10/08 12:41, Michael Jerris wrote:
Quote:
can you post debug logs of this output?

Mike
On Oct 23, 2008, at 6:43 AM, Birgit Arkesteijn wrote:

Quote:
Hi,

Thanks Anthony for your response.
Unfortunately removing the 'kick' didn't make a difference.

The result is also different if I change the order of the UUIDs
around.
In one scenario I get [NORMAL_CLEARING], in the other
[DESTINATION_OUT_OF_ORDER].

I added the code (again) and 2 snippets of the freeswitch.log below.

Does anyone have an alternative?

Thanks, Birgit


Current code:

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (uuid)
{
var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
log("customer services answered: " + ready);
if (ready == true)
{
// The customer services call has been answered
argument = sSession.uuid + " " + uuid;
var res = apiExecute("uuid_bridge", argument);
log("after apiExecute uuid_bridge: " + res);
}
}
}

When I set argument as:
argument = sSession.uuid + " " + uuid;

I see the following in the freeswitch log:

(
sofia/external/0663: is the 'new' customer services call,
sofia/external/0662: is the call in the conference
)


--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Oct 23, 2008 8:19 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Did you ever try it =D
because yes that should work. Constructor takes either a uuid string or a originate string.



On Thu, Oct 23, 2008 at 6:02 AM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote:
Hi,

Just a thought ... is there a way in javascript to (re)create a session
object given an existing uuid?

If that was the case, I could do something like:
var session = new Session (uuid);
session.bridge(customer_service_url);

If that's not possible, I appreciate any thought about my current setup.

Thanks, Birgit


On 23/10/08 11:43, Birgit Arkesteijn wrote:
Quote:
Hi,

Thanks Anthony for your response.
Unfortunately removing the 'kick' didn't make a difference.

The result is also different if I change the order of the UUIDs around.
In one scenario I get [NORMAL_CLEARING], in the other
[DESTINATION_OUT_OF_ORDER].

I added the code (again) and 2 snippets of the freeswitch.log below.

Does anyone have an alternative?

Thanks, Birgit


Current code:

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (uuid)
{
var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
log("customer services answered: " + ready);
if (ready == true)
{
// The customer services call has been answered
argument = sSession.uuid + " " + uuid;
var res = apiExecute("uuid_bridge", argument);
log("after apiExecute uuid_bridge: " + res);
}
}
}

When I set argument as:
argument = sSession.uuid + " " + uuid;

I see the following in the freeswitch log:

(
sofia/external/0663: is the 'new' customer services call,
sofia/external/0662: is the call in the conference
)

2008-10-23 11:27:05 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[23638bbc-a0ed-11dd-843a-d9638db44114]
2008-10-23 11:27:05 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:27:08 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log() after
apiExecute uuid_bridge: +OK 20f309de-a0ed-11dd-843a-d9638db44114

2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [INFO] dispatcher_general.js:70 console_log() after
cSession in conf
2008-10-23 11:27:08 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 6 (sofia/external/0663) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 5 (sofia/external/0662) Ended
2008-10-23 11:27:08 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]



When I set argument as:
argument = uuid + " " + sSession.uuid;


I see the following in the freeswitch log:

2008-10-23 11:35:00 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[3ea7fdd0-a0ee-11dd-843a-d9638db44114]
2008-10-23 11:35:00 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 11:35:03 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log()
customer services answered: true
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
apiExecute uuid_bridge: +OK 3ea7fdd0-a0ee-11dd-843a-d9638db44114

2008-10-23 11:35:03 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 11:35:03 [NOTICE] switch_ivr_bridge.c:484
uuid_bridge_on_soft_execute() Hangup sofia/external/0662
[CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]
2008-10-23 11:42:21 [INFO] dispatcher_general.js:70 console_log()
consumer consumer_hungup(): cSession hangup HOOK, name:
sofia/external/0662, uuid: 42e859d4-a0ef-11dd-843a-d9638db44114, state:
CS_HANGUP, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
apiExecute conference:
2008-10-23 11:35:03 [INFO] dispatcher_general.js:70 console_log() after
cSession in conf
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 8 (sofia/external/0663) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 7 (sofia/external/0662) Ended
2008-10-23 11:35:03 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]



On 22/10/08 18:54, Anthony Minessale wrote:
Quote:
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.


--
-- Birgit Arkesteijn, birgit@westhawk.co.uk (birgit@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@lists.freeswitch.org (Freeswitch-users@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@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Thu Oct 23, 2008 9:08 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi Anthony,

No, I didn't even think of trying it, so sure was I that it possibly
couldn't be this simple. Smile 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. Sad

The debug on freeswitch.log is rather long, but in case it helps, I
added it below.

Thanks, Birgit



2008-10-23 14:38:44 [INFO] dispatcher_general.js:76 console_log() create
new consumer session object: e8741150-a107-11dd-9827-8999dffafa32
2008-10-23 14:38:44 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663
[e9397f30-a107-11dd-9827-8999dffafa32]
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:1870 sofia_outgoing_channel()
sofia/external/0663 State Change CS_NEW -> CS_INIT
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_INIT
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:415
switch_core_session_run() (sofia/external/0663) State INIT
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:80 sofia_on_init()
sofia/external/0663 SOFIA INIT
2008-10-23 14:38:44 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 9 (sofia/external/0662) Ended
2008-10-23 14:38:44 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:44 [DEBUG] switch_core_io.c:365
switch_core_session_read_frame() Engaging Read Buffer at 320 bytes
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0662) State CONSUME_MEDIA
going to sleep
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change
CS_SOFT_EXECUTE
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:329 sofia_on_soft_execute()
SOFIA TRANSMIT
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:171
switch_core_standard_on_soft_execute() Standard TRANSMIT
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE going
to sleep
2008-10-23 14:38:44 [DEBUG] sofia_glue.c:459
sofia_glue_ext_address_lookup() Stun Success [192.67.4.56]:[19904]
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:107 sofia_on_init()
sofia/external/0663 State Change CS_INIT -> CS_ROUTING
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:415
switch_core_session_run() (sofia/external/0663) State INIT going to sleep
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change
CS_ROUTING
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:420
switch_core_session_run() (sofia/external/0663) State ROUTING
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:119 sofia_on_routing()
sofia/external/0663 SOFIA ROUTING
2008-10-23 14:38:44 [DEBUG] switch_ivr_originate.c:57
originate_on_routing() sofia/external/0663 State Change CS_ROUTING ->
CS_CONSUME_MEDIA
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:420
switch_core_session_run() (sofia/external/0663) State ROUTING going to sleep
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change
CS_CONSUME_MEDIA
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_i_state] status [0][INVITE sent] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [calling]
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_r_invite] status [407][Proxy Authentication Required] session:
sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia_reg.c:946
sofia_reg_handle_sip_r_challenge() Authenticating 'FreeSWITCH' with
'Digest:"westhawk.co.uk":apso:doneright'.
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_i_state] status [0][INVITE sent] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [calling]
2008-10-23 14:38:44 [DEBUG] switch_ivr_originate.c:1059
switch_ivr_originate() Raw Codec Activation Success L16@8000hz 1 channel
20ms
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_r_invite] status [180][Ringing] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_i_state] status [180][Ringing] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [proceeding]
2008-10-23 14:38:44 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:47 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [ready]
2008-10-23 14:38:47 [DEBUG] sofia.c:1752 sofia_handle_sip_i_state()
Remote SDP:
v=0
o=root 17317 17317 IN IP4 192.67.4.83
s=session
c=IN IP4 192.67.4.83
t=0 0
m=audio 19446 RTP/AVP 8 0 3 10 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:10 L16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -

2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
Audio Codec Compare [PCMA:8:8000]/[L16:10:8000]
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
Audio Codec Compare [PCMA:8:8000]/[PCMU:0:8000]
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
Audio Codec Compare [PCMA:8:8000]/[PCMA:8:8000]
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:1451
sofia_glue_tech_set_codec() Set Codec sofia/external/0663 PCMA/8000 20
ms 160 samples
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2123 sofia_glue_negotiate_sdp()
Set 2833 dtmf payload to 101
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:1651 sofia_glue_activate_rtp()
AUDIO RTP [sofia/external/0663] 192.67.4.56 port 19904 -> 192.67.4.83
port 19446 codec: 8 ms: 20
2008-10-23 14:38:47 [DEBUG] switch_rtp.c:738 switch_rtp_create()
Starting timer [soft] 160 bytes per 20000ms
2008-10-23 14:38:47 [DEBUG] switch_channel.c:1540
switch_channel_perform_mark_answered() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:47 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 14:38:47 [DEBUG] switch_ivr_originate.c:1322
switch_ivr_originate() Originate Resulted in Success: [sofia/external/0663]
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:47 [DEBUG] switch_ivr_bridge.c:759
switch_ivr_multi_threaded_bridge() sofia/external/0663 State Change
CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
going to sleep
2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change
CS_EXCHANGE_MEDIA
2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:433
switch_core_session_run() (sofia/external/0663) State EXCHANGE_MEDIA
2008-10-23 14:38:47 [DEBUG] mod_sofia.c:323 sofia_on_exchange_media()
SOFIA LOOPBACK
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:47 [DEBUG] switch_core_io.c:365
switch_core_session_read_frame() Engaging Read Buffer at 320 bytes
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] mod_conference.c:1997
conference_loop_output() Channel leaving conference, cause: NONE
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:49 [INFO] dispatcher_general.js:76 console_log() after
cSession in conf
2008-10-23 14:38:49 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
2008-10-23 14:38:49 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0662 [KILL]
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:49 [DEBUG] mod_conference.c:1190
conference_thread_run() Write Lock ON
2008-10-23 14:38:49 [DEBUG] mod_conference.c:1193
conference_thread_run() Write Lock OFF
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:281
audio_bridge_thread() read: sofia/external/0662 Bad Frame.... Bubye!
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:350
audio_bridge_thread() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:353
audio_bridge_thread() BRIDGE THREAD DONE [sofia/external/0662]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:765
switch_ivr_multi_threaded_bridge() sofia/external/0663 State Change
CS_EXCHANGE_MEDIA -> CS_RESET
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_HANGUP
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP
2008-10-23 14:38:49 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0662 hanging up, cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0662
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0662,
cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP going to sleep
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 11 (sofia/external/0662) Locked,
Waiting on external entities
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:350
audio_bridge_thread() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:353
audio_bridge_thread() BRIDGE THREAD DONE [sofia/external/0663]
2008-10-23 14:38:49 [NOTICE] switch_ivr_bridge.c:382
audio_bridge_on_exchange_media() Hangup sofia/external/0663 [CS_RESET]
[NORMAL_CLEARING]
2008-10-23 14:38:49 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0663 [KILL]
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:433
switch_core_session_run() (sofia/external/0663) State EXCHANGE_MEDIA
going to sleep
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_HANGUP
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP
2008-10-23 14:38:49 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0663 hanging up, cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0663
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 11 (sofia/external/0662) Ended
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0663,
cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP going to sleep
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 12 (sofia/external/0663) Locked,
Waiting on external entities
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 12 (sofia/external/0663) Ended
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]


On 23/10/08 14:09, Anthony Minessale wrote:
Quote:
Did you ever try it =D
because yes that should work. Constructor takes either a uuid string or
a originate string.



On Thu, Oct 23, 2008 at 6:02 AM, Birgit Arkesteijn
<birgit@westhawk.co.uk <mailto:birgit@westhawk.co.uk>> wrote:

Hi,

Just a thought ... is there a way in javascript to (re)create a session
object given an existing uuid?

If that was the case, I could do something like:
var session = new Session (uuid);
session.bridge(customer_service_url);

If that's not possible, I appreciate any thought about my current setup.

Thanks, Birgit


--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Oct 23, 2008 9:46 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

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@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote:
Hi Anthony,

No, I didn't even think of trying it, so sure was I that it possibly
couldn't be this simple. Smile 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. Sad

The debug on freeswitch.log is rather long, but in case it helps, I
added it below.

Thanks, Birgit



2008-10-23 14:38:44 [INFO] dispatcher_general.js:76 console_log() create
new consumer session object: e8741150-a107-11dd-9827-8999dffafa32
2008-10-23 14:38:44 [NOTICE] switch_channel.c:534
switch_channel_set_name() New Channel sofia/external/0663

[e9397f30-a107-11dd-9827-8999dffafa32]
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:1870 sofia_outgoing_channel()
sofia/external/0663 State Change CS_NEW -> CS_INIT
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]

2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_INIT
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:415
switch_core_session_run() (sofia/external/0663) State INIT
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:80 sofia_on_init()
sofia/external/0663 SOFIA INIT
2008-10-23 14:38:44 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 9 (sofia/external/0662) Ended

2008-10-23 14:38:44 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]

2008-10-23 14:38:44 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]

2008-10-23 14:38:44 [DEBUG] switch_core_io.c:365
switch_core_session_read_frame() Engaging Read Buffer at 320 bytes
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0662) State CONSUME_MEDIA
going to sleep
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change
CS_SOFT_EXECUTE

2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE

2008-10-23 14:38:44 [DEBUG] mod_sofia.c:329 sofia_on_soft_execute()
SOFIA TRANSMIT
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:171
switch_core_standard_on_soft_execute() Standard TRANSMIT
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE going
to sleep

2008-10-23 14:38:44 [DEBUG] sofia_glue.c:459
sofia_glue_ext_address_lookup() Stun Success [192.67.4.56]:[19904]
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:107 sofia_on_init()
sofia/external/0663 State Change CS_INIT -> CS_ROUTING
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]

2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:415
switch_core_session_run() (sofia/external/0663) State INIT going to sleep
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change

CS_ROUTING
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:420
switch_core_session_run() (sofia/external/0663) State ROUTING
2008-10-23 14:38:44 [DEBUG] mod_sofia.c:119 sofia_on_routing()
sofia/external/0663 SOFIA ROUTING
2008-10-23 14:38:44 [DEBUG] switch_ivr_originate.c:57
originate_on_routing() sofia/external/0663 State Change CS_ROUTING ->
CS_CONSUME_MEDIA
2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]

2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:420
switch_core_session_run() (sofia/external/0663) State ROUTING going to sleep
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change

CS_CONSUME_MEDIA
2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA

2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_i_state] status [0][INVITE sent] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [calling]
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_r_invite] status [407][Proxy Authentication Required] session:
sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia_reg.c:946
sofia_reg_handle_sip_r_challenge() Authenticating 'FreeSWITCH' with
'Digest:"westhawk.co.uk":apso:doneright'.
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_i_state] status [0][INVITE sent] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [calling]
2008-10-23 14:38:44 [DEBUG] switch_ivr_originate.c:1059
switch_ivr_originate() Raw Codec Activation Success L16@8000hz 1 channel
20ms
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_r_invite] status [180][Ringing] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
[nua_i_state] status [180][Ringing] session: sofia/external/0663
2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [proceeding]
2008-10-23 14:38:44 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
Ring-Ready sofia/external/0663!

2008-10-23 14:38:44 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]

2008-10-23 14:38:47 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
Channel sofia/external/0663 entering state [ready]
2008-10-23 14:38:47 [DEBUG] sofia.c:1752 sofia_handle_sip_i_state()
Remote SDP:
v=0
o=root 17317 17317 IN IP4 192.67.4.83
s=session
c=IN IP4 192.67.4.83
t=0 0
m=audio 19446 RTP/AVP 8 0 3 10 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:10 L16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -

2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
Audio Codec Compare [PCMA:8:8000]/[L16:10:8000]
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
Audio Codec Compare [PCMA:8:8000]/[PCMU:0:8000]
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
Audio Codec Compare [PCMA:8:8000]/[PCMA:8:8000]
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:1451
sofia_glue_tech_set_codec() Set Codec sofia/external/0663 PCMA/8000 20
ms 160 samples
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2123 sofia_glue_negotiate_sdp()
Set 2833 dtmf payload to 101
2008-10-23 14:38:47 [DEBUG] sofia_glue.c:1651 sofia_glue_activate_rtp()
AUDIO RTP [sofia/external/0663] 192.67.4.56 port 19904 -> 192.67.4.83
port 19446 codec: 8 ms: 20
2008-10-23 14:38:47 [DEBUG] switch_rtp.c:738 switch_rtp_create()
Starting timer [soft] 160 bytes per 20000ms
2008-10-23 14:38:47 [DEBUG] switch_channel.c:1540
switch_channel_perform_mark_answered() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:47 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered

2008-10-23 14:38:47 [DEBUG] switch_ivr_originate.c:1322
switch_ivr_originate() Originate Resulted in Success: [sofia/external/0663]
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]

2008-10-23 14:38:47 [DEBUG] switch_ivr_bridge.c:759
switch_ivr_multi_threaded_bridge() sofia/external/0663 State Change
CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]

2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
going to sleep

2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change

CS_EXCHANGE_MEDIA
2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:433
switch_core_session_run() (sofia/external/0663) State EXCHANGE_MEDIA
2008-10-23 14:38:47 [DEBUG] mod_sofia.c:323 sofia_on_exchange_media()
SOFIA LOOPBACK
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]

2008-10-23 14:38:47 [DEBUG] switch_core_io.c:365
switch_core_session_read_frame() Engaging Read Buffer at 320 bytes
2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] mod_conference.c:1997
conference_loop_output() Channel leaving conference, cause: NONE

2008-10-23 14:38:49 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]

2008-10-23 14:38:49 [INFO] dispatcher_general.js:76 console_log() after
cSession in conf
2008-10-23 14:38:49 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
2008-10-23 14:38:49 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0662 [KILL]

2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]

2008-10-23 14:38:49 [DEBUG] mod_conference.c:1190
conference_thread_run() Write Lock ON

2008-10-23 14:38:49 [DEBUG] mod_conference.c:1193
conference_thread_run() Write Lock OFF

2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:281
audio_bridge_thread() read: sofia/external/0662 Bad Frame.... Bubye!
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:350
audio_bridge_thread() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:353
audio_bridge_thread() BRIDGE THREAD DONE [sofia/external/0662]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:765
switch_ivr_multi_threaded_bridge() sofia/external/0663 State Change
CS_EXCHANGE_MEDIA -> CS_RESET
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]

2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_HANGUP
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP

2008-10-23 14:38:49 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0662 hanging up, cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0662

2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0662,

cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP going to sleep

2008-10-23 14:38:49 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 11 (sofia/external/0662) Locked,
Waiting on external entities
2008-10-23 14:38:49 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:350
audio_bridge_thread() Kill sofia/external/0662 [BREAK]
2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:353
audio_bridge_thread() BRIDGE THREAD DONE [sofia/external/0663]
2008-10-23 14:38:49 [NOTICE] switch_ivr_bridge.c:382
audio_bridge_on_exchange_media() Hangup sofia/external/0663 [CS_RESET]
[NORMAL_CLEARING]
2008-10-23 14:38:49 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0663 [KILL]

2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]

2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:433
switch_core_session_run() (sofia/external/0663) State EXCHANGE_MEDIA
going to sleep
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_HANGUP
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP

2008-10-23 14:38:49 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0663 hanging up, cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0663
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 11 (sofia/external/0662) Ended
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]

2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0663,

cause: NORMAL_CLEARING
2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP going to sleep

2008-10-23 14:38:49 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 12 (sofia/external/0663) Locked,
Waiting on external entities
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 12 (sofia/external/0663) Ended
2008-10-23 14:38:49 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]



On 23/10/08 14:09, Anthony Minessale wrote:
Quote:
Did you ever try it =D
because yes that should work. Constructor takes either a uuid string or
a originate string.



On Thu, Oct 23, 2008 at 6:02 AM, Birgit Arkesteijn

Quote:
<birgit@westhawk.co.uk (birgit@westhawk.co.uk) <mailto:birgit@westhawk.co.uk (birgit@westhawk.co.uk)>> wrote:

Hi,

Just a thought ... is there a way in javascript to (re)create a session
object given an existing uuid?

If that was the case, I could do something like:
var session = new Session (uuid);
session.bridge(customer_service_url);

If that's not possible, I appreciate any thought about my current setup.

Thanks, Birgit



--

-- Birgit Arkesteijn, birgit@westhawk.co.uk (birgit@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@lists.freeswitch.org (Freeswitch-users@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@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Thu Oct 23, 2008 10:44 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

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@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@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:
Quote:
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@westhawk.co.uk <mailto:birgit@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. Smile 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. Sad

Thanks, Birgit

--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mike at jerris.com
Guest





PostPosted: Thu Oct 23, 2008 11:50 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

On Oct 23, 2008, at 11:23 AM, Birgit Arkesteijn wrote:

Quote:
Hi Anthony,

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

revision 8901 is from july 7 of this year. I would say you would have
to update to trunk and try this again to be sure this is not a bug
that has been fixed in the last 3 months.

Mike

Quote:


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?



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Thu Oct 23, 2008 12:03 pm    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi,

I'm running 'make current' as I type and will get back to you to report
if the problem is solved in version 596:10131 .

Thanks, Birgit

On 23/10/08 17:36, Michael Jerris wrote:
Quote:
On Oct 23, 2008, at 11:23 AM, Birgit Arkesteijn wrote:

Quote:
Hi Anthony,

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

revision 8901 is from july 7 of this year. I would say you would have
to update to trunk and try this again to be sure this is not a bug
that has been fixed in the last 3 months.

Mike

Quote:

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?


--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Thu Oct 23, 2008 12:25 pm    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi,

Rebuild went quicker than I thought.
Unfortunately the problem is still there, i.e. two channels and one
conference call, where 0662 is in both.

freeswitch@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
992057f4-a124-11dd-bc6b-8f534faa1be0,2008-10-23
18:04:05,1224781445,sofia/external/0662,CS_SOFT_EXECUTE,FreeSWITCH,0000000000,,0662,bridge,sofia/gateway/doneright/0663,,default,PCMA,8000,PCMA,8000
99f565b6-a124-11dd-bc6b-8f534faa1be0,2008-10-23
18:04:06,1224781446,sofia/external/0663,CS_EXCHANGE_MEDIA,FreeSWITCH,0000000000,,0663,,,,default,PCMA,8000,PCMA,8000

2 total.


freeswitch@apso> conference list
API CALL [conference(list)] output:
Conference 25 (1 member)
3;sofia/external/0662;992057f4-a124-11dd-bc6b-8f534faa1be0;FreeSWITCH;0000000000;hear|speak|talking|floor;0;0;300


Any ideas?

Thanks, Birgit


On 23/10/08 17:49, Birgit Arkesteijn wrote:
Quote:
Hi,

I'm running 'make current' as I type and will get back to you to report
if the problem is solved in version 596:10131 .

Thanks, Birgit

On 23/10/08 17:36, Michael Jerris wrote:
Quote:
On Oct 23, 2008, at 11:23 AM, Birgit Arkesteijn wrote:

Quote:
Hi Anthony,

Well, that definitely improved the situation, thanks!
I'm running 498:8901, installed on 2008-10-08.
revision 8901 is from july 7 of this year. I would say you would have
to update to trunk and try this again to be sure this is not a bug
that has been fixed in the last 3 months.

Mike

Quote:
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?



--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Oct 23, 2008 12:57 pm    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

what are you doing again?
I think I lost track?


On Thu, Oct 23, 2008 at 12:09 PM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote:
Hi,

Rebuild went quicker than I thought.
Unfortunately the problem is still there, i.e. two channels and one
conference call, where 0662 is in both.

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

992057f4-a124-11dd-bc6b-8f534faa1be0,2008-10-23
18:04:05,1224781445,sofia/external/0662,CS_SOFT_EXECUTE,FreeSWITCH,0000000000,,0662,bridge,sofia/gateway/doneright/0663,,default,PCMA,8000,PCMA,8000
99f565b6-a124-11dd-bc6b-8f534faa1be0,2008-10-23
18:04:06,1224781446,sofia/external/0663,CS_EXCHANGE_MEDIA,FreeSWITCH,0000000000,,0663,,,,default,PCMA,8000,PCMA,8000

2 total.


freeswitch@apso> conference list
API CALL [conference(list)] output:
Conference 25 (1 member)

3;sofia/external/0662;992057f4-a124-11dd-bc6b-8f534faa1be0;FreeSWITCH;0000000000;hear|speak|talking|floor;0;0;300


Any ideas?

Thanks, Birgit



On 23/10/08 17:49, Birgit Arkesteijn wrote:
Quote:
Hi,

I'm running 'make current' as I type and will get back to you to report
if the problem is solved in version 596:10131 .

Thanks, Birgit

On 23/10/08 17:36, Michael Jerris wrote:
Quote:
On Oct 23, 2008, at 11:23 AM, Birgit Arkesteijn wrote:

Quote:
Hi Anthony,

Well, that definitely improved the situation, thanks!
I'm running 498:8901, installed on 2008-10-08.
revision 8901 is from july 7 of this year. I would say you would have
to update to trunk and try this again to be sure this is not a bug
that has been fixed in the last 3 months.

Mike

Quote:
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?



--
-- Birgit Arkesteijn, birgit@westhawk.co.uk (birgit@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@lists.freeswitch.org (Freeswitch-users@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@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
birgit at westhawk.co.uk
Guest





PostPosted: Mon Oct 27, 2008 5:59 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi,

Sorry for the confusion ...

The project in general: our service is to connect a consumer with a
number of merchants, one after the other, to discuss potential work.
When it's not possible to reach any merchants, the consumer is connected
to a customer service representative.

This is implemented by first dropping the consumer into a conference
call, followed the first merchant. When the merchant hangs up, we try to
connect the next merchant.

In order to connect the consumer to the customer service representative,
the consumer should be bridged out off the conference call to the
customer service representative. The reason to leave the conference call
is that the customer service person should be able to transfer the
consumer manually.

I'm using Javascript to implement this & I'm currently stuck on the last
step. I'm running FreeSWITCH version 596:10131.
Here is the function for this particular step:

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
// uuid: uuid of the consumer
// customer_service_url: end point / gateway to the customer service

if (member_id && uuid)
{
log("create new consumer session object: " + uuid);
var cSession = new Session(uuid);
cSession.setAutoHangup(false);
cSession.execute("bridge", customer_service_url);
}
}

My problem:
The two calls are bridged, however the consumer remains in the
conference call. Since the consumer was alone in the conference, the
hold music keeps playing.

My understanding was the bridging should move the consumer out off the
conference call. Did I misunderstand?

I tried to 'kick' the consumer out off the conf call first, but that
results in a hangup.

Thanks, Birgit


On 23/10/08 18:34, Anthony Minessale wrote:
Quote:
what are you doing again?
I think I lost track?


On Thu, Oct 23, 2008 at 12:09 PM, Birgit Arkesteijn
<birgit@westhawk.co.uk <mailto:birgit@westhawk.co.uk>> wrote:

Hi,

Unfortunately the problem is still there, i.e. two channels and one
conference call, where 0662 is in both.

freeswitch@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
992057f4-a124-11dd-bc6b-8f534faa1be0,2008-10-23
18:04:05,1224781445,sofia/external/0662,CS_SOFT_EXECUTE,FreeSWITCH,0000000000,,0662,bridge,sofia/gateway/doneright/0663,,default,PCMA,8000,PCMA,8000
99f565b6-a124-11dd-bc6b-8f534faa1be0,2008-10-23
18:04:06,1224781446,sofia/external/0663,CS_EXCHANGE_MEDIA,FreeSWITCH,0000000000,,0663,,,,default,PCMA,8000,PCMA,8000

2 total.


freeswitch@apso> conference list
API CALL [conference(list)] output:
Conference 25 (1 member)
3;sofia/external/0662;992057f4-a124-11dd-bc6b-8f534faa1be0;FreeSWITCH;0000000000;hear|speak|talking|floor;0;0;300


Any ideas?

Thanks, Birgit


--
-- Birgit Arkesteijn, birgit@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services