2016-08-08 5 views
0

私はトーン検出にspandspを使用していますが、ブラジルの場合はspandsp.conf.xmlにSIT、REORDER、BUSYトーンを設定する際のガイダンスがあります。 HZにおけるフリーズスイッチspandsp.conf.xmlトーン設定

周波数(FREQ1/FREQ2)paramsが理解され、最小/最大 paramsはは音長であることです。ブラジルのこれらの値はどこにありますか?

これは、米国のサンプルです:

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

をしかし最小/最大値については全く言及されていない。ここで

<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規格に準拠したブラジルトーンです。 誰かがspandsp.conf.xmlまたはいくつかの洞察のためにブラジルのサンプル構成を提供できるかどうかを調べる。

+1

上記のサンプルは、<! - 北米 - >の場合、ブラジルは南アメリカの下に来ると思います。だから、もし南アメリカに来たら、私はブラジルに合うかもしれない。 https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/conf/vanilla/autoload_configs/spandsp.conf.xml –

+0

リンクは私が既に参照したサンプルファイルであり、南アメリカ、まさに米国、ドイツ、英国を含んでいません。 – spicyramen

答えて

0

spandsp.conf.xml のためのデバッグオプションをオンにした後、私はspandsp.conf.xmlで<descriptors debug-level="2">を使用してFreeswitchトーンをデバッグ

busy = 425/250,0/250 
congestion = 425/250,0/250,425/750,0/250 

indications.confアスタリスクブラジルのために以下の設定を見つけました使用fs_cli

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は周波数と最大は、最小値と最大値で設定トーン期間です。上の例の場合:

<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> 
関連する問題