VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
nicolas at medularis.com Guest
|
Posted: Thu Jul 30, 2009 1:35 pm Post 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 |
|
|
mattdfong at gmail.com Guest
|
Posted: Thu Jul 30, 2009 1:42 pm Post subject: [Freeswitch-users] Async JS functions? |
|
|
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:
|
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Thu Jul 30, 2009 1:54 pm Post subject: [Freeswitch-users] Async JS functions? |
|
|
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:
--
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
|
Posted: Thu Jul 30, 2009 2:48 pm Post subject: [Freeswitch-users] Async JS functions? |
|
|
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:
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Jul 30, 2009 3:36 pm Post subject: [Freeswitch-users] Async JS functions? |
|
|
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
|
Posted: Thu Jul 30, 2009 5:35 pm Post subject: [Freeswitch-users] Async JS functions? |
|
|
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:
|
|
Back to top |
|
|
keithl at voxtelecom.c... Guest
|
Posted: Fri Jul 31, 2009 9:08 am Post subject: [Freeswitch-users] Async JS functions? |
|
|
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
|
Posted: Fri Jul 31, 2009 1:10 pm Post subject: [Freeswitch-users] Async JS functions? |
|
|
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:
|
|
Back to top |
|
|
|
|
|
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
|