[Freeswitch-users] Invalid file format with Codec AMR

Pradeepa pradee at gmail.com
Fri May 6 22:58:50 MSD 2016


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 media
2016-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 at 10.169.112.170 AMR/8000 20 ms 160 samples 12200 bits
2016-05-05 22:36:02.151586 [DEBUG] switch_core_codec.c:111 sofia/internal/
1000 at 10.169.112.170 Original read codec set to AMR:96
2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:5451 Set 2833 dtmf
send/recv payload to 101
2016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event
CODEC to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb7
2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3449 AUDIO RTP
[sofia/internal/1000 at 10.169.112.170] 10.169.112.170 port 22020 ->
192.168.0.174 port 4006 codec: 120 ms: 20
2016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event
CODEC to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb7
2016-05-05 22:36:02.151586 [DEBUG] switch_rtp.c:2040 Starting timer [soft]
160 bytes per 20ms
2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3716 Set 2833 dtmf send
payload to 101
2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3722 Set 2833 dtmf receive
payload to 101
2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3749 sofia/internal/
1000 at 10.169.112.170 Set rtp dtmf delay to 40
2016-05-05 22:36:02.151586 [NOTICE] sofia_glue.c:4360 Pre-Answer
sofia/internal/1000 at 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-6b5931cb8fb7
2016-05-05 22:36:02.151586 [DEBUG] switch_channel.c:3368 (sofia/internal/
1000 at 10.169.112.170) Callstate Change RINGING -> EARLY
2016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event
CHANNEL_CALLSTATE to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb7
2016-05-05 22:36:02.151586 [DEBUG] mod_sofia.c:2891 Ring SDP:
v=0
o=FreeSWITCH 1462490942 1462490943 IN IP4 10.169.112.170
s=FreeSWITCH
c=IN IP4 10.169.112.170
t=0 0
m=audio 22020 RTP/AVP 120 101
a=rtpmap:120 AMR/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

2016-05-05 22:36:02.151586 [DEBUG] switch_core_session.c:871 Send signal
sofia/internal/1000 at 10.169.112.170 [BREAK]
2016-05-05 22:36:02.711592 [DEBUG] switch_core_session.c:1151 Send signal
sofia/internal/1000 at 10.169.112.170 [BREAK]
2016-05-05 22:36:02.731593 [DEBUG] switch_ivr.c:614 sofia/internal/
1000 at 10.169.112.170 Command Execute playback(abc_test/en/test.amr)
EXECUTE sofia/internal/1000 at 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-6b5931cb8fb7
2016-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
-------------------------

Audio
Format                                   : AMR
Format/Info                              : Adaptive Multi-Rate
Format profile                           : Narrow band
Duration                                 : 16s 140ms
Bit rate mode                            : Constant
Bit rate                                 : 12.8 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 8 000 Hz
Bit depth                                : 13 bits
Stream size                              : 25.2 KiB (100%)

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160507/cd399cd6/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list