<br><br><div class="gmail_quote">2009/12/3 Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
With a little familiarity of how SayNumber works, this isn't hard at all.<br>
All that Saynumbers does is parse out the number into 1, 2 or 3 digits and<br>
then plays files from /var/lib/asterisk/sounds/digits. In the example the<br>
OP posted, ${numMessages} had a value of 23, so 20.gsm and 3.gsm would be<br>
played back.</blockquote><div><br>Doesn't that depend on language specifics (though I agree that for most, using a single native language is enough) ?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
To use the read function's single file "capability", you could<br>
use sox to concatenate the files together, or just use the playback example<br>
below or use an AGI like this:<br>
exten => s,1,AGI(nomessages.agi|${nummessages})<br>
exten => s,n,Background(${PART1}&${PART2}&${PART3}&${PART4})<br>
exten => s,n,Read(faxno,beep,1,skip,1,5)<br></blockquote><div><br>You're right : it seems an interesting work around. <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Warren Selby<br>
Sent: Thursday, December 03, 2009 12:56 AM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
Subject: Re: [asterisk-users] Feature Request: "SayNumberFiles"<br>
<br>
Why not do something with Background()? i.e<br>
<br>
Playback(you-have)<br>
SayNumber(${numMessages})<br>
Playback(messages)<br>
Background(press-1-or-2)<br>
<br>
Then just be sure to record the audio files in the appropriate<br>
directory...<br>
<br>
<br>
<br>
<br>
Thanks,<br>
--Warren Selby<br>
<br>
On Dec 3, 2009, at 12:39 AM, Olivier <<a href="mailto:oza-4h07@myamail.com">oza-4h07@myamail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Currently, it seems impossible to use the output of SayNumber<br>
> application as an input to Read application.<br>
> So, if you want to develop an IVR with something like "You've got 23<br>
> messages. Type 1 to listen to the first one. Type 2 to leave", you<br>
> must parse this message into 3 pieces and want for the last one play<br>
> to start listening of user input :<br>
> Playback ( "You've got")<br>
> SayNumber (23)<br>
> Read ("messages. Type 1 to listen to the first one. Type 2 to<br>
> leave", ...)<br>
><br>
> Being to get the list of sound files that SayNumber would play would<br>
> be very convenient to build concatenate several one into one<br>
> temporary file. When played with Read app, user wouldn't have to<br>
> wait for the last part to type its answer :<br>
><br>
> myfilelist = SayNumberFiles(23)<br>
> tempfile=concat( "You've got", myfilelist, "messages. Type 1 to<br>
> listen to the first one. Type 2 to leave")<br>
> Read (tempfile, ...)<br>
><br>
> Did I miss a workaround ?<br>
> What would you say about this feature request ?<br>
><br>
> Regards<br>
> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>