【问题标题】:Does Freeswitch plays .AMR files?Freeswitch 是否播放 .AMR 文件?
【发布时间】:2021-03-09 10:18:10
【问题描述】:

我想在 freeswitch IVR 中播放 .amr 文件。可以吗?

在查看 freeswitch 论坛时,我发现 AMR 仅适用于 passthru 模式。什么是 passthru 模式?

有什么办法可以解决这个问题并在 freeswitch 中播放 AMR 文件吗?

请有任何建议。

06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:24.086462 [DEBUG] mod_sofia.c:898 Local SDP sofia/internal/1000@192.168.151.144:5070:
06e95939-04bc-4c9c-9b01-e955ddeefa00 v=0^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 o=FreeSWITCH 1615239368 1615239369 IN IP4 192.168.151.144^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 s=FreeSWITCH^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 c=IN IP4 192.168.151.144^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 t=0 0^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 m=audio 30016 RTP/AVP 0 101^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 a=rtpmap:0 PCMU/8000^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 a=rtpmap:101 telephone-event/8000^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 a=fmtp:101 0-16^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 a=ptime:20^M
06e95939-04bc-4c9c-9b01-e955ddeefa00 a=sendrecv^M
06e95939-04bc-4c9c-9b01-e955ddeefa00
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:24.086462 [NOTICE] mod_dptools.c:1406 Channel [sofia/internal/1000@192.168.151.144:5070] has been answere
d
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:24.086462 [DEBUG] switch_channel.c:3865 (sofia/internal/1000@192.168.151.144:5070) Callstate Change EARLY
 -> ACTIVE
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:24.086462 [DEBUG] sofia.c:7325 Channel sofia/internal/1000@192.168.151.144:5070 entering state [completed
][200]
06e95939-04bc-4c9c-9b01-e955ddeefa00 EXECUTE [depth=0] sofia/internal/1000@192.168.151.144:5070 sleep(1500)
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:24.166466 [DEBUG] switch_rtp.c:7722 Correct audio ip/port confirmed.
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:24.326464 [DEBUG] sofia.c:7325 Channel sofia/internal/1000@192.168.151.144:5070 entering state [ready][20
0]
06e95939-04bc-4c9c-9b01-e955ddeefa00 EXECUTE [depth=0] sofia/internal/1000@192.168.151.144:5070 playback(phrase:AMR_TESTING)
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:25.606464 [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en]
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:25.626462 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[ivr/ivr-record-prompt.AMR] (en:en)
2021-03-09 11:26:25.626462 [ERR] switch_core_file.c:307 Invalid file format [AMR] for [/usr/local/freeswitch/sounds/en/us/callie/ivr/ivr-record-prompt.AMR]!
06e95939-04bc-4c9c-9b01-e955ddeefa00 EXECUTE [depth=0] sofia/internal/1000@192.168.151.144:5070 hangup()
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:26.386463 [NOTICE] mod_dptools.c:1380 Hangup sofia/internal/1000@192.168.151.144:5070 [CS_EXECUTE] [NORMA
L_CLEARING]
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:26.386463 [DEBUG] switch_core_session.c:2905 sofia/internal/1000@192.168.151.144:5070 skip receive messag
e [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:26.386463 [DEBUG] switch_core_state_machine.c:651 (sofia/internal/1000@192.168.151.144:5070) State EXECUT
E going to sleep
06e95939-04bc-4c9c-9b01-e955ddeefa00 2021-03-09 11:26:26.386463 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/1000@192.168.151.144:5070) Running Stat
e Change CS_HANGUP (Cur 1 Tot 1)

【问题讨论】:

    标签: codec freeswitch amr


    【解决方案1】:

    不,根据源代码,没有模块支持扩展名为“.amr”的文件

    【讨论】:

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