Freeswitch 1.8和tone_stream的播放

时间:2019-05-29 11:18:36

标签: voip freeswitch

我有一个以下形式的拨号计划示例:

<include>
    <context name="application">
        <extension name="play tone">
            <condition>
                <action application="log" data="INFO *****Playing tone1***** "/>
                <action application="answer"/>
                <action application="sleep" data="1000"/>
                <action application="playback" data="tone_stream://%(1850,4150,475,425);loops=-1" />
                <action application="hangup"/>
            </condition>
        </extension>
    </context>
</include>

此位适用于Freeswitch 1.4,但不适用于Freeswitch 1.8,我正在获得如下调试输出:

2019-05-29 11:14:59.971372 [DEBUG] sofia.c:7291 Channel sofia/sip-profile/447872019798@127.0.0.1:5062 entering state [ready][200]
EXECUTE sofia/sip-profile/447872019798@127.0.0.1:5062 sleep(1000)
EXECUTE sofia/sip-profile/447872019798@127.0.0.1:5062 playback(tone_stream://%(1850,4150,475,425);loops=-1)
2019-05-29 11:15:00.971418 [ERR] switch_core_file.c:304 Invalid file format [tone_stream] for [%(1850,4150,475,425);loops=-1]!
EXECUTE sofia/sip-profile/447872019798@127.0.0.1:5062 hangup()

我已经查阅过文档:

https://freeswitch.org/confluence/display/FREESWITCH/mod_tone_stream https://freeswitch.org/confluence/display/FREESWITCH/Tone_stream

不确定要怎么想,也不确定要从哪里寻找答案。是我的配置禁用了tone_streams吗?是新版本中的错误吗?

对于任何提示或彻底的解决方案,我将不胜感激。

0 个答案:

没有答案