Do you know if the failure was caused my user action (or lack of, ie
they didn't send digits), or a technical problem?

Cheers,
Kingsley.

On Fri, 2011-11-18 at 12:24 -0600, Danny Nicholas wrote:
> If you read the last line of the synopsis, it states that 
> "Read should disconnect if the function fails or errors out."
>  
> I'm using Read() in an IVR context where I read an account number, then a 
> password, then return information.  This usually works well to the tune of 
> 44K transactions a month, but I will have around 1 percent of my calls ask 
> for the account number and hang up the call because Read() failed and didn't 
> say anything.  Perfection doesn't seem necessary until somebody complains 
> because you don't have it.
> 
> -----Original Message-----
> From: asterisk-users-boun...@lists.digium.com 
> [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Kingsley Tart
> Sent: Friday, November 18, 2011 12:18 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Question about Read() application
> 
> What sort of "problem with Read()" are you expecting to encounter, and what 
> do you mean by "keep going"?
> 
> Cheers,
> Kingsley.
> 
> On Thu, 2011-11-17 at 10:10 -0600, Danny Nicholas wrote:
> > Hello again list,
> > 
> >                               Did the following: (on 1.4.42
> > installation)
> > 
> > asterisk -rx "core show application read"
> > 
> >  
> > 
> >   -= Info about application 'Read' =-
> > 
> >  
> > 
> > [Synopsis]
> > 
> > Read a variable
> > 
> >  
> > 
> > [Description]
> > 
> >   Read(variable[|filename][|maxdigits][|option][|attempts][|timeout])
> > 
> >  
> > 
> > Reads a #-terminated string of digits a certain number of times from 
> > the
> > 
> > user in to the given variable.
> > 
> >   filename   -- file to play before reading digits or tone with option
> > i
> > 
> >   maxdigits  -- maximum acceptable number of digits. Stops reading 
> > after
> > 
> >                 maxdigits have been entered (without requiring the 
> > user to
> > 
> >                 press the '#' key).
> > 
> >                 Defaults to 0 - no limit - wait for the user press the 
> > '#' key.
> > 
> >                 Any value below 0 means the same. Max accepted value 
> > is 255.
> > 
> >   option     -- options are 's' , 'i', 'n'
> > 
> >                 's' to return immediately if the line is not up,
> > 
> >                 'i' to play  filename as an indication tone from your 
> > indications.conf
> > 
> >                 'n' to read digits even if the line is not up.
> > 
> >   attempts   -- if greater than 1, that many attempts will be made in
> > the
> > 
> >                 event no data is entered.
> > 
> >   timeout    -- An integer number of seconds to wait for a digit
> > response. If greater
> > 
> >                 than 0, that value will override the default timeout.
> > 
> >  
> > 
> > Read should disconnect if the function fails or errors out.
> > 
> >  
> > 
> > I need for Asterisk to “keep going” if I have a problem with Read() or 
> > at least playback some kind of warning.  Any suggestions?
> > 
> > P.S.   The “Read should disconnect” line does not show up in my 10.0
> > install.
> > 
> >  
> > 
> > Thanks
> > 
> > Danny Nicholas
> > 
> >  
> > 
> > 
> > --
> > _____________________________________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 
> > New to Asterisk? Join us for a live introductory webinar every Thurs:
> >                http://www.asterisk.org/hello
> > 
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to 
> Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to