0

I am attempting to have asterisk readout a number using the SayNumber() command. However, if that number is a decimal, asterisk refuses to read it. Basically, asterisk will not read say 77.77 0r 83.23, but will read other whole number values like 20 or 60.Is there a function to read decimal numbers specifically?

PS. Or is there a way to truncate the decimal, leaving the whole number part only?

4

1 回答 1

0

您已将值拆分为 2 个值 AB,然后执行 SayNumber(A) +Streamfile(dot)+SayNumber B

或者您可以查看 a2billing.org 或任何其他开源计费代码,它已经具有说数字的功能。

其他选择 - 聘请开发人员为您的应用程序做。

对不起,星号是 pbx,它只有需要的功能。

于 2014-02-28T22:34:26.150 回答