Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] FS equiv for waitforextension


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
nik.middleton at noble...
Guest





PostPosted: Thu Feb 12, 2009 12:57 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with 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
brian at freeswitch.org
Guest





PostPosted: Thu Feb 12, 2009 12:58 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with quote

Dialplan or language method...btw if you're on IRC its better to ask there.. faster response... Wink


/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





PostPosted: Thu Feb 12, 2009 1:03 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with 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

On Thu, Feb 12, 2009 at 11:51 AM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> 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,


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





PostPosted: Thu Feb 12, 2009 1:12 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with 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.

/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





PostPosted: Thu Feb 12, 2009 1:18 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with quote

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:

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

_______________________________________________
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
msc at freeswitch.org
Guest





PostPosted: Thu Feb 12, 2009 1:18 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with quote

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





PostPosted: Thu Feb 12, 2009 5:59 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with 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"

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





PostPosted: Thu Feb 12, 2009 6:02 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with quote

YOU DO! Wink Its a user edited content portal.

/b

On Feb 12, 2009, at 4:58 PM, Nik Middleton wrote:

Quote:

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
Back to top
msc at freeswitch.org
Guest





PostPosted: Thu Feb 12, 2009 6:02 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with quote

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





PostPosted: Thu Feb 12, 2009 6:20 pm    Post subject: [Freeswitch-users] FS equiv for waitforextension Reply with quote

Done, that was easy, unlike FS Smile

-----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! Wink Its a user edited content portal.

/b

On Feb 12, 2009, at 4:58 PM, Nik Middleton wrote:

Quote:

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

_______________________________________________
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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services