<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 10, 2021 at 8:19 AM <<a href="mailto:asterisk@phreaknet.org">asterisk@phreaknet.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 8/10/2021 6:06 AM, Antony Stone wrote:<br>
> On Tuesday 10 August 2021 at 12:40:39, Dovid Bender wrote:<br>
><br>
>> Hi,<br>
>><br>
>> Is there any way in Asterisk to say an ordinal number?<br>
> My sounds directory (en_UK) contains files with names such as "first.gsm", <br>
> "second.gsm", "ninth.gsm" etc.<br>
><br>
> You could simply copy these to a subdirectory named "ordinal" into filenames <br>
> like "ordinal/1.gsm", "ordinal/2.gsm" etc (the same as you have already under <br>
> the "digits" subdirectory), and then use:<br>
><br>
> Playback(ordinal/${DIGIT})<br>
><br>
> The main limitation would be whether you want it to go beyond 20th (which is <br>
> far as those recordings go for me, except for the decades 30th, 40th...100th).<br>
The prompts for saying any ordinal number are all there: from 1 to<br>
999,999,999 - they just need to be spliced together properly. I am<br>
currently in the process of refactoring core "Say" code and could add a<br>
SayOrdinal() application while I'm at it. Would this meet your needs?<br>
NA<br>
<br></blockquote><div>Yes. That would do it. Come to think of it you should have that code already from the queue (where it announces what caller number you are).</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</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" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div></div>