<div dir="ltr">Hi Brien, <div><br><div>And also, I wanted to move to AMR, due to bandwidth concern and <span style="font-size:12.8px">PCMU codec with wav (</span><span style="font-size:12.8px">ADPCM </span><span style="font-size:12.8px">U-Law, </span><span style="font-size:12.8px">64.0 Kbps, </span><span style="font-size:12.8px">8 000 Hz</span><span style="font-size:12.8px">) is not clear on the phone. </span></div><div><div style=""><br></div></div><div><span style="font-size:12.8px">Many Thanks.</span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 9, 2016 at 9:55 AM, Pradeepa <span dir="ltr"><<a href="mailto:pradee@gmail.com" target="_blank">pradee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Brian, <div><br></div><div>As you suggested, when I removed extension from playback, error disappeared. But still I can't hear any audio.</div><div><br></div><div>This is in early media. I tested after answering the call. Both times no sound. Where I have done wrong? </div><div><br></div><div>If I remove AMR from Freeswitch prefs, then negotiate with PCMU and play properly wav (u-law) but I want to play AMR. </div><div><br></div><div>Now log is as below. </div><div><br></div><div>EXECUTE sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> pre_answer()</div><div><div>[DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_EXECUTE to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><span class=""><div>[INFO] mod_dptools.c:1260 Sending early media</div></span><span class=""><div>[DEBUG] sofia_glue.c:5282 Audio Codec Compare [<span style="background-color:rgb(0,255,0)">AMR:120:8000:20:0]/[AMR:96:8000:20:12200</span>]</div></span><span class=""><div>[DEBUG] sofia_glue.c:3190 Set Codec sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> AMR/8000 20 ms 160 samples 12200 bits</div></span><span class=""><div>[DEBUG] switch_core_codec.c:111 sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> Original read codec set to AMR:96</div></span><div>[DEBUG] mod_erlang_event.c:156 Sending event CODEC to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><span class=""><div>[DEBUG] sofia_glue.c:5451 Set 2833 dtmf send/recv payload to 101</div></span><div>[DEBUG] mod_erlang_event.c:156 Sending event CODEC to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><div>[DEBUG] sofia_glue.c:3449 AUDIO RTP [sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a>] 10.169.112.170 port 22134 -> 192.168.0.174 port 4020 codec: 120 ms: 20</div><span class=""><div>[DEBUG] switch_rtp.c:2040 Starting timer [soft] 160 bytes per 20ms</div></span><span class=""><div>[DEBUG] sofia_glue.c:3716 Set 2833 dtmf send payload to 101</div></span><span class=""><div>[DEBUG] sofia_glue.c:3722 Set 2833 dtmf receive payload to 101</div></span><span class=""><div>[DEBUG] sofia_glue.c:3749 sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> Set rtp dtmf delay to 40</div></span><span class=""><div>[NOTICE] sofia_glue.c:4360 Pre-Answer sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a>!</div></span><div>[DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_PROGRESS_MEDIA to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><span class=""><div>[DEBUG] switch_channel.c:3368 (sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a>) Callstate Change RINGING -> EARLY</div></span><div>[DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_CALLSTATE to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><span class=""><div>[DEBUG] mod_sofia.c:2891 Ring SDP:</div><div>v=0</div></span><div>o=FreeSWITCH 1462744655 1462744656 IN IP4 10.169.112.170</div><span class=""><div>s=FreeSWITCH</div><div>c=IN IP4 10.169.112.170</div><div>t=0 0</div></span><div>m=audio 22134 RTP/AVP 120 101</div><span class=""><div>a=rtpmap:120 AMR/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=sendrecv</div><div><br></div></span><span class=""><div>DEBUG] switch_core_session.c:871 Send signal sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> [BREAK]</div></span><div>DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_EXECUTE_COMPLETE to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><div>DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> [BREAK]</div><div>DEBUG] sofia.c:5815 Channel sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> entering state [early][183]</div><span class=""><div>DEBUG] switch_core_session.c:1151 Send signal sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> [BREAK]</div></span><div>DEBUG] switch_ivr.c:614 sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> Command Execute sleep(500)</div><div>EXECUTE sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> sleep(500)</div><div>DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_EXECUTE to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><div>DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_EXECUTE_COMPLETE to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><div>DEBUG] mod_erlang_event.c:156 Sending event PRIVATE_COMMAND to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><span class=""><div>DEBUG] switch_core_session.c:1151 Send signal sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> [BREAK]</div></span><div>DEBUG] switch_ivr.c:614 sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> Command Execute playback(abc_test/en/test)</div><div>EXECUTE sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> playback(abc_test/en/test)</div><div>DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_EXECUTE to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><div>INFO] mod_native_file.c:94 Opening File [/usr/local/abc/sounds/en/us/callie/abc_test/en/test.AMR] 8000hz</div><div>DEBUG] switch_ivr_play_say.c:1314 <span style="background-color:rgb(255,255,0)">Codec Activated L16@8000hz 1 channels 20ms</span></div><div>DEBUG] mod_erlang_event.c:156 Sending event PLAYBACK_START to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><div>DEBUG] switch_ivr_play_say.c:1717 done playing file /usr/local/abc/sounds/en/us/callie/abc_test/en/test.AMR</div><div>DEBUG] mod_erlang_event.c:156 Sending event PLAYBACK_STOP to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div><div>DEBUG] mod_erlang_event.c:156 Sending event CHANNEL_EXECUTE_COMPLETE to attached session 67192af8-159b-11e6-a7fc-eb0baf057465</div></div><div><br></div><div>Many Thanks.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 7, 2016 at 12:58 AM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For native files, you don't include an extension in your playback, you just say playback /en/test, the file will be test.AMR matching the SDP. And bits != sample rate if thats what you're pointing out.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, May 6, 2016 at 1:58 PM, Pradeepa <span dir="ltr"><<a href="mailto:pradee@gmail.com" target="_blank">pradee@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>I want to play amr file in freeswitch IVR. But I get Invalid file format [amr] error. </div><div><br></div><div>Any suggestion to solve this problem?</div><div><br></div><div><br></div><div><br></div><div>freeswitch log</div><div>-------------------</div><div><div>2016-05-05 22:36:02.151586 [INFO] mod_dptools.c:1260 Sending early media</div><div>2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:5282 Audio Codec Compare <span style="background-color:rgb(255,255,0)">[AMR:120:8000:20:0]/[AMR:96:8000:20:12200]</span></div><div>2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3190<span style="background-color:rgb(255,255,0)"> Set Codec sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> AMR/8000 20 ms 160 samples 12200 bits</span></div><div>2016-05-05 22:36:02.151586 [DEBUG] switch_core_codec.c:111 sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> Original read codec set to AMR:96</div><div>2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:5451 Set 2833 dtmf send/recv payload to 101</div><div>2016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event CODEC to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb7</div><div>2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3449 AUDIO RTP [sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a>] 10.169.112.170 port 22020 -> 192.168.0.174 port 4006 codec: 120 ms: 20</div><div>2016-05-05 22:36:02.151586 [DEBUG] mod_erlang_event.c:156 Sending event CODEC to attached session 69a98c32-134c-11e6-a976-6b5931cb8fb7</div><div>2016-05-05 22:36:02.151586 [DEBUG] switch_rtp.c:2040 Starting timer [soft] 160 bytes per 20ms</div><div>2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3716 Set 2833 dtmf send payload to 101</div><div>2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3722 Set 2833 dtmf receive payload to 101</div><div>2016-05-05 22:36:02.151586 [DEBUG] sofia_glue.c:3749 sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> Set rtp dtmf delay to 40</div><div>2016-05-05 22:36:02.151586 [NOTICE] sofia_glue.c:4360 Pre-Answer sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a>!</div><div>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</div><div>2016-05-05 22:36:02.151586 [DEBUG] switch_channel.c:3368 (sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a>) Callstate Change RINGING -> EARLY</div><div>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</div><div>2016-05-05 22:36:02.151586 [DEBUG] mod_sofia.c:2891 Ring SDP:</div><div>v=0</div><div>o=FreeSWITCH 1462490942 1462490943 IN IP4 10.169.112.170</div><div>s=FreeSWITCH</div><div>c=IN IP4 10.169.112.170</div><div>t=0 0</div><div>m=audio 22020 RTP/AVP 120 101</div><div>a=rtpmap<span style="background-color:rgb(255,255,0)">:120 AMR/8000</span></div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=sendrecv</div><div><br></div><div>2016-05-05 22:36:02.151586 [DEBUG] switch_core_session.c:871 Send signal sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> [BREAK]</div><div>2016-05-05 22:36:02.711592 [DEBUG] switch_core_session.c:1151 Send signal sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> [BREAK]</div><div>2016-05-05 22:36:02.731593 [DEBUG] switch_ivr.c:614 sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> Command Execute playback(abc_test/en/test.amr)</div><div>EXECUTE sofia/internal/<a href="mailto:1000@10.169.112.170" target="_blank">1000@10.169.112.170</a> playback(abc_test/en/test.amr)</div><div>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</div><div>2016-05-05 22:36:02.731593 [ERR] switch_core_file.c:150<span style="background-color:rgb(255,255,0)"> Invalid file format [amr] for [/usr/local/abc/sounds/en/us/callie/abc_test/en/test.amr]!</span></div></div><div><span style="background-color:rgb(255,255,0)"><br></span></div><div><div>amr prompt details <br></div><div>-------------------------</div><div><br></div><div><div>Audio</div><div>Format : AMR</div><div>Format/Info : Adaptive Multi-Rate</div><div>Format profile : Narrow band</div><div>Duration : 16s 140ms</div><div>Bit rate mode : Constant</div><div>Bit rate : 12.8 Kbps</div><div>Channel(s) : 1 channel</div><div>Sampling rate : 8 000 Hz</div><div>Bit depth : 13 bits</div><div>Stream size : 25.2 KiB (100%)</div></div></div><div><span style="background-color:rgb(255,255,0)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Thanks.</span></div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a><br></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" target="_blank"><font face="monospace, monospace">https://www.gofundme.com/freeswitch_ubuntu</font></a></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>