HI, Is there an equivalent function in FS to waitforexten ? Closest I've seen is collectInput? Right now I'm using stream file, which is ok if they hit a digit before stream ends, but I want them to have a certain period after the file is played to hit a button. Regards,
Dialplan or language method...btw if you're on IRC its better to ask there.. faster response... ;) /b On Feb 12, 2009, at 11:51 AM, Nik Middleton wrote:
HI,
Is there an equivalent function in FS to waitforexten ? Closest I’ve seen is collectInput?
Right now I’m using stream file, which is ok if they hit a digit before stream ends, but I want them to have a certain period after the file is played to hit a button.
Regards,
Nik, I'm not sure if this is the right way ... but I use application="read" data="0 1 /path/silence.wav var 1000 # I'm sure there is a better way ... but this seems to work for me. SDR On Thu, Feb 12, 2009 at 11:51 AM, Nik Middleton < nik.middleton@noblesolutions.co.uk> wrote:
HI,
Is there an equivalent function in FS to waitforexten ? Closest I've seen is collectInput?
Right now I'm using stream file, which is ok if they hit a digit before stream ends, but I want them to have a certain period after the file is played to hit a button.
Regards,
_______________________________________________ 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
Dialplan isn't for writing IVR's... doing so is against the design of FreeSWITCH.. you can do simple things in dialplan but more complex stuff needs to be in a language. /b On Feb 12, 2009, at 12:01 PM, Shelby Ramsey wrote:
Nik,
I'm not sure if this is the right way ... but I use application="read" data="0 1 /path/silence.wav var 1000 #
I'm sure there is a better way ... but this seems to work for me.
SDR
On Thu, Feb 12, 2009 at 10:07 AM, Brian West <brian@freeswitch.org> wrote:
Dialplan isn't for writing IVR's... doing so is against the design of FreeSWITCH.. you can do simple things in dialplan but more complex stuff needs to be in a language.
Or create an IVR and send the call there from the dialplan. You can do IVRs in Lua/JS/Perl or in XML. -MC
Hi, Not sure who updates the WIKI, but it's wrong on collectinput for the example. In the call, dtmf needs quotes, ie "dtmf" Correction is session.collectInput( mycb, "dtmf", 8000 ); Without it you get [ERR] voice.js:70 mod_spidermonkey() ReferenceError: dtmf is not defined if ( session.ready( ) ) { session.answer( ); session.streamFile( "sounds/typeSomeDigits.wav" ); session.collectInput( mycb, dtmf, 8000 ); console_log( "info", "Got " + dtmf.digits + "\n" ); session.streamFile( "sounds/thanksBye.wav" ); session.hangup( ); } -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: 12 February 2009 18:15 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] FS equiv for waitforextension On Thu, Feb 12, 2009 at 10:07 AM, Brian West <brian@freeswitch.org> wrote:
Dialplan isn't for writing IVR's... doing so is against the design of FreeSWITCH.. you can do simple things in dialplan but more complex stuff needs to be in a language.
Or create an IVR and send the call there from the dialplan. You can do IVRs in Lua/JS/Perl or in XML. -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
Done, that was easy, unlike FS :) -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: 12 February 2009 23:01 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] FS equiv for waitforextension YOU DO! ;) Its a user edited content portal. /b On Feb 12, 2009, at 4:58 PM, Nik Middleton wrote:
Not sure who updates the WIKI, but it's wrong on collectinput for the example. In the call, dtmf needs quotes, ie "dtmf"
_______________________________________________ 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, Feb 12, 2009 at 2:58 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk> wrote:
Hi,
Not sure who updates the WIKI, but it's wrong on collectinput for the example. In the call, dtmf needs quotes, ie "dtmf"
Thanks for the heads up. Actually, YOU can update the wiki. If you want me to do so I will be happy to. -MC
Sorry, should have said this was in js Regards, -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: 12 February 2009 18:08 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] FS equiv for waitforextension Dialplan isn't for writing IVR's... doing so is against the design of FreeSWITCH.. you can do simple things in dialplan but more complex stuff needs to be in a language. /b On Feb 12, 2009, at 12:01 PM, Shelby Ramsey wrote:
Nik,
I'm not sure if this is the right way ... but I use application="read" data="0 1 /path/silence.wav var 1000 #
I'm sure there is a better way ... but this seems to work for me.
SDR
_______________________________________________ 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 (4)
-
Brian West
-
Michael Collins
-
Nik Middleton
-
Shelby Ramsey