Everything works but cant play audio ***SOLVED***

Moderator: areski

Everything works but cant play audio ***SOLVED***

Postby oscargim » Wed Aug 08, 2012 11:47 pm

I worked a lot to install the system on Centos 6 (Im gonna put the steps later here in the forum)

Now I have it working but when I launch a campaign the calls are made but when anser the audio doesnt play and call ends.

I have this error on fs_cli:


2012-08-09 03:37:54.319289 [ERR] switch_core_file.c:122 Invalid file format [shell_stream] for [/usr/share/plivo/bin/wavstream.sh http://127.0.0.1:8089/Cache/?url=http%3 ... 572661.wav]!

I tried enabling the load of modules but still the same:

<!-- Endpoints -->
<load module="mod_dingaling"/>
<!-- File Format Interfaces -->
<load module="mod_shell_stream"/>

I have installed freeswitch with this guide (installing from source fails to start FS):

rpm -Uvh http://files.freeswitch.org/yum/freeswi ... noarch.rpm

yum install freeswitch-config-vanilla

The init.d script set the default daemon program as 'FS_FILE=${FS_FILE-/usr/freeswitch}', which isn't where it is installed by the RPM. Add the following directive to '/etc/sysconfig/freeswitch':

FS_FILE=/usr/bin/freeswitch

The service is installed to start. Start the service:

# service freeswitch start

How can I install it again with the necesary modules loaded?

Thanks!
Last edited by oscargim on Fri Aug 10, 2012 4:16 pm, edited 1 time in total.
oscargim
 
Posts: 11
Joined: Tue Aug 07, 2012 8:11 am

Re: Everything works but cant play audio

Postby areski » Thu Aug 09, 2012 2:16 pm

Can you try with a MP3 and let us know.

Yours,
/Areski
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Everything works but cant play audio

Postby oscargim » Thu Aug 09, 2012 2:44 pm

I tried loading the mp3 and with external URL

Loaded:
2012-08-09 18:42:06.279321 [ERR] switch_core_file.c:122 Invalid file format [shout] for [127.0.0.1:8089/Cache/?url=http%3A%2F%2F69.160.42.205%3A8008%2Fmediafiles%2Fupload%2Faudiofiles%2Faudio-file-CJHTE-2807116012.mp3]!

External:
2012-08-09 18:47:50.499289 [ERR] switch_core_file.c:122 Invalid file format [shout] for [127.0.0.1:8089/Cache/?url=http%3A%2F%2Flevelagency.com%2Fgreen.mp3]!


thanks for the help Areski
oscargim
 
Posts: 11
Joined: Tue Aug 07, 2012 8:11 am

Re: Everything works but cant play audio

Postby areski » Thu Aug 09, 2012 2:52 pm

I suppose you are installing Newfies-Dialer manually.

Make sure your shout module is installed and load correctly.
http://wiki.freeswitch.org/wiki/Mod_shout

This should be able to play MP3 file.

Yours,
/Areski
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Everything works but cant play audio

Postby oscargim » Thu Aug 09, 2012 3:41 pm

That guide is to rebuild freeswitch from source? So I can uncoment the modules to enable them.. am I right?

If so, I cant install freeswitch from source cause it doesnt start on centOS 6, I already tried on ubuntu 10.4 and 12.04 but the install script on the beginners guide doesnt ask me for the superuser account :/

Is there another way to build the modules? or an rpm package with the modules enabled by default?


(I have installed freeswitch with rpm. And then I commented the install section of freeswitch on the beginners guide script.. so plivo and newfies are installed from the script but freeswitch from rpm)

Thats the only way I can make it work on centos 6.. and works perfect just the audio issue.
oscargim
 
Posts: 11
Joined: Tue Aug 07, 2012 8:11 am

Re: Everything works but cant play audio

Postby areski » Thu Aug 09, 2012 3:55 pm

It's hard to help you if you don't use our install procedure, I will advice you try with Ubuntu 12.04 TLS and you report us the issue you have when creating the super user.

In other hand I m sure you should be able to sort your audio issue, but it will be hard to find out without checking the box.
make sure you load the shout module properly and that it s possible to play MP3 file with it.

If you have issues you can contact our support to help you on installation.

Yours,
/Areski
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Everything works but cant play audio

Postby oscargim » Thu Aug 09, 2012 5:54 pm

I tried again with the beginners guide and Ubuntu 12.04 64bit and the superuser creation never prompt (mysql prompt appears like guide says)

Looking the installation I can see this:


Create a super admin user...
Traceback (most recent call last):
File "manage.py", line 19, in <module>
execute_manager(settings)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 459, in execute_manager
utility.execute()
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 70, in handle
default_username = get_default_username()
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", line 105, in get_default_username
default_username = get_system_username()
File "/usr/share/virtualenvs/newfies-dialer/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py", line 85, in get_system_username
return getpass.getuser().decode(locale.getdefaultlocale()[1])
TypeError: decode() argument 1 must be string, not None
Linking '/usr/share/newfies/resources/src/ui.multiselect.js'
Linking '/usr/share/newfies/resources/src/css/ui.multiselect.css'
Linking '/usr/share/newfies/resources/icons/delete.png'


I guess here must prompt but nothing
oscargim
 
Posts: 11
Joined: Tue Aug 07, 2012 8:11 am

Re: Everything works but cant play audio

Postby areski » Thu Aug 09, 2012 6:28 pm

Okey it seems that is due to an error on Django with OSX
https://code.djangoproject.com/ticket/16017

Try this, before running the script:
export LANG="en_US.UTF-8"
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Everything works but cant play audio

Postby oscargim » Fri Aug 10, 2012 2:41 am

I made it on centOS 6 64 bits! I dont know if everybody worked like me :/ I guess it could be because of my host provider OS


But now works


I leave the steps I made to get it on:


INSTALACION DE NEWFIES EN CENTOS 6 64 bits:


PRE REQUISITOS:


*******************************
I had this error on ./configure: /bin/sh: patch: command not found

solved with this

installing missing packages for Oracle 11gR2 on centOS 64bit
The following packages are missing to successfully complete oracle 11gR2 installation on CentOS: compat-libstdc++-33-3.2.3, libaio-devel-0.3.105, sysstat-5.0.5, unixODBC-2.2.11, unixODBC-devel-2.2.11 and pdksh-5.2.14.

SOLUTION:

yum -y install compat-libstdc++-33-3.2.3

yum -y install unixODBC-2.2.11

yum -y install unixODBC-devel-2.2.11

yum -y install pdksh-5.2.14

Packages libaio-devel-0.3.105 and libaio-devel-0.3.105 are not installed because I got an error: No package libaio-devel-0.3.105 available. No package sysstat-5.0.5 available.

I checked out available packages and I found that sysstat.x86_64 is available:

yum list available sysstat*

Available Packages
sysstat.x86_64 7.0.2-3.el5_5.1 updates

yum -y install sysstat.x86_64

yum list available libaio-devel*

yum -y install libaio-devel.x86_64

yum -y install libaio-devel.i386

I could installed the database after installing the missing packages.
****************************************************


Try this, before running the script:

export LANG="en_US.UTF-8"






yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel pkgconfig





yum install unixODBC-devel openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2 which





sudo yum install git autoconf automake libtool ncurses-devel libjpeg-devel




sudo yum install expat-devel openssl-devel libtiff-devel libX11-devel unixODBC-devel libssl-devel python-devel \
zlib-devel libzrtpcpp-devel alsa-lib-devel libogg-devel libvorbis-devel perl-libs gdbm-devel \
libdb-devel uuid-devel @development-tools




cd /usr/local/src





git clone git://git.freeswitch.org/freeswitch.git

cd freeswitch

./bootstrap.sh







*** Edit modules.conf ***






./configure -C





make (if you get an error reboot and run make again)




make all install cd-sounds-install cd-moh-install






START FREESWITCH:

/usr/local/freeswitch/bin/freeswitch




wget https://raw.github.com/Star2Billing/new ... all-all.sh (edit install-all.sh and comment freeswitch install)





bash install-all.sh





Then uncomment mod_shout and mod_shell_stream from modules.conf.xml



reboot
oscargim
 
Posts: 11
Joined: Tue Aug 07, 2012 8:11 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 22 guests

cron