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
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>wrote:
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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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> wrote:
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>wrote:
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 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
-- 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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
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> wrote:
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> wrote:
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>wrote:
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 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
-- 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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
On Thu, Jul 30, 2009 at 12:36 PM, Nicolas Brenner <nicolas@medularis.com>wrote:
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
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> wrote:
On Thu, Jul 30, 2009 at 12:36 PM, Nicolas Brenner <nicolas@medularis.com>wrote:
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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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
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>wrote:
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
_______________________________________________ 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
participants (5)
-
Anthony Minessale
-
Keith Laaks
-
Matthew Fong
-
Michael Collins
-
Nicolas Brenner