Ubuntu 12, asterisk 11 & vicidial

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Re: Ubuntu 12, asterisk 11 & vicidial

Postby apb1963 » Fri May 10, 2013 3:46 am

ZoVoS wrote:Just thought I would wade in here and offer a few titbits.

Firstly id like to request a copy of the config because I have just started a rewriting a ton of scripts for openSUSE and CentOS to auto provision remote servers, i am SLOOOOOOOWLY removing all user interaction (if anybody knows how to automate the CPAN install id greatly apriciate it). ubuntu would be nice to add to the list.


Just so nobody gets confused... I have no relationship to vicidial other than as an interested user. My changes are not sanctioned by anyone but myself, and so far have been almost completely ignored. I get the impression they won't be included in any official vici release so this may be a one time only affair, time will tell.

I'll briefly mention that I did get your private email and will send you the configs I wrote, as you requested. And you're in luck - I automated the CPAN install. :D Please let me know your results.

ZoVoS wrote:it would be quite a task for a person with minimal knowledgeable of how the system works to retrofit confbridge into vici (I believe the 2 can't be run simultaneously) [...snip...]
GoodLuck if you take on the task =D


It's unclear to whom you're speaking, but for the record I intend to upgrade asterisk/vicidial system from using meetme to confbridge. Just not anytime soon as I have bigger fish to fry - like getting the basics working. With that said, this is a good time to update this thread on my results so far.

Slow & steady wins the race. I'm making progress. At this point the system dials the agent and logs them into a meetme conference room. I'm right at the point of getting manual dialout to work, however I ran into a major snag yesterday. I'm using google voice as my "provider" and although I've been using GV to dial out for a couple of months (with asterisk, not vicidial) suddenly for no reason I'm aware of, google voice isn't working. I don't know if they changed something, decided to cut me off, discontinue support for working with asterisk or what. So it's put me at a standstill. So if that doesn't get resolved by google in short order, I'll be forced to start paying for calls with a real ITSP (or possibly skype if I can figure out how or if it's even possible to use that with asterisk). I'm not thrilled about that, but there's really nothing else I can do. If anybody would like to "donate" an account with an ITSP, I'm not above charity. :)
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby ZoVoS » Fri May 10, 2013 6:30 pm

hello, I have made some changes to your script. tbh I ended up ripping 95% of the CPAN out and replaced it with ubuntu modules, I also disabled testing on cpan installation this now completes in a min or so rather than the normal longhaul.


the cpan ended on this

Code: Select all
##!/bin/sh
#
#
# to find kernel version use this command: uname -r
version=`uname -r | cut -f 1 -d "-"`
echo "version=${version}"
#(cd /usr/src; tar -xjf linux-source-${version}.tar.bz2 )



installPerl=0
if [ ${installPerl} = 1 ]; then
        #Download the tarball from cpan.org,
        cd /usr/src
        if ! [ -e /usr/src/perl-5.16.2.tar.gz ]; then
                echo "Getting perl"
                wget http://www.cpan.org/src/5.0/perl-5.16.2.tar.gz
                #unpack,
                echo "Unpacking perl"
                tar -xvzf /usr/src/perl-5.16.2.tar.gz
                echo "Cleaning perl"
                make distclean
        fi

        cd /usr/src/perl-5.16.2
        #and install as any other perl module
        echo "Configuring perl"
        ./Configure -des
        echo "Making perl"
        make
        #-Dprefix=$HOME/localperl
        echo "Testing perl"
        make test
        echo "Installing perl"
        make install

        #perl Makefile.PL; make; make test; make install
        #Don't Force-Install Packages Unless You Know What You're Doing (And Even Then...)

fi

echo "
o conf auto_commit 1
o conf make_install_arg   UNINST=1
o conf prerequisites_policy follow
o conf build_requires_install_policy yes
o conf prefer_installer MB
" | env PERL_MM_USE_DEFAULT=1 cpan


apt-get install -y libmd5-perl libdigest-sha1-perl libterm-readline-perl-perl

perl -MCPAN -e "CPAN::Shell->notest('install', 'Bundle::CPAN')"
perl -MCPAN -e "CPAN::Shell->notest('install', 'Time::HiRes')"
perl -MCPAN -e "CPAN::Shell->notest('install', 'IO::Scalar')"

apt-get install -y libdbi-perl libdbd-mysql-perl libnet-telnet-perl libnet-server-perl libunicode-map-perl libjcode-perl libspreadsheet-writeexcel-perl libspreadsheet-read-perl libspreadsheet-parseexcel-perl libole-storage-lite-perl libproc-processtable-perl


other changes involved adding a asterisk install

Code: Select all
#!/bin/sh

mkdir /usr/src/asterisk
cd /usr/src/asterisk
wget http://downloads.vicidial.com/beta-apps/asterisk-1.8.21.0-vici-beta.tar.gz
#wget http://downloads.vicidial.com/required-apps/asterisk-1.4.39.1-vici.tar.gz

wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz

untar and installation
tar -xvzf asterisk-1.8.21.0-vici-beta.tar.gz
tar -xvzf dahdi-linux-complete-current.tar.gz
tar -xvzf libpri-1.4-current.tar.gz

#DAHDI
cd /usr/src/asterisk/
cd dahdi-linux-complete-2.6.2+2.6.2/
make all
make install
make config

#LIBPRI
cd /usr/src/asterisk/libpri-1.4.14
make clean
make
make install

#ASTERISK
cd /usr/src/asterisk/asterisk-1.8.21.0-vici-beta
./configure
make clean
make
make install
make samples


and heavily altering your MYSQL script for my own needs

Code: Select all
apt-get -y install subversion
cd /usr/src
mkdir astguiclient
cd astguiclient

svn checkout svn://svn.eflo.net:3690/agc_2-X/trunk
cd trunk


mysql

SET GLOBAL connect_timeout=60;

CREATE DATABASE asterisk DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

GRANT SELECT,INSERT,UPDATE,DELETE,LOCK TABLES on asterisk.* TO cron@'%' IDENTIFIED BY '1234';
GRANT SELECT,INSERT,UPDATE,DELETE,LOCK TABLES on asterisk.* TO cron@localhost IDENTIFIED BY '1234';

GRANT RELOAD ON *.* TO cron@'%';
GRANT RELOAD ON *.* TO cron@localhost;

GRANT ALTER,CREATE on asterisk.* TO custom@'%' IDENTIFIED BY 'custom1234';
GRANT ALTER,CREATE on asterisk.* TO custom@localhost IDENTIFIED BY 'custom1234';

flush privileges;

use asterisk;

\. /usr/src/astguiclient/trunk/extras/MySQL_AST_CREATE_tables.sql
\. /usr/src/astguiclient/trunk/extras/first_server_install.sql

\. /usr/src/astguiclient/trunk/extras/upgrade_2.0.5.sql
\. /usr/src/astguiclient/trunk/extras/upgrade_2.2.0.sql
\. /usr/src/astguiclient/trunk/extras/upgrade_2.4.sql
\. /usr/src/astguiclient/trunk/extras/upgrade_2.6.sql
\. /usr/src/astguiclient/trunk/extras/upgrade_2.8.sql

quit

perl /usr/src/astguiclient/trunk/install.pl --asterisk_version=1.8 --no-prompt --copy_sample_conf_files=y --web=/var/www

perl /usr/share/astguiclient/ADMIN_area_code_populate.pl
perl /usr/share/astguiclient/ADMIN_update_server_ip.pl --old-server_ip=10.10.10.15 --auto


tbh i'm not sure if I need to run the 4 upgrade scripts but I have done it for such a long time that I feel uneasy when I don't do it. also the DMIN_area_code_populate.pl seems a bit pointless for me as im uk based..


my next step is to rewrite
Code: Select all
cd /etc/init.d/
if ! [ -x /etc/init.d/vicidial ]; then
        wget http://download.vicidial.com/ubuntu/vicidial
        chmod +x vicidial
        update-rc.d -f vicidial defaults
fi


as the startup script seems to do everything right but add the asterisk screen and i'm currently having to run in manually.

my servers are in France so to change them to the UK also causes me a timesinc error. but this can be solved as long as you use the a proper NTP server to update and restart (tbh it probably only needs a dahdi/asterisk restart but meh)


i need to fix MYSQL install with a variation of the following

Code: Select all
apt-get install -y mysql-server-core-5.5 mysql-server-5.5 #(this will ask for a password you can just press enter a bunch of times Note: Do not put a password in here, You will be able to add it at the end)

#Some lines will need to be added to automate the mysql installation
#sudo debconf-set-selections <<< 'mysql-server-<version> mysql-server/root_password password your_password'
#sudo debconf-set-selections <<< 'mysql-server-<version> mysql-server/root_password_again password your_password'
#sudo apt-get -y install mysql-server

so it wont prompt me for passwords.


few other notable changes such as
Code: Select all
#Additional notes libxml2 should already be installed at this point but to compile asterisk 1.8 with a full
#feature set you also need libxml2-dev (devel in other distros) and res_config_ldap for ldap module
apt-get install -y libxml2 libxml2-dev # (Added both just incase)
#the name for the ldap module took longer than it should have to find
apt-get install -y libldap2-dev

which are prereqs for compiling asterisk 1.8 as far as i'm aware.


I opted against your install.pl as the base one provides all the functionality I need using
perl /usr/src/astguiclient/trunk/install.pl --asterisk_version=1.8 --no-prompt --copy_sample_conf_files=y --web=/var/www
and this ensures it will always be the most up to date version available.


Thanks again for your scripts. My major problem is neatness everything I write works but its such a ugly mess =D

EDIT-
when I finish the script so it can be run on install ill send you a copy =] thanks again
ZoVoS
 
Posts: 58
Joined: Fri Aug 17, 2012 11:07 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby apb1963 » Fri May 17, 2013 2:03 am

ZoVoS wrote:hello, I have made some changes to your script. tbh I ended up ripping 95% of the CPAN out and replaced it with ubuntu modules, I also disabled testing on cpan installation this now completes in a min or so rather than the normal longhaul.


Nothing wrong with using ubuntu modules I suppose. But my goal, as originally posted early in this thread - was to automate the installation instructions posted on the wiki - which is what I accomplished. I didn't set out to redesign anything. My changes were limited to whatever was necessary to make it work on Ubuntu 12 and asterisk 11. Changing to ubuntu modules was not required to automate it, nor to make it work. Plus I prefer to have the most recent versions of just about everything if possible without too much trouble.

Nothing wrong with disabling testing either once you know it works. It's been over a month since I've run it, and I seem to recall it didn't take very long here; maybe I have a faster machine. <shrug>

other changes involved adding a asterisk install


I have a separate set of scripts for installing asterisk. You should of asked, I would of sent them along too. I only didn't send them because it didn't occur to me that you needed them. Like I mentioned in my email, I probably forgot something. I'll try to remember that for the next person that asks for my scripts.

I opted against your install.pl as the base one provides all the functionality I need using
perl /usr/src/astguiclient/trunk/install.pl --asterisk_version=1.8 --no-prompt --copy_sample_conf_files=y --web=/var/www
and this ensures it will always be the most up to date version available.


Hmmm... You may notice that the subject of this thread is Asterisk 11. Not 1.8. Therefore, if you want to run 1.8 you wouldn't need any of my changes. In fact, all you needed to do was grab the current version from the main trunk.
Last edited by apb1963 on Fri May 17, 2013 6:35 am, edited 1 time in total.
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby apb1963 » Fri May 17, 2013 2:12 am

And here's the latest update for anyone that's been paying attention.

I've been successful in getting vicidial working with Asterisk 11.2.1 and Google Voice under manual dial conditions. Meaning I can dial out through Vicidial using Google Voice (and presumably any other carrier although other carriers haven't been tested. GV was the hard one). I'm about to start on autodial.

So if someone wants to test this portion on a spare server, let me know.
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby apb1963 » Tue May 21, 2013 11:11 pm

I now have autodial working. However it seems to be disconnecting immediately after answer.
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby ZoVoS » Mon May 27, 2013 11:54 am

apb1963 wrote:I now have autodial working. However it seems to be disconnecting immediately after answer.


this is usually a routing issue not a VICI issue. I have had similar problems many times before.

BTW nothing I have written is meant as a dig. I was mealy stating the changes I have made for my own connivance =P I have yet to update to asterisk 11 as the only functionality I require is confbridge, I appreciate the VICI 1.8 modifications to hangup cause's and as my own modification for carrier side TPS's would probably require some major changes if I wanted it to work with asterisk 11.

The problem you are having sounds like it could be sorted by removing all firewalls and setting your server as a DMZ for testing, if this works then work backwards fixing your routing. (recently had a client have the same problem, I think it stems from a 1 way audio ergo vici hangs up thinking the call is dead, I tore out all of there routing tables and firewalls from their dial server to my billing server and it started working fine, then we pieced their security back together bit by bit and the error evaporated.)
ZoVoS
 
Posts: 58
Joined: Fri Aug 17, 2012 11:07 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby apb1963 » Thu Jun 13, 2013 10:11 pm

It turns out that what was actually happening was a failure to transfer the outgoing call into the meetme conference. So yes, it disconnected. I didn't have a context with a proper matching extension to transfer into meetme. I now have a working two-way conversation between agent and lead in a two-party meetme conference.

However, one last problem seems to remain. Although the call proceeds happily with both parties able to converse apparently without a glitch, about maybe 30-60 seconds or so into the call, the vicidial agent screen reports that the "Customer has hung up" - even though in reality the two parties are able to continue talking without any problem. More of an annoyance than anything else, but still - I'd like to fix it if I can do so without investing too many more hours into it.
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby paruchurup » Mon Jun 17, 2013 6:22 am

Hi
Could you please tell me astguiclient 2.7 works with ASterisk 11.4.
I have instaleld ASterisk 11.4 and installed astguiclient 2.7 and when I gave the admin.php url in the browser, it didn't display anything.
I haven't isntalled apache web server.

Regards
Praveena
astguiclient: 2.7-370c BUILD: 130508-2255 | Asterisk 1.4.44 | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | XLite | RedHat Linux |Scratch Install - http://astguiclient.sourceforge.net/scr ... stall.html |
paruchurup
 
Posts: 69
Joined: Thu May 30, 2013 8:33 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby mflorell » Mon Jun 17, 2013 8:50 am

We have only tested with Asterisk 1.8.21. We will probably not work on Asterisk 11 compatibility until it becomes more stable in about a year or so.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Ubuntu 12, asterisk 11 & vicidial

Postby apb1963 » Thu Jun 20, 2013 11:20 am

apb1963 wrote:However, one last problem seems to remain. Although the call proceeds happily with both parties able to converse apparently without a glitch, about maybe 30-60 seconds or so into the call, the vicidial agent screen reports that the "Customer has hung up" - even though in reality the two parties are able to continue talking without any problem. More of an annoyance than anything else, but still - I'd like to fix it if I can do so without investing too many more hours into it.


Success! I have resolved this final problem. This problem was directly related to the fact that I'm using Google Voice and chan_motif. Once I added checks for this in /usr/share/astguiclient/AST_update.pl things seem to have stabilized. I can happily report that after at least 180 seconds into the call the problem did not repeat itself. After I hung up, the channel was cleared in 15 seconds, and then it took another 30 seconds for the system to recognize the call was actually gone and it sent me to the disposition screen. I'm assuming this delay is normal; someone please let me know if it's not.

Since I only have one channel for outgoing (Google Voice) I can't do any extensive testing at this time, and I don't have a need to route incoming calls through vicidial at this time (I just use asterisk). I'm not quite sure I understand the value of routing incoming calls through vicidial as opposed to simply using asterisk to handle queuing. I've never done either since my needs at this point in time are "micro-tiny" (1 agent currently (myself) and up to 3 agents probably at most for the near term pending any potential income warranting expansion).

As I think this now concludes my personal needs - unless something else comes up I haven't thought of just yet or I run into some other unforeseen issues, I think I'm done with my changes and this may be my last post here on this subject.

Here's what works: Both manual and autodialed outgoing calls. Script popups. Dispositioning. Uploading leads with custom fields (using the fourth generation script).

Unknown: Recording (I may decide I need that), inbound calls (I see no reason it shouldn't but it's untested at this time)... not sure what else. I think reports work but I haven't really paid attention - again I see no reason why they wouldn't work.

Actual code changes were fairly minimal - other than my need to add extensive debug messages and also rearrange (modularize) huge portions of the code just to understand what it was doing.

To sum it up... I now have a working vicidial system with the following installation details:

Scratch install of vicidial on ubuntu-12.04.2-server (LTS) as a guest OS courtesy of VMware® Player 5.0.1 build-894247 running under Windows XP Professional 5.1.2600, Service Pack 3 running on an ASUSTeK Computer INC. A8N-VM Rev 1.xx mamaboard with a bus Clock of 200 megahertz and using an American Megatrends Inc. 0610 BIOS from 12/30/2005 and a
2.40 gigahertz AMD Athlon64 X2 Dual Core processor with a 128 kilobyte primary memory cache & 512 kilobyte secondary memory cache and is 64-bit ready but Not hyper-threaded. GeForce 6100 Current Driver Version: 307.83 Latest Driver Version: 307.83 (as of May 2013) GeForce 6100 / nForce 410

Installed using ubuntu-12.04.1-server-i386.iso
Updated & upgraded it. Installed all dependencies. Installed PearDB. Installed iksemel 1.4, asterisk 11.2.1,FreePBX 2.11.0.0beta2.2.

PHP Version 5.3.10-1ubuntu3.5
Suhosin Patch 0.9.10
Zend Engine v2.3.0
eAccelerator v0.9.6.1

Perl v5.16.2

I think that's everything. I have no desire to repeat this journey, although I expect I'll continue to upgrade asterisk to stay relatively current with asterisk 11 & FreePBX. I'm anxious to move on with my own projects, unrelated to vicidial.
GOautodial CE 3.3 ISO
Asterisk 1.8.23.0-1_centos5
Single Server
No Digium/Sangoma Hardware
Kernel 2.6.18-398.el5 (SMP)
CentOS 5.11 (Final)
Intel(R) Atom(TM) CPU D2700 @ 2.13GHz
apb1963
 
Posts: 30
Joined: Sun Feb 17, 2013 11:13 am

Re: Ubuntu 12, asterisk 11 & vicidial

Postby bghayad » Wed Sep 11, 2013 5:11 am

Hello;

Is it released (ready) a vicibox that is working on Ubuntu OS with asterisk 1.8 (or asterisk 11) and vicidial 2.6 (or 2.8)?

Regards
Bilal
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: Ubuntu 12, asterisk 11 & vicidial

Postby bghayad » Thu Sep 12, 2013 6:02 am

Hello;

When it is expecting to have vicibox (without using the old one and do a lot of upgrade) that based on Ubuntu and using Asterisk 1.8 and vicidial 2.8 or 2.6?

Regards
Bilal
bghayad
 
Posts: 579
Joined: Sun Jan 01, 2012 4:53 pm

Re: Ubuntu 12, asterisk 11 & vicidial

Postby mflorell » Fri Sep 13, 2013 5:52 am

In our experience, Ubuntu is too difficult to maintain an ISO installer on, so we chose to move ViciBox to OpenSuSE a few years ago. Ubuntu is not primarily a server platform like SuSE is, so optimizing it for servers and maintaining it with current packages is more difficult than it is with SuSE.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Ubuntu 12, asterisk 11 & vicidial

Postby DruRoland » Fri Sep 13, 2013 1:59 pm

I agree that Ubuntu's a bit flaky to turn into a custom distro. Personally, I'd love to see a Debian based ISO however :)
2x ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
Debian 7 MySQL 5.5 server 4-core 16GB RAM Master & Slave
18 seats, outbound/blended with full recording
DruRoland
 
Posts: 52
Joined: Wed Jan 23, 2013 8:33 pm

Previous

Return to Support

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 97 guests