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-boun...@lists.freeswitch.org
[mailto:freeswitch-users-boun...@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 <br...@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

_______________________________________________
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

Reply via email to