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 Previous  1, 2
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
anthony.minessale at g...
Guest





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

try executing the api command uuid_park on the uuid before you make it into a js obj
that way it will exit the conference and be waiting in park for you to control it.


On Mon, Oct 27, 2008 at 5:47 AM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
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

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

Hi,


Quote:
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 (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 11:48 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi Anthony,

Thanks for your feedback.
Unfortunately the uuid_park doesn't remove the consumer out off from the
conference.

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (member_id && uuid)
{
var res = apiExecute("uuid_park", uuid);
log("after uuid_park: " + res);

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

If you want to run this scenario yourself(ves), I could email you my
three js files that run the whole process.

Thanks, Birgit

On 27/10/08 15:26, Anthony Minessale wrote:
Quote:
try executing the api command uuid_park on the uuid before you make it
into a js obj
that way it will exit the conference and be waiting in park for you to
control it.


On Mon, Oct 27, 2008 at 5:47 AM, Birgit Arkesteijn
<birgit@westhawk.co.uk <mailto:birgit@westhawk.co.uk>> wrote:

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


--
-- 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: Mon Oct 27, 2008 12:29 pm    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

try updating to latest and see if uuid_park works now.


On Mon, Oct 27, 2008 at 11:32 AM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote:
Hi Anthony,

Thanks for your feedback.
Unfortunately the uuid_park doesn't remove the consumer out off from the
conference.

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{

if (member_id && uuid)
{
var res = apiExecute("uuid_park", uuid);
log("after uuid_park: " + res);

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


If you want to run this scenario yourself(ves), I could email you my
three js files that run the whole process.

Thanks, Birgit

On 27/10/08 15:26, Anthony Minessale wrote:
Quote:
try executing the api command uuid_park on the uuid before you make it
into a js obj
that way it will exit the conference and be waiting in park for you to
control it.


On Mon, Oct 27, 2008 at 5:47 AM, Birgit Arkesteijn

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

Hi,



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




--

-- 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: Tue Oct 28, 2008 9:04 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi Anthony,

Sorry, but it still doesn't work in
FreeSWITCH Version 1.0.trunk (597:10176)

It actually makes it worse sometimes.
Maybe it's a timing issue, but one of two things happen:
1.
The same problem happens as before:
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.

or

2.
2008-10-28 13:42:56 [INFO] mod_dptools.c:1843 audio_bridge_function()
Originate Failed. Cause: ORIGINATOR_CANCEL

Thanks, Birgit

On 27/10/08 17:15, Anthony Minessale wrote:
Quote:
try updating to latest and see if uuid_park works now.


Quote:
On Mon, Oct 27, 2008 at 11:32 AM, Birgit Arkesteijn
<birgit@westhawk.co.uk <mailto:birgit@westhawk.co.uk>> wrote:

Hi Anthony,

Thanks for your feedback.
Unfortunately the uuid_park doesn't remove the consumer out off from the
conference.

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (member_id && uuid)
{
var res = apiExecute("uuid_park", uuid);
log("after uuid_park: " + res);

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

If you want to run this scenario yourself(ves), I could email you my
three js files that run the whole process.

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: Tue Oct 28, 2008 10:09 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

wait a minute,

Can't you just do:

var cSession = new Session(customer_service_url);
cSession.execute("intercept", uuid);

intercept will steal the call from whatever it's doing and bridge it.


On Tue, Oct 28, 2008 at 8:50 AM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote:
Hi Anthony,

Sorry, but it still doesn't work in
FreeSWITCH Version 1.0.trunk (597:10176)

It actually makes it worse sometimes.
Maybe it's a timing issue, but one of two things happen:
1.
The same problem happens as before:
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.


or

2.
2008-10-28 13:42:56 [INFO] mod_dptools.c:1843 audio_bridge_function()
Originate Failed. Cause: ORIGINATOR_CANCEL

Thanks, Birgit

On 27/10/08 17:15, Anthony Minessale wrote:
Quote:
try updating to latest and see if uuid_park works now.


Quote:
On Mon, Oct 27, 2008 at 11:32 AM, Birgit Arkesteijn

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


Quote:
Quote:
Hi Anthony,

Thanks for your feedback.
Unfortunately the uuid_park doesn't remove the consumer out off from the
conference.

function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (member_id && uuid)
{
var res = apiExecute("uuid_park", uuid);
log("after uuid_park: " + res);

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

If you want to run this scenario yourself(ves), I could email you my
three js files that run the whole process.

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: Tue Oct 28, 2008 10:55 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi Anthony,

Thanks again for your suggestion, unfortunately this doesn't do the
trick either.

The consumer (uuid) is indeed taking out of the conference call, but not
bridged to the customer_service_url.

I don't hear anything on the customer_service_url's phone. After a while
it gives me a ringing noise, the same noise as when you pick up the
phone before dialing. The number doesn't appear in the 'show channels'
command.

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
efd21ba4-a503-11dd-9791-fb4b4185c9cb,2008-10-28
15:20:21,1225207221,sofia/external/0662,CS_RESET,FreeSWITCH,0000000000,,0662,conference,25@default,,default,PCMA,8000,PCMA,8000

1 total.

freeswitch@apso> conference list
API CALL [conference(list)] output:
No active conferences.


Here is the changed function (to be sure):
function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (member_id && uuid)
{
var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
if (ready == true)
{
sSession.execute("intercept", uuid);
}
}
}

Thanks, Birgit


On 28/10/08 14:54, Anthony Minessale wrote:
Quote:
wait a minute,

Can't you just do:

var cSession = new Session(customer_service_url);
cSession.execute("intercept", uuid);

intercept will steal the call from whatever it's doing and bridge it.


On Tue, Oct 28, 2008 at 8:50 AM, Birgit Arkesteijn
<birgit@westhawk.co.uk <mailto:birgit@westhawk.co.uk>> wrote:

Hi Anthony,

Sorry, but it still doesn't work in
FreeSWITCH Version 1.0.trunk (597:10176)

It actually makes it worse sometimes.
Maybe it's a timing issue, but one of two things happen:
1.
The same problem happens as before:
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.

or

2.
2008-10-28 13:42:56 [INFO] mod_dptools.c:1843 audio_bridge_function()
Originate Failed. Cause: ORIGINATOR_CANCEL

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: Tue Oct 28, 2008 11:26 am    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

you might want to add {ignore_early_media=true} to the dial string
and also make sure it was properly setup by testing for
sSession.ready() before executing intercept but I know that would work I tested a similar situation in my box.

is the channel who is in the conference in there via a js also,
are you being sure to test for session.ready to release the channel from the script
when the system wants it back?

try it yourself

call the conference directly eg ext 3000 on defaults
note the uuid of that call as uuida

originate a channel into park
originate {ignore_early_media=true}/some/dial_string &park()
note that uuid as uuidb

try the cli command

uuid_transfer <uuidb> intercept:<uuida> inline

that's the same equivalent as what you are trying to do


On Tue, Oct 28, 2008 at 10:30 AM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote:
Hi Anthony,

Thanks again for your suggestion, unfortunately this doesn't do the
trick either.

The consumer (uuid) is indeed taking out of the conference call, but not
bridged to the customer_service_url.

I don't hear anything on the customer_service_url's phone. After a while
it gives me a ringing noise, the same noise as when you pick up the
phone before dialing. The number doesn't appear in the 'show channels'
command.

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

efd21ba4-a503-11dd-9791-fb4b4185c9cb,2008-10-28
15:20:21,1225207221,sofia/external/0662,CS_RESET,FreeSWITCH,0000000000,,0662,conference,25@default,,default,PCMA,8000,PCMA,8000

1 total.

freeswitch@apso> conference list
API CALL [conference(list)] output:

No active conferences.


Here is the changed function (to be sure):
function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (member_id && uuid)
{

var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
if (ready == true)
{

sSession.execute("intercept", uuid);
}
}
}

Thanks, Birgit


On 28/10/08 14:54, Anthony Minessale wrote:
Quote:
wait a minute,

Can't you just do:

var cSession = new Session(customer_service_url);
cSession.execute("intercept", uuid);

intercept will steal the call from whatever it's doing and bridge it.


On Tue, Oct 28, 2008 at 8:50 AM, Birgit Arkesteijn

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

Hi Anthony,


Quote:
Sorry, but it still doesn't work in
FreeSWITCH Version 1.0.trunk (597:10176)

It actually makes it worse sometimes.
Maybe it's a timing issue, but one of two things happen:
1.
The same problem happens as before:
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.

or

2.
2008-10-28 13:42:56 [INFO] mod_dptools.c:1843 audio_bridge_function()
Originate Failed. Cause: ORIGINATOR_CANCEL

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: Tue Oct 28, 2008 12:23 pm    Post subject: [Freeswitch-users] Take uuid out of conference and bridge Reply with quote

Hi Anthony,

Yes, it works now!!!

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

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

// conf_name: the name of the conference, for example '25'
// member_id: the member_id of the consumer in the conference
// uuid: the uuid of the consumer
// customer_service_url: the endpoint of the customer service department
function bridge_to_customer_services(conf_name, member_id, uuid,
customer_service_url)
{
if (member_id && uuid)
{
var sSession = new
Session("{ignore_early_media=true,originate_timeout=10}"
+ customer_service_url);
var ready = sSession.ready();
if (ready == true)
{
sSession.setAutoHangup(false);
sSession.execute("intercept", uuid);
}
else
{
// No customer services
// kick the member out off the conference and hangup.
kick_n_hangup_member(conf_name, member_id, uuid);
}
}
}


Thank you very, very much for your help!

Cheers, Birgit


On 28/10/08 16:12, Anthony Minessale wrote:
Quote:
you might want to add {ignore_early_media=true} to the dial string
and also make sure it was properly setup by testing for
sSession.ready() before executing intercept but I know that would work I
tested a similar situation in my box.

is the channel who is in the conference in there via a js also,
are you being sure to test for session.ready to release the channel from
the script
when the system wants it back?


--
-- Birgit Arkesteijn, birgit@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 Previous  1, 2
Page 2 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