【问题标题】:Freeswitch spandsp.conf.xml Tone settingsFreeswitch spandsp.conf.xml 音调设置
【发布时间】:2016-08-08 07:36:02
【问题描述】:

我正在使用 spandsp 进行音调检测,我正在为巴西寻找在 spandsp.conf.xml 中配置 SIT、REORDER 和 BUSY 音调的一些指导。

HZ 中的频率 (freq1/freq2) 参数是可以理解的,min/max 参数似乎 是音调持续时间。在哪里可以找到巴西的这些值?

这是美国样本:

<descriptor name="1">
       <tone name="CED_TONE">
         <element freq1="2100" freq2="0" min="700" max="0"/>
       </tone>
       <tone name="SIT">
         <element freq1="950" freq2="0" min="256" max="400"/>
         <element freq1="1400" freq2="0" min="256" max="400"/>
         <element freq1="1800" freq2="0" min="256" max="400"/>
       </tone>

       <tone name="RING_TONE" description="North America ring">
         <element freq1="440" freq2="480" min="1200" max="0"/>
       </tone>

       <tone name="REORDER_TONE">
         <element freq1="480" freq2="620" min="224" max="316"/>
         <element freq1="0" freq2="0" min="168" max="352"/>
         <element freq1="480" freq2="620" min="224" max="316"/>
       </tone>
       <tone name="BUSY_TONE">
         <element freq1="480" freq2="620" min="464" max="536"/>
         <element freq1="0" freq2="0" min="464" max="572"/>
         <element freq1="480" freq2="620" min="464" max="536"/>
       </tone>
     </descriptor>

以下是符合 ITU 标准的巴西音调:

http://www.itu.int/pub/T-SP-OB.781-2003

但没有提及 min/max 值。 看看是否有人可以为 spandsp.conf.xml 或一些见解提供巴西的示例配置。

【问题讨论】:

标签: sip freeswitch


【解决方案1】:

打开spandsp.conf.xml的调试选项后 我在 Asterisk indications.conf

中找到了针对巴西的以下设置
busy = 425/250,0/250
congestion = 425/250,0/250,425/750,0/250

使用 fs_clispandsp.conf.xml 中使用 &lt;descriptors debug-level="2"&gt; 调试 Freeswitch 音调:

2016-08-21 09:27:37.502533 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = 1, f2 = -1, duration = 240
2016-08-21 09:27:37.762531 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = -1, f2 = -1, duration = 256
2016-08-21 09:27:38.002616 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = 1, f2 = -1, duration = 272
2016-08-21 09:27:38.262532 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = -1, f2 = -1, duration = 240

f1f2 是频率,minma​​x 是可在 Min 和 Max 中配置的音调持续时间.对于上面的例子:

   <tone name="BUSY_TONE">
     <element freq1="425" freq2="0" min="224" max="240"/>
     <element freq1="0" freq2="0" min="240" max="256"/>
     <element freq1="425" freq2="0" min="240" max="272"/>
     <element freq1="0" freq2="0" min="224" max="240"/>
   </tone>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多