Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] SayNumber while reading DTMF?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dougmig33 at yahoo.com
Guest





PostPosted: Tue Jun 10, 2008 12:03 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

I'm using the SayNumber() app to read out a users balance for an IVR.
Is there a way I can do that while waiting for DTMF input?

Obviously, read() and Background() don't correctly say a number in number format.

Thanks,
Doug.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080610/1f4258ce/attachment.htm
Back to top
jsmith at digium.com
Guest





PostPosted: Tue Jun 10, 2008 12:24 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

On Tue, 2008-06-10 at 10:03 -0700, Douglas Garstang wrote:
Quote:
I'm using the SayNumber() app to read out a users balance for an IVR.
Is there a way I can do that while waiting for DTMF input?

Obviously, read() and Background() don't correctly say a number in
number format.

I don't know of an easy way of doing this, short of writing a routing in
an AGI script to read numbers in the proper format.

I'd personally love to see SayDigitsBackground, SayNumberBackground,
SayAlphaBackground, etc. or even better, the ability to put numbers in
the filename parameters to the Read application, such as:

Read(some-variable,your-account-balance&is&%123%&dollars)

(Obviously I just chose the percent sign as an arbitrary delimiter
there, but you get the idea.)
--
Jared Smith
Training Manager
Digium, Inc.
Back to top
russell at digium.com
Guest





PostPosted: Tue Jun 10, 2008 12:28 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

Douglas Garstang wrote:
Quote:
I'm using the SayNumber() app to read out a users balance for an IVR.
Is there a way I can do that while waiting for DTMF input?

Obviously, read() and Background() don't correctly say a number in number format.

I do not know of a way to do that. It would be an extremely useful new
feature to have, but as fair as I know, is not currently available.

--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
Back to top
dougmig33 at yahoo.com
Guest





PostPosted: Tue Jun 10, 2008 1:09 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

Poo. Thanks Jared.
----- Original Message ----
From: Jared Smith <jsmith at digium.com>
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
Sent: Tuesday, June 10, 2008 10:24:46 AM
Subject: Re: [asterisk-users] SayNumber while reading DTMF?

On Tue, 2008-06-10 at 10:03 -0700, Douglas Garstang wrote:
Quote:
I'm using the SayNumber() app to read out a users balance for an IVR.
Is there a way I can do that while waiting for DTMF input?

Obviously, read() and Background() don't correctly say a number in
number format.

I don't know of an easy way of doing this, short of writing a routing in
an AGI script to read numbers in the proper format.

I'd personally love to see SayDigitsBackground, SayNumberBackground,
SayAlphaBackground, etc. or even better, the ability to put numbers in
the filename parameters to the Read application, such as:

Read(some-variable,your-account-balance&is&%123%&dollars)

(Obviously I just chose the percent sign as an arbitrary delimiter
there, but you get the idea.)


--
Jared Smith
Training Manager
Digium, Inc.


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080610/d264ddf7/attachment.htm
Back to top
jra at baylink.com
Guest





PostPosted: Tue Jun 10, 2008 1:10 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

On Tue, Jun 10, 2008 at 01:24:46PM -0400, Jared Smith wrote:
Quote:
(Obviously I just chose the percent sign as an arbitrary delimiter
there, but you get the idea.)

Oh, ghod; let's not get *that* argument started again...

Cheers,
-- jr 'Smile' a
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274

Those who cast the vote decide nothing.
Those who count the vote decide everything.
-- (Joseph Stalin)
Back to top
oej at edvina.net
Guest





PostPosted: Tue Jun 10, 2008 1:15 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

10 jun 2008 kl. 19.28 skrev Russell Bryant:

Quote:
Douglas Garstang wrote:
Quote:
I'm using the SayNumber() app to read out a users balance for an IVR.
Is there a way I can do that while waiting for DTMF input?

Obviously, read() and Background() don't correctly say a number in
number format.

I do not know of a way to do that. It would be an extremely useful
new
feature to have, but as fair as I know, is not currently available.

The ugly way is to use an externail app, like Sox, to concatenate the
audio files
and then use background().

/O
Back to top
Alex.Lopez at OpSys.com
Guest





PostPosted: Tue Jun 10, 2008 2:34 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

Run a script before the user gets to Background that cat the gsm files
together and then play that file.

IE

#!/bin/bash
BALANCE=$1
ACCOUNT=$2
SOUNDSDIR="/var/lib/asterisk/sounds"
ACCOUNTFILE="$SOUNDSDIR/accounts/$ACCOUNT.gsm"
#
#Some creative scripting will need to be done to be able to properly say
the #numbers. Ie One-Hundred Eighteen Dollars and Forty-Two Cents. This
script #will play One-One-Eight Dollars and Four-Two cents.
#
# Get the Dollars and Cents...
#
DOLLARS=`echo $BALANCE | cut -f1 -d.`
CENTS=`echo $BALANCE | cut -f2 -d.`
#
#
ELEMENTS=`echo $DOLLARS | wc -m`
for (( i=0;i<$ELEMENTS;i++)); do
cat $SOUNDSDIR/digits/${DOLLARS:$i:1}.gsm >> $ACCOUNTFILE
done

cat $$SOUNDSDIR/dollars.gsm >> $ACCOUNTFILE
cat $$SOUNDSDIR/and.gsm >> $ACCOUNTFILE

ELEMENTS=`echo $CENTS | wc -m`
for (( i=0;i<$ELEMENTS;i++)); do
cat $SOUNDSDIR/digits/${CENTS:$i:1}.gsm >> $ACCOUNTFILE
done

cat $$SOUNDSDIR/cents.gsm >> $ACCOUNTFILE

----------------------

Then just call the script before the Background with the argumants need
and then play back the generated file...

Alex

Quote:
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
bounces at lists.digium.com] On Behalf Of Russell Bryant
Sent: Tuesday, June 10, 2008 1:29 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] SayNumber while reading DTMF?

Douglas Garstang wrote:
Quote:
I'm using the SayNumber() app to read out a users balance for an
IVR.
Quote:
Quote:
Is there a way I can do that while waiting for DTMF input?

Obviously, read() and Background() don't correctly say a number in
number format.

I do not know of a way to do that. It would be an extremely useful
new
Quote:
feature to have, but as fair as I know, is not currently available.

--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
covici at ccs.covici.com
Guest





PostPosted: Tue Jun 10, 2008 3:12 pm    Post subject: [asterisk-users] SayNumber while reading DTMF? Reply with quote

Well, how about using an app like cepstral to record it as a wav and
using background or waitexten to play the wav -- the time lag should
never be noticed.

on Tuesday 06/10/2008 Russell Bryant(russell at digium.com) wrote
Quote:
Douglas Garstang wrote:
Quote:
I'm using the SayNumber() app to read out a users balance for an IVR.
Is there a way I can do that while waiting for DTMF input?

Obviously, read() and Background() don't correctly say a number in number format.

I do not know of a way to do that. It would be an extremely useful new
feature to have, but as fair as I know, is not currently available.

--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
covici at ccs.covici.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk 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