[asterisk-users] [1.4] Reading phone number the French way?

Richard Kenner kenner at gnat.com
Tue Mar 8 06:47:39 CST 2011


> exten => s,n(nbr2call),Read(NBR2CALL,please-type-number,10,,2,20)
> 
> For instance, a landline number in Paris like 01 42 92 81 00 is read
> "zero-one, forty-two, ninety-two, eighty-one, zero-zero", where I
> assume Americans would read all the digits individually ("zero, one,
> four, two, etc.")

Maybe something like:

exten => s,n,SayDigits(${NBR2CALL:0:1})
exten => s,n,SayNumber(${NBR2CALL:2:2})
exten => s,n,SayNumber(${NBR2CALL:4:2})
exten => s,n,SayNumber(${NBR2CALL:6:2})
exten => s,n,SayNumber(${NBR2CALL:8:2})

Or make changes in say.conf.



More information about the asterisk-users mailing list