Hi,I want to play amr file in freeswitch IVR. But I get Invalid file format [amr] error.Any suggestion to solve this problem?freeswitch log-------------------2016-05-05 22:36:02.151586 [INFO] mod_dptools.c:1260 Sending early media2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:5282 Audio Codec Compare [AMR:120:8000:20:0]/[AMR:96:8000:20:12200]2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3190 Set Codec sofia/internal/1000@10.169.112.170 AMR/8000 20 ms 160 samples 12200 bits2016-05-05 22:36:02.151586 [DEBUG] switch_core_codec.c:111 sofia/internal/1000@10.169.112.170 Original read codec set to AMR:962016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:5451 Set 2833 dtmf send/recv payload to 1012016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event CODEC to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb72016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3449 AUDIO RTP [sofia/internal/1000@10.169.112.170] 10.169.112.170 port 22020 -> 192.168.0.174 port 4006 codec: 120 ms: 202016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event CODEC to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb72016-05-05 22:36:02.151586 [DEBUG] switch_rtp.c:2040 Starting timer [soft] 160 bytes per 20ms2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3716 Set 2833 dtmf send payload to 1012016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3722 Set 2833 dtmf receive payload to 1012016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3749 sofia/internal/1000@10.169.112.170 Set rtp dtmf delay to 402016-05-05 22:36:02.151586 [NOTICE] sofia_glue.c:4360 Pre-Answer sofia/internal/1000@10.169.112.170!2016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_PROGRESS_MEDIA to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb72016-05-05 22:36:02.151586 [DEBUG] switch_channel.c:3368 (sofia/internal/1000@10.169.112.170) Callstate Change RINGING -> EARLY2016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_CALLSTATE to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb72016-05-05 22:36:02.151586 [DEBUG] mod_sofia.c:2891 Ring SDP:v=0o=FreeSWITCH 1462490942 1462490943 IN IP4 10.169.112.170s=FreeSWITCHc=IN IP4 10.169.112.170t=0 0m=audio 22020 RTP/AVP 120 101a=rtpmap:120 AMR/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20a=sendrecv2016-05-05 22:36:02.151586 [DEBUG] switch_core_session.c:871 Send signal sofia/internal/1000@10.169.112.170 [BREAK]2016-05-05 22:36:02.711592 [DEBUG] switch_core_session.c:1151 Send signal sofia/internal/1000@10.169.112.170 [BREAK]2016-05-05 22:36:02.731593 [DEBUG] switch_ivr.c:614 sofia/internal/1000@10.169.112.170 Command Execute playback(abc_test/en/test.amr)EXECUTE sofia/internal/1000@10.169.112.170 playback(abc_test/en/test.amr)2016-05-05 22:36:02.731593 [DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_EXECUTE to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb72016-05-05 22:36:02.731593 [ERR] switch_core_file.c:150 Invalid file format [amr] for [/usr/local/abc/sounds/en/us/callie/abc_test/en/test.amr]!amr prompt details-------------------------AudioFormat : AMRFormat/Info : Adaptive Multi-RateFormat profile : Narrow bandDuration : 16s 140msBit rate mode : ConstantBit rate : 12.8 KbpsChannel(s) : 1 channelSampling rate : 8 000 HzBit depth : 13 bitsStream size : 25.2 KiB (100%)Thanks.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Brian West
brian@freeswitch.org

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here! | Reddit: /r/freeswitch
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest