Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Async JS functions?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
nicolas at medularis.com
Guest





PostPosted: Thu Jul 30, 2009 1:35 pm    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

Hi,

I have a small JS script that calls a phonenumber, when the call is answered it plays a wave file, then it calls a second phonenumber and bridges the calls. Is it possible to make wave-playing async, so that the second call is generated as soon as the first is picked up? Right now the wave file takes about 2 secs to play, but I need to extend that time, and I don't want to delay the second call.

Thanks!

Nicolas
Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Jul 30, 2009 1:42 pm    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

Hi Nicolas,

I believe you could bridge the call first, ignore early media, and then use uuid_displace...


there might be a better way tho, but this is the first that comes to my mind.


--matt

On Thu, Jul 30, 2009 at 11:30 AM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:
Hi,

I have a small JS script that calls a phonenumber, when the call is answered it plays a wave file, then it calls a second phonenumber and bridges the calls. Is it possible to make wave-playing async, so that the second call is generated as soon as the first is picked up? Right now the wave file takes about 2 secs to play, but I need to extend that time, and I don't want to delay the second call.

Thanks!

Nicolas

_______________________________________________
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

Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Jul 30, 2009 1:54 pm    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

if you want async use the socket app with ESL none of the scripts can do it.



On Thu, Jul 30, 2009 at 1:38 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Hi Nicolas,

I believe you could bridge the call first, ignore early media, and then use uuid_displace...


there might be a better way tho, but this is the first that comes to my mind.


--matt


On Thu, Jul 30, 2009 at 11:30 AM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:


Quote:

Hi,

I have a small JS script that calls a phonenumber, when the call is answered it plays a wave file, then it calls a second phonenumber and bridges the calls. Is it possible to make wave-playing async, so that the second call is generated as soon as the first is picked up? Right now the wave file takes about 2 secs to play, but I need to extend that time, and I don't want to delay the second call.

Thanks!

Nicolas



_______________________________________________
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





_______________________________________________
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/
Twitter: http://twitter.com/FreeSWITCH_wire

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
nicolas at medularis.com
Guest





PostPosted: Thu Jul 30, 2009 2:48 pm    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

Thanks, I'll try that.

How can I play a wav to an active call through the socket?


On Thu, Jul 30, 2009 at 2:44 PM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
if you want async use the socket app with ESL none of the scripts can do it.




On Thu, Jul 30, 2009 at 1:38 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Hi Nicolas,

I believe you could bridge the call first, ignore early media, and then use uuid_displace...


there might be a better way tho, but this is the first that comes to my mind.


--matt


On Thu, Jul 30, 2009 at 11:30 AM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:


Quote:

Hi,

I have a small JS script that calls a phonenumber, when the call is answered it plays a wave file, then it calls a second phonenumber and bridges the calls. Is it possible to make wave-playing async, so that the second call is generated as soon as the first is picked up? Right now the wave file takes about 2 secs to play, but I need to extend that time, and I don't want to delay the second call.

Thanks!

Nicolas



_______________________________________________
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





_______________________________________________
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/
Twitter: http://twitter.com/FreeSWITCH_wire

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

_______________________________________________
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

Back to top
msc at freeswitch.org
Guest





PostPosted: Thu Jul 30, 2009 3:36 pm    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

On Thu, Jul 30, 2009 at 12:36 PM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:
Thanks, I'll try that.

How can I play a wav to an active call through the socket?

When you are on a socket you can do just about anything you could do at the CLI. Look at all the uuid_XXX commands. Example: uuid_displace <uuid>

-MC
Back to top
nicolas at medularis.com
Guest





PostPosted: Thu Jul 30, 2009 5:35 pm    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

Matthew, Anthony and Michael, thank you very much, seems like you gave me exactly the info I needed!


On Thu, Jul 30, 2009 at 4:25 PM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote:


On Thu, Jul 30, 2009 at 12:36 PM, Nicolas Brenner <nicolas@medularis.com (nicolas@medularis.com)> wrote:
Quote:
Thanks, I'll try that.

How can I play a wav to an active call through the socket?


When you are on a socket you can do just about anything you could do at the CLI. Look at all the uuid_XXX commands. Example: uuid_displace <uuid>

-MC




_______________________________________________
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

Back to top
keithl at voxtelecom.c...
Guest





PostPosted: Fri Jul 31, 2009 9:08 am    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

Hi Nicolas,

I wonder if session.execute( "sched_broadcast"”, “+1 /path/file.wav aleg”) followed immediately by your ‘new Session’ and ‘bridge’ would do the trick ?
Not sure if/how “sched_broadcast” functions when the call has not yet been bridged though…

Let us know..

Best Regards

Keith


From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Nicolas Brenner
Sent: 30 July 2009 20:31
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] Async JS functions?


Hi,

I have a small JS script that calls a phonenumber, when the call is answered it plays a wave file, then it calls a second phonenumber and bridges the calls. Is it possible to make wave-playing async, so that the second call is generated as soon as the first is picked up? Right now the wave file takes about 2 secs to play, but I need to extend that time, and I don't want to delay the second call.

Thanks!

Nicolas
Back to top
nicolas at medularis.com
Guest





PostPosted: Fri Jul 31, 2009 1:10 pm    Post subject: [Freeswitch-users] Async JS functions? Reply with quote

Thank you Keith, I'll try that as well and let you know.

On Fri, Jul 31, 2009 at 9:51 AM, Keith Laaks <keithl@voxtelecom.co.za (keithl@voxtelecom.co.za)> wrote:
Quote:

Hi Nicolas,
 
I wonder if session.execute( "sched_broadcast"”, “+1 /path/file.wav aleg”) followed immediately by your ‘new Session’ and ‘bridge’ would do the trick ?
Not sure if/how “sched_broadcast” functions when the call has not yet been bridged though…
 
Let us know..
 
Best Regards
 
Keith
 
 
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Nicolas Brenner
Sent: 30 July 2009 20:31
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: [Freeswitch-users] Async JS functions?


 
Hi,

I have a small JS script that calls a phonenumber, when the call is answered it plays a wave file, then it calls a second phonenumber and bridges the calls. Is it possible to make wave-playing async, so that the second call is generated as soon as the first is picked up? Right now the wave file takes about 2 secs to play, but I need to extend that time, and I don't want to delay the second call.

Thanks!

Nicolas




_______________________________________________
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

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
Page 1 of 1

 
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