Problem with Playback wav from remote server
Hi I am able to playback a remote mp3 but not a remote .wav file. I am getting strange error. Could someone please guide me how to resolve it? freeswitch@server3> 2016-05-01 10:37:07.751782 [DEBUG] mod_httapi.c:2631 caching: url:http://105.165.2.110/voice/m79eVzDuH6_61.wav to /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav (5773 bytes) 2016-05-01 10:37:07.771763 [ERR] mod_sndfile.c:204 Error Opening File [/usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav] [File contains data in an unknown format.] 2016-05-01 10:37:07.771763 [ERR] mod_httapi.c:2971 Invalid cache file /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav opening url 105.165.2.110/voice/m79eVzDuH6_61.wav Discarding file. 2016-05-01 10:37:07.771763 [DEBUG] sofia.c:6755 Channel sofia/internal/ 0000000000@105.165.2.110 entering state [early][183] Here it shows that I can "get" the .wav no problem. [root@ server3 ~]# wget http://105.165.2.110/voice/m79eVzDuH6_61.wav --2016-05-01 10:15:42-- http://105.165.2.110/voice/m79eVzDuH6_61.wav Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://105.165.2.110/auth/login [following] --2016-05-01 10:15:42-- http://105.165.2.110/auth/login Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5773 (5.6K) [text/html] Saving to: `m79eVzDuH6_61.wav' 100%[================================================================================================================================================>] 5,773 --.-K/s in 0s 2016-05-01 10:15:42 (483 MB/s) - `m79eVzDuH6_61.wav' saved [5773/5773] [root@ server3 ~]# ls -al *.wav -rw-r--r-- 1 root root 5773 May 1 10:15 m79eVzDuH6_61.wav [root@server3 ~]#
The issue isn't getting the file, it's playing it. Nothing to do with it being remote. On Sunday, May 1, 2016, Pete Kay <petedao@gmail.com> wrote:
Hi
I am able to playback a remote mp3 but not a remote .wav file.
I am getting strange error. Could someone please guide me how to resolve it?
freeswitch@server3> 2016-05-01 10:37:07.751782 [DEBUG] mod_httapi.c:2631 caching: url:http://105.165.2.110/voice/m79eVzDuH6_61.wav to /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav (5773 bytes)
2016-05-01 10:37:07.771763 [ERR] mod_sndfile.c:204 Error Opening File [/usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav] [File contains data in an unknown format.]
2016-05-01 10:37:07.771763 [ERR] mod_httapi.c:2971 Invalid cache file /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav opening url 105.165.2.110/voice/m79eVzDuH6_61.wav Discarding file.
2016-05-01 10:37:07.771763 [DEBUG] sofia.c:6755 Channel sofia/internal/ 0000000000@105.165.2.110 <javascript:_e(%7B%7D,'cvml','0000000000@105.165.2.110');> entering state [early][183]
Here it shows that I can "get" the .wav no problem.
[root@ server3 ~]# wget http://105.165.2.110/voice/m79eVzDuH6_61.wav
--2016-05-01 10:15:42-- http://105.165.2.110/voice/m79eVzDuH6_61.wav
Connecting to 105.165.2.110:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://105.165.2.110/auth/login [following]
--2016-05-01 10:15:42-- http://105.165.2.110/auth/login
Connecting to 105.165.2.110:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5773 (5.6K) [text/html]
Saving to: `m79eVzDuH6_61.wav'
100%[================================================================================================================================================>] 5,773 --.-K/s in 0s
2016-05-01 10:15:42 (483 MB/s) - `m79eVzDuH6_61.wav' saved [5773/5773]
[root@ server3 ~]# ls -al *.wav
-rw-r--r-- 1 root root 5773 May 1 10:15 m79eVzDuH6_61.wav
[root@server3 ~]#
Hi, Actually, you don’t get the file, you are redirected to a login page http://105.165.2.110/auth/login:
Location: http://105.165.2.110/auth/login [following] --2016-05-01 10:15:42-- http://105.165.2.110/auth/login Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5773 (5.6K) [text/html] Saving to: `m79eVzDuH6_61.wav’
Your .wav file is a html page actually, which obviously cannot be played. — Best Regards, Vallimamod .
On 01 May 2016, at 12:45, Pete Kay <petedao@gmail.com> wrote:
Hi
I am able to playback a remote mp3 but not a remote .wav file.
I am getting strange error. Could someone please guide me how to resolve it?
freeswitch@server3> 2016-05-01 10:37:07.751782 [DEBUG] mod_httapi.c:2631 caching: url:http://105.165.2.110/voice/m79eVzDuH6_61.wav to /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav (5773 bytes) 2016-05-01 10:37:07.771763 [ERR] mod_sndfile.c:204 Error Opening File [/usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav] [File contains data in an unknown format.] 2016-05-01 10:37:07.771763 [ERR] mod_httapi.c:2971 Invalid cache file /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav opening url 105.165.2.110/voice/m79eVzDuH6_61.wav Discarding file. 2016-05-01 10:37:07.771763 [DEBUG] sofia.c:6755 Channel sofia/internal/0000000000@105.165.2.110 entering state [early][183]
Here it shows that I can "get" the .wav no problem.
[root@ server3 ~]# wget http://105.165.2.110/voice/m79eVzDuH6_61.wav --2016-05-01 10:15:42-- http://105.165.2.110/voice/m79eVzDuH6_61.wav Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://105.165.2.110/auth/login [following] --2016-05-01 10:15:42-- http://105.165.2.110/auth/login Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5773 (5.6K) [text/html] Saving to: `m79eVzDuH6_61.wav'
100%[================================================================================================================================================>] 5,773 --.-K/s in 0s
2016-05-01 10:15:42 (483 MB/s) - `m79eVzDuH6_61.wav' saved [5773/5773]
[root@ server3 ~]# ls -al *.wav -rw-r--r-- 1 root root 5773 May 1 10:15 m79eVzDuH6_61.wav [root@server3 ~]#
Hahahaha, I missed that, that's hilarious On Sunday, May 1, 2016, Vallimamod Abdullah <vma@440hz.fr> wrote:
Hi,
Actually, you don’t get the file, you are redirected to a login page http://105.165.2.110/auth/login:
Location: http://105.165.2.110/auth/login [following] --2016-05-01 10:15:42-- http://105.165.2.110/auth/login Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5773 (5.6K) [text/html] Saving to: `m79eVzDuH6_61.wav’
Your .wav file is a html page actually, which obviously cannot be played.
— Best Regards, Vallimamod .
On 01 May 2016, at 12:45, Pete Kay <petedao@gmail.com <javascript:;>> wrote:
Hi
I am able to playback a remote mp3 but not a remote .wav file.
I am getting strange error. Could someone please guide me how to resolve it?
freeswitch@server3> 2016-05-01 10:37:07.751782 [DEBUG] mod_httapi.c:2631 caching: url: http://105.165.2.110/voice/m79eVzDuH6_61.wav to /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav (5773 bytes) 2016-05-01 10:37:07.771763 [ERR] mod_sndfile.c:204 Error Opening File [/usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav] [File contains data in an unknown format.] 2016-05-01 10:37:07.771763 [ERR] mod_httapi.c:2971 Invalid cache file /usr/local/freeswitch/storage/http_file_cache/c8691a860ba4ddc0b18a39d3768add75.wav opening url 105.165.2.110/voice/m79eVzDuH6_61.wav Discarding file. 2016-05-01 10:37:07.771763 [DEBUG] sofia.c:6755 Channel sofia/internal/ 0000000000@105.165.2.110 <javascript:;> entering state [early][183]
Here it shows that I can "get" the .wav no problem.
[root@ server3 ~]# wget http://105.165.2.110/voice/m79eVzDuH6_61.wav --2016-05-01 10:15:42-- http://105.165.2.110/voice/m79eVzDuH6_61.wav Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://105.165.2.110/auth/login [following] --2016-05-01 10:15:42-- http://105.165.2.110/auth/login Connecting to 105.165.2.110:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5773 (5.6K) [text/html] Saving to: `m79eVzDuH6_61.wav'
100%[================================================================================================================================================>] 5,773 --.-K/s in 0s
2016-05-01 10:15:42 (483 MB/s) - `m79eVzDuH6_61.wav' saved [5773/5773]
[root@ server3 ~]# ls -al *.wav -rw-r--r-- 1 root root 5773 May 1 10:15 m79eVzDuH6_61.wav [root@server3 ~]#
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:;> 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 <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Michael Jerris
-
Pete Kay
-
Vallimamod Abdullah