VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
nik.middleton at noble... Guest
|
Posted: Thu Feb 12, 2009 12:57 pm Post subject: [Freeswitch-users] FS equiv for waitforextension |
|
|
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, |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Feb 12, 2009 12:58 pm Post subject: [Freeswitch-users] FS equiv for waitforextension |
|
|
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:
Quote: | 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,
|
|
|
Back to top |
|
|
sicfslist at gmail.com Guest
|
Posted: Thu Feb 12, 2009 1:03 pm Post subject: [Freeswitch-users] FS equiv for waitforextension |
|
|
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 (nik.middleton@noblesolutions.co.uk)> wrote:
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Feb 12, 2009 1:12 pm Post subject: [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:
Quote: | 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 |
|
Back to top |
|
|
nik.middleton at noble... Guest
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Feb 12, 2009 1:18 pm Post subject: [Freeswitch-users] FS equiv for waitforextension |
|
|
On Thu, Feb 12, 2009 at 10:07 AM, Brian West <brian@freeswitch.org> wrote:
Quote: | 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 |
|
Back to top |
|
|
nik.middleton at noble... Guest
|
Posted: Thu Feb 12, 2009 5:59 pm Post subject: [Freeswitch-users] FS equiv for waitforextension |
|
|
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:
Quote: | 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
_______________________________________________
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 |
|
|
brian at freeswitch.org Guest
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Feb 12, 2009 6:02 pm Post subject: [Freeswitch-users] FS equiv for waitforextension |
|
|
On Thu, Feb 12, 2009 at 2:58 PM, Nik Middleton
<nik.middleton@noblesolutions.co.uk> wrote:
Quote: | 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
_______________________________________________
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 |
|
|
nik.middleton at noble... Guest
|
|
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
|