{"id":122,"date":"2016-06-03T18:35:35","date_gmt":"2016-06-03T18:35:35","guid":{"rendered":"http:\/\/symbioticindia.in\/docu\/?p=122"},"modified":"2016-06-03T18:35:35","modified_gmt":"2016-06-03T18:35:35","slug":"vicdial-asterisk-11-scratch-install-in-centos","status":"publish","type":"post","link":"http:\/\/symbioticindia.in\/docu\/2016\/06\/03\/vicdial-asterisk-11-scratch-install-in-centos\/","title":{"rendered":"Vicdial asterisk 11 scratch install in centos"},"content":{"rendered":"<p><strong><em><u>Steps Involved<\/u><\/em><\/strong><\/p>\n<ol>\n<li>Centos 6.X os installation<\/li>\n<li>Dependencies , supporting software and CPAN Modules<\/li>\n<li>Asterisk , dahdi , libpri installation<\/li>\n<li>Vicidial installation<\/li>\n<\/ol>\n<p>For vicidial installation with asterisk 1.8 check this <a href=\"http:\/\/striker24x7.blogspot.in\/2013\/04\/step-by-step-guide-to-install-vicidial.html\">link<\/a><\/p>\n<p><strong><em>Step 1<\/em><\/strong> : Centos 6.X\u00a0 installation<\/p>\n<p>The Centos 6.X can be download from the following Link<\/p>\n<p><a href=\"http:\/\/wiki.centos.org\/Download\">http:\/\/wiki.centos.org\/Download<\/a><\/p>\n<p>Centos 6.X installation steps can be found from following Link<\/p>\n<p><a href=\"http:\/\/www.tecmint.com\/centos-6-5-installation-guide-with-screenshots\/\">http:\/\/www.tecmint.com\/centos-6-5-installation-guide-with-screenshots\/<\/a><br \/>\nDisable Firewall and Selinux before starting the Installations<strong><em>Stopping the Firewall<\/em><\/strong>iptables -F service iptables save<em><strong>Disabling the Selinux<\/strong><\/em>vi \/etc\/selinux\/config# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing &#8211; SELinux security policy is enforced. # permissive &#8211; SELinux prints warnings instead of enforcing. # disabled &#8211; SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted &#8211; Only targeted network daemons are protected. # strict &#8211; Full SELinux protection. SELINUXTYPE=targeted # SETLOCALDEFS= Check local definition changes SETLOCALDEFS=0<\/p>\n<p><strong><em>Step 2<\/em><\/strong> : <strong><em>Dependencies , supporting software and Perl Modules installation<\/em><\/strong><\/p>\n<p>First Update the OS for the lastest Kernel and other softwares and reboot<\/p>\n<p>yum \u2013y update<\/p>\n<p>reboot<\/p>\n<p><strong><em>Dependencies\u00a0 Installation :<\/em><\/strong><\/p>\n<p>yum install make patch gcc gcc-c++ subversion php php-devel php-gd gd-devel php-mbstring php-mcrypt php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel httpd libpcap libpcap-devel libnet ncurses ncurses-devel screen mysql-server mysql-devel ntp kernel* mutt glibc.i686 wget openssl-devel\u00a0newt-devel libxml2-devel\u00a0kernel-devel\u00a0sqlite-devel\u00a0libuuid-devel<\/p>\n<p>Setup Mysql<\/p>\n<p>\/etc\/init.d\/mysqld start<\/p>\n<p>mysql_secure_installation<br \/>\nchkconfig mysqld on<\/p>\n<p>service mysqld stop<\/p>\n<p>cp \/etc\/my.cnf \/etc\/my.cnf.original<\/p>\n<p>echo &#8220;&#8221; &gt; \/etc\/my.cnf<\/p>\n<p>vi \/etc\/my.cnf\u00a0\u00a0\u00a0 ; copy the below config to this file.<\/p>\n<p>[mysql.server] user = mysql #basedir = \/var\/lib [client] port = 3306 socket = \/var\/lib\/mysql\/mysql.sock [mysqld] datadir = \/var\/lib\/mysql #tmpdir = \/home\/mysql_tmp socket = \/var\/lib\/mysql\/mysql.sock user = mysql old_passwords = 0 ft_min_word_len = 3 max_connections = 800 max_allowed_packet = 32M skip-external-locking log-error = \/var\/log\/mysqld\/mysqld.log query-cache-type = 1 query-cache-size = 32M long_query_time = 1 #slow_query_log = 1 #slow_query_log_file = \/var\/log\/mysqld\/slow-queries.log tmp_table_size = 128M table_cache = 1024 join_buffer_size = 1M key_buffer = 512M sort_buffer_size = 6M read_buffer_size = 4M read_rnd_buffer_size = 16M myisam_sort_buffer_size = 64M max_tmp_tables = 64 thread_cache_size = 8 thread_concurrency = 8 # If using replication, uncomment log-bin below #log-bin = mysql-bin [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [isamchk] key_buffer = 256M sort_buffer_size = 256M read_buffer = 2M write_buffer = 2M [myisamchk] key_buffer = 256M sort_buffer_size = 256M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout [mysqld_safe] #log-error = \/var\/log\/mysqld\/mysqld.log #pid-file = \/var\/run\/mysqld\/mysqld.pid<\/p>\n<p>mkdir \/var\/log\/mysqld<br \/>\nmv \/var\/log\/mysqld.log \/var\/log\/mysqld\/mysqld.log<br \/>\ntouch \/var\/log\/mysqld\/slow-queries.log<br \/>\nchown -R mysql:mysql \/var\/log\/mysqld<br \/>\nservice mysqld restart<\/p>\n<p><strong><em>Update the Timezone<\/em><\/strong><\/p>\n<p>Configure the system time and update it.<\/p>\n<p>Customize the timezone. Take a look inside <strong>\/usr\/share\/zoneinfo\/<\/strong> for all possible values.<\/p>\n<p>rm \/etc\/localtime<br \/>\nln -sf \/usr\/share\/zoneinfo\/Asia\/Kolkata \/etc\/localtime<br \/>\nrdate -s nist1-ny.ustiming.org<\/p>\n<p><strong><em>Setup CPAN and install libraries<\/em><\/strong><\/p>\n<p>yum install perl-CPAN<br \/>\nyum install perl-YAML<br \/>\nperl -MCPAN -e shell\u00a0\u00a0\u00a0\u00a0 ; just press enter for all the questions.<\/p>\n<p>You will then go through CPAN setup, just hit ENTER for most prompts except<br \/>\nfor the mirrors list, you will want to select at least 4 mirrors<\/p>\n<p>yes for manual configuration<\/p>\n<p>enter for the next 18 prompts<\/p>\n<p>for the\u00a0<strong>&#8220;make install&#8221;<\/strong>\u00a0option, it&#8217;s a good idea to add\u00a0<strong>UNINST=1<\/strong><\/p>\n<p>enter for the next 4 prompts<\/p>\n<p>select your continent and country<\/p>\n<p>select a few cpan mirrors<\/p>\n<p>enter for the next 2 prompts<\/p>\n<p>Once you see the\u00a0<strong>cpan&gt;<\/strong>\u00a0prompt you can begin installing modules.<\/p>\n<p>install CPAN::Meta::Requirements<\/p>\n<p>install CPAN<\/p>\n<p>reload cpan<\/p>\n<p>install YAML<\/p>\n<p>install MD5<\/p>\n<p>install Digest::MD5<\/p>\n<p>install Digest::SHA1<\/p>\n<p>install readline<\/p>\n<p>install Bundle::CPAN<\/p>\n<p>reload cpan<\/p>\n<p>install DBI<\/p>\n<p>force install DBD::mysql<\/p>\n<p>install Net::Telnet<\/p>\n<p>install Time::HiRes<\/p>\n<p>install Net::Server<\/p>\n<p>install Switch<\/p>\n<p>install Mail::Sendmail<\/p>\n<p>install Unicode::Map<\/p>\n<p>install Jcode<\/p>\n<p>install Spreadsheet::WriteExcel<\/p>\n<p>install OLE::Storage_Lite<\/p>\n<p>install Proc::ProcessTable<\/p>\n<p>install IO::Scalar<\/p>\n<p>install Spreadsheet::ParseExcel<\/p>\n<p>install Curses<\/p>\n<p>install Getopt::Long<\/p>\n<p>install Net::Domain<\/p>\n<p>install Term::ReadKey<\/p>\n<p>install Term::ANSIColor<\/p>\n<p>install Spreadsheet::XLSX<\/p>\n<p>install Spreadsheet::Read<\/p>\n<p>install LWP::UserAgent<\/p>\n<p>install HTML::Entities<\/p>\n<p>install HTML::Strip<\/p>\n<p>install HTML::FormatText<\/p>\n<p>install HTML::TreeBuilder<\/p>\n<p>install Time::Local<\/p>\n<p>install MIME::Decoder<\/p>\n<p>install Mail::POP3Client<\/p>\n<p>install Mail::IMAPClient<\/p>\n<p>install Mail::Message<\/p>\n<p>install IO::Socket::SSL<\/p>\n<p>install MIME::Base64<\/p>\n<p>install MIME::QuotedPrint<\/p>\n<p>install Crypt::Eksblowfish::Bcrypt<\/p>\n<p>quit<\/p>\n<p>In the end, I usually run all these commands once again to make sure its all installed. and make sure you get following output for each modul<br \/>\ncpan&gt; install Mail::Message Mail::Message is up to date (2.115). cpan&gt; install MIME::QuotedPrint MIME::QuotedPrint is up to date (3.13).<\/p>\n<p><strong><em>Installing the Asterisk-Perl module<\/em><\/strong><\/p>\n<p><em>NOTE: Do NOT use the 0.09 or any newer version, they do not work with ViciDial.<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/download.vicidial.com\/required-apps\/asterisk-perl-0.08.tar.gz<br \/>\ntar -zxf asterisk-perl-0.08.tar.gz<br \/>\ncd asterisk-perl-0.08<br \/>\nperl Makefile.PL<br \/>\nmake all<br \/>\nmake install<\/p>\n<p><strong><em>Installing additional software from source<\/em><\/strong><\/p>\n<p>Next, you will download, compile and install the following software.<\/p>\n<p>lame<\/p>\n<p>ttyload<\/p>\n<p>iftop<\/p>\n<p>mtop<\/p>\n<p>mytop<\/p>\n<p>htop<\/p>\n<p>sipsak<\/p>\n<p>ploticus<\/p>\n<p><strong><em>LAME<\/em><\/strong>:<\/p>\n<p><em>LAME is an MP3 encoder used to convert audio files from WAV to MP3. Some prefer GSM usually, but others have standardized on MP3 so you would need this utility to be loaded to use that option.<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/downloads.sourceforge.net\/project\/lame\/lame\/3.99\/lame-3.99.5.tar.gz<br \/>\ntar -zxf lame-3.99.5.tar.gz<br \/>\ncd lame-3.99.5<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<\/p>\n<p><strong><em>SOX<\/em><\/strong>:<\/p>\n<p><em>SoX is a cross-platform command line utility that can convert various formats of computer audio files in to other formats.<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/downloads.sourceforge.net\/project\/sox\/sox\/14.4.1\/sox-14.4.1.tar.gz<br \/>\ntar -zxf sox-14.4.1.tar.gz<br \/>\ncd sox-14.4.1<br \/>\n.\/configure<br \/>\nmake -s<br \/>\nmake install<\/p>\n<p><strong><em>TTYLOAD:<\/em><\/strong><\/p>\n<p><em>ttyload is a simple terminal application that shows the processor load in a graphical time-based scrolling graph. I use it to view how loaded the system is and it visualizes load spikes very well.<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/download.vicidial.com\/required-apps\/ttyload-0.5.tar.gz<br \/>\ntar -xvzf ttyload-0.5.tar.gz<br \/>\ncd ttyload-0.5<br \/>\nnano ttyload.h<\/p>\n<p>insert this #include directive just above the #define directives, then save and close the ttyload.h file<br \/>\n#include &lt;time.h&gt;<\/p>\n<p>make<br \/>\nln -s \/usr\/src\/ttyload-0.5\/ttyload \/usr\/bin\/ttyload<\/p>\n<p><strong><em>IFTOP:<\/em><\/strong><\/p>\n<p><em>iftop is a good console bandwidth visualization tool that shows you active connections, where they are going to\/from and how much of your precious bandwidth they are using.<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/www.ex-parrot.com\/~pdw\/iftop\/download\/iftop-0.17.tar.gz<br \/>\ntar -zxf iftop-0.17.tar.gz<br \/>\ncd iftop-0.17<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<\/p>\n<p><strong><em>MTOP:<\/em><\/strong><\/p>\n<p><em>mtop is a great utility for real-time monitoring of mysql and the queries that are running in it.<br \/>\nNote: the root mysql password must be blank before installing this<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/download.vicidial.com\/required-apps\/mtop-0.6.6.tar.gz<br \/>\ntar -zxf mtop-0.6.6.tar.gz<br \/>\ncd mtop-0.6.6<br \/>\nperl Makefile.PL<br \/>\nmake<br \/>\nmake install<\/p>\n<p><strong><em>MYTOP<\/em><\/strong>:<\/p>\n<p><em>mytop is is an optional utility for monitoring the threads and overall performance of mysql<br \/>\nNote: the root mysql password must be blank before installing this<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/jeremy.zawodny.com\/mysql\/mytop\/mytop-1.6.tar.gz<br \/>\ntar -zxf mytop-1.6.tar.gz<br \/>\ncd mytop-1.6<br \/>\nperl Makefile.PL<br \/>\nmake<br \/>\nmake test<br \/>\nmake install<\/p>\n<p><strong><em>HTOP:<\/em><\/strong><\/p>\n<p><em>htop is an interactive process viewer for Linux<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/downloads.sourceforge.net\/project\/htop\/htop\/1.0.2\/htop-1.0.2.tar.gz<br \/>\ntar -zxf htop-1.0.2.tar.gz<br \/>\ncd htop-1.0.2<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<\/p>\n<p><strong><em>SIPSAK:<\/em><\/strong><\/p>\n<p><em>sipsak is an optional utility that VICIDIAL can use to send messages to an agent&#8217;s SIP-based phone(like the Snom 320) to display text on their LCD screen.<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/download.vicidial.com\/required-apps\/sipsak-0.9.6-1.tar.gz<br \/>\ntar -zxf sipsak-0.9.6-1.tar.gz<br \/>\ncd sipsak-0.9.6<br \/>\n.\/configure<br \/>\nmake<br \/>\nmake install<br \/>\n\/usr\/local\/bin\/sipsak &#8211;version<\/p>\n<p><strong><em>PLOTICUS:<\/em><\/strong><\/p>\n<p><em>ploticus is a free graph creation package that allows you to create line graphs within PNG files simply by creating a config file and a data file. ViciDial uses this package to generate server performance graphs that can be displayed real-time within the ViciDial reports page.<\/em><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/downloads.sourceforge.net\/project\/ploticus\/ploticus\/2.42\/ploticus242_src.tar.gz<br \/>\ntar -zxf ploticus242_src.tar.gz<br \/>\ncd ploticus242\/src\/<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\nmkdir -p \/var\/www\/html\/vicidial\/ploticus\/<br \/>\ncp pl \/var\/www\/html\/vicidial\/ploticus\/<\/p>\n<p><strong><em>eAccelerator :<\/em><\/strong><\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/downloads.sourceforge.net\/project\/eaccelerator\/eaccelerator\/eAccelerator%200.9.6.1\/eaccelerator-0.9.6.1.zip<br \/>\nunzip eaccelerator-0.9.6.1.zip<br \/>\ncd eaccelerator-0.9.6.1<br \/>\nexport PHP_PREFIX=&#8221;\/usr&#8221;<br \/>\n$PHP_PREFIX\/bin\/phpize<br \/>\n.\/configure &#8211;enable-eaccelerator=shared &#8211;with-php-config=$PHP_PREFIX\/bin\/php-config<br \/>\nmake<br \/>\nmake install<\/p>\n<p><strong><em>Configure php.ini<\/em><\/strong><\/p>\n<p>vi \/etc\/php.ini<\/p>\n<p>Change the following values in your php.ini file.<\/p>\n<p>Customize the date.timezone so you don&#8217;t end up with a bunch of php errors complaining about it not being defined.<\/p>\n<p>error_reporting\u00a0 =\u00a0 E_ALL &amp; ~E_NOTICE<\/p>\n<p>memory_limit = 48M<\/p>\n<p>short_open_tag = On<\/p>\n<p>max_execution_time = 330<\/p>\n<p>max_input_time = 360<\/p>\n<p>post_max_size = 48M<\/p>\n<p>upload_max_filesize = 42M<\/p>\n<p>default_socket_timeout = 360<\/p>\n<p>date.timezone = Asia\/Kolkata<\/p>\n<p>Add the following lines to the dynamic extensions section of php.ini:<\/p>\n<p>Note: For CentOS 32-bit, use this below: <strong>zend_extension=&#8221;\/usr\/lib\/php\/modules\/eaccelerator.so&#8221;<\/strong><\/p>\n<p>;Dynamic Extensions<\/p>\n<p>zend_extension=&#8221;\/usr\/lib64\/php\/modules\/eaccelerator.so&#8221;<\/p>\n<p>;For CentOS 32-bit: zend_extension=&#8221;\/usr\/lib\/php\/modules\/eaccelerator.so&#8221;<\/p>\n<p>eaccelerator.shm_size=&#8221;48&#8243;<\/p>\n<p>eaccelerator.cache_dir=&#8221;\/tmp\/eaccelerator&#8221;<\/p>\n<p>eaccelerator.enable=&#8221;1&#8243;<\/p>\n<p>eaccelerator.optimizer=&#8221;1&#8243;<\/p>\n<p>eaccelerator.check_mtime=&#8221;1&#8243;<\/p>\n<p>eaccelerator.debug=&#8221;0&#8243;<\/p>\n<p>eaccelerator.filter=&#8221;&#8221;<\/p>\n<p>eaccelerator.shm_max=&#8221;0&#8243;<\/p>\n<p>eaccelerator.shm_ttl=&#8221;0&#8243;<\/p>\n<p>eaccelerator.shm_prune_period=&#8221;0&#8243;<\/p>\n<p>eaccelerator.shm_only=&#8221;0&#8243;<\/p>\n<p>eaccelerator.compress=&#8221;1&#8243;<\/p>\n<p>eaccelerator.compress_level=&#8221;9&#8243;<\/p>\n<p>mkdir \/tmp\/eaccelerator<br \/>\nchmod 0777 \/tmp\/eaccelerator<br \/>\nphp \u2013v<\/p>\n<p><strong><em>Editing the Apache config file<\/em><\/strong><\/p>\n<p><strong>vi \/etc\/httpd\/conf\/httpd.conf<\/strong><\/p>\n<p>To disable logging, change:<\/p>\n<p>CustomLog logs\/access_log common<\/p>\n<p>to this:<\/p>\n<p>CustomLog \/dev\/null common<\/p>\n<p><strong><em>To enable web browsing of Recordings on Asterisk server, add the below line\u00a0 at last line of httpd.conf<\/em><\/strong><\/p>\n<p>Alias \/RECORDINGS\/ &#8220;\/var\/spool\/asterisk\/monitorDONE\/&#8221;<\/p>\n<p>&lt;Directory &#8220;\/var\/spool\/asterisk\/monitorDONE&#8221;&gt;<br \/>\nOptions Indexes MultiViews<br \/>\nAllowOverride None<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n&lt;files *.mp3&gt;<br \/>\nForcetype application\/forcedownload<br \/>\n&lt;\/files&gt;<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>Restart the Apache web server to apply the changes<\/p>\n<p>service httpd restart<br \/>\nchkconfig httpd on<\/p>\n<p><strong><em>Installing Asterisk<\/em><\/strong><\/p>\n<p><em>Any time you upgrade the Linux kernel you must recompile\/install dahdi for the new kernel.<\/em><\/p>\n<p><em>Asterisk must be compiled with dahdi support.<\/em><\/p>\n<p><strong><em>Note: The install MUST be done in the following order:<\/em><\/strong><\/p>\n<p><em>Minor note: <strong>dahdi-linux-complete-current.tar.gz<\/strong> and <strong>libpri-1.4-current.tar.gz<\/strong> may contain an updated version than what I am currently using, therefore the directory names may be different than shown below.<\/em><\/p>\n<p>mkdir \/usr\/src\/asterisk<br \/>\ncd \/usr\/src\/asterisk<br \/>\nwget http:\/\/download.vicidial.com\/required-apps\/asterisk-11.18.0-vici-beta.tar.gz<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/dahdi-linux-complete\/dahdi-linux-complete-current.tar.gz<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/libpri\/libpri-1.4-current.tar.gz<br \/>\ntar -zxf asterisk-11.18.0-vici-beta.tar.gz<br \/>\ntar -zxf dahdi-linux-complete-current.tar.gz<br \/>\ntar -zxf libpri-1.4-current.tar.gz<br \/>\ncd ..\/dahdi-linux-complete-2.9.1.1+2.9.1 \u00a0; change as per the current dahdi version<br \/>\nmake clean<br \/>\nmake all<br \/>\nmake install<br \/>\nmake config<br \/>\ncd ..\/..\/libpri-1.4.15<br \/>\nmake clean<br \/>\nmake<br \/>\nmake install<br \/>\ncd ..\/asterisk-11.18.0-vici-beta<br \/>\nnote: for 32 bit os type<br \/>\n.\/configure<br \/>\nnote for 64bit os type<br \/>\n.\/configure &#8211;libdir=\/usr\/lib64<br \/>\nmake menuselect \u00a0 \u00a0; select the app_meetme in application<br \/>\nmake<br \/>\nmake install<br \/>\nmake samples<br \/>\nmake config<\/p>\n<p>chkconfig asterisk on<\/p>\n<p>service dahdi restart<br \/>\nchkconfig dahdi on<br \/>\nmodprobe dahdi<\/p>\n<p><strong><em>Installing audio files<\/em><\/strong><\/p>\n<p>Download the audio files<\/p>\n<p>cd \/usr\/src<br \/>\nwget http:\/\/downloads.digium.com\/pub\/telephony\/sounds\/asterisk-core-sounds-en-ulaw-current.tar.gz<br \/>\nwget http:\/\/downloads.digium.com\/pub\/telephony\/sounds\/asterisk-core-sounds-en-wav-current.tar.gz<br \/>\nwget http:\/\/downloads.digium.com\/pub\/telephony\/sounds\/asterisk-core-sounds-en-gsm-current.tar.gz<br \/>\nwget http:\/\/downloads.digium.com\/pub\/telephony\/sounds\/asterisk-extra-sounds-en-ulaw-current.tar.gz<br \/>\nwget http:\/\/downloads.digium.com\/pub\/telephony\/sounds\/asterisk-extra-sounds-en-wav-current.tar.gz<br \/>\nwget http:\/\/downloads.digium.com\/pub\/telephony\/sounds\/asterisk-extra-sounds-en-gsm-current.tar.gz<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/sounds\/asterisk-moh-opsound-gsm-current.tar.gz<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/sounds\/asterisk-moh-opsound-ulaw-current.tar.gz<br \/>\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/sounds\/asterisk-moh-opsound-wav-current.tar.gz<\/p>\n<p><strong><em>Place the audio files in their proper places<\/em><\/strong><\/p>\n<p>cd \/var\/lib\/asterisk\/sounds<br \/>\ntar -zxf \/usr\/src\/asterisk-core-sounds-en-gsm-current.tar.gz<br \/>\ntar -zxf \/usr\/src\/asterisk-core-sounds-en-ulaw-current.tar.gz<br \/>\ntar -zxf \/usr\/src\/asterisk-core-sounds-en-wav-current.tar.gz<br \/>\ntar -zxf \/usr\/src\/asterisk-extra-sounds-en-gsm-current.tar.gz<br \/>\ntar -zxf \/usr\/src\/asterisk-extra-sounds-en-ulaw-current.tar.gz<br \/>\ntar -zxf \/usr\/src\/asterisk-extra-sounds-en-wav-current.tar.gz<\/p>\n<p>mkdir \/var\/lib\/asterisk\/mohmp3<br \/>\nmkdir \/var\/lib\/asterisk\/quiet-mp3<br \/>\nln -s \/var\/lib\/asterisk\/mohmp3 \/var\/lib\/asterisk\/default<\/p>\n<p>cd \/var\/lib\/asterisk\/mohmp3<br \/>\ntar -zxf \/usr\/src\/asterisk-moh-opsound-gsm-current.tar.gz<br \/>\ntar -zxf \/usr\/src\/asterisk-moh-opsound-ulaw-current.tar.gz<br \/>\ntar -zxf \/usr\/src\/asterisk-moh-opsound-wav-current.tar.gz<br \/>\nrm -f CHANGES*<br \/>\nrm -f LICENSE*<br \/>\nrm -f CREDITS*<\/p>\n<p>cd \/var\/lib\/asterisk\/moh<br \/>\nrm -f CHANGES*<br \/>\nrm -f LICENSE*<br \/>\nrm -f CREDITS*<\/p>\n<p>cd \/var\/lib\/asterisk\/sounds<br \/>\nrm -f CHANGES*<br \/>\nrm -f LICENSE*<br \/>\nrm -f CREDITS*<\/p>\n<p>cd \/var\/lib\/asterisk\/quiet-mp3<br \/>\nsox ..\/mohmp3\/macroform-cold_day.wav macroform-cold_day.wav vol 0.25<br \/>\nsox ..\/mohmp3\/macroform-cold_day.gsm macroform-cold_day.gsm vol 0.25<br \/>\nsox -t ul -r 8000 -c 1 ..\/mohmp3\/macroform-cold_day.ulaw -t ul macroform-cold_day.ulaw vol 0.25<br \/>\nsox ..\/mohmp3\/macroform-robot_dity.wav macroform-robot_dity.wav vol 0.25<br \/>\nsox ..\/mohmp3\/macroform-robot_dity.gsm macroform-robot_dity.gsm vol 0.25<br \/>\nsox -t ul -r 8000 -c 1 ..\/mohmp3\/macroform-robot_dity.ulaw -t ul macroform-robot_dity.ulaw vol 0.25<br \/>\nsox ..\/mohmp3\/macroform-the_simplicity.wav macroform-the_simplicity.wav vol 0.25<br \/>\nsox ..\/mohmp3\/macroform-the_simplicity.gsm macroform-the_simplicity.gsm vol 0.25<br \/>\nsox -t ul -r 8000 -c 1 ..\/mohmp3\/macroform-the_simplicity.ulaw -t ul macroform-the_simplicity.ulaw vol 0.25<br \/>\nsox ..\/mohmp3\/reno_project-system.wav reno_project-system.wav vol 0.25<br \/>\nsox ..\/mohmp3\/reno_project-system.gsm reno_project-system.gsm vol 0.25<br \/>\nsox -t ul -r 8000 -c 1 ..\/mohmp3\/reno_project-system.ulaw -t ul reno_project-system.ulaw vol 0.25<br \/>\nsox ..\/mohmp3\/manolo_camp-morning_coffee.wav manolo_camp-morning_coffee.wav vol 0.25<br \/>\nsox ..\/mohmp3\/manolo_camp-morning_coffee.gsm manolo_camp-morning_coffee.gsm vol 0.25<br \/>\nsox -t ul -r 8000 -c 1 ..\/mohmp3\/manolo_camp-morning_coffee.ulaw -t ul manolo_camp-morning_coffee.ulaw vol 0.25<\/p>\n<p><strong><em>Installing astGUIclient (ViciDial)<\/em><\/strong><\/p>\n<p>First, login to mysql to create the database, add a couple users and assign privileges.<\/p>\n<p>mysql -u root \u2013p<\/p>\n<p>Enter these MySQL commands:<\/p>\n<p>CREATE DATABASE `asterisk` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<\/p>\n<p>CREATE USER &#8216;cron&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;1234&#8217;;<br \/>\nGRANT SELECT,INSERT,UPDATE,DELETE,LOCK TABLES on asterisk.* TO cron@&#8217;%&#8217; IDENTIFIED BY &#8216;1234&#8217;;<br \/>\nGRANT SELECT,INSERT,UPDATE,DELETE,LOCK TABLES on asterisk.* TO cron@localhost IDENTIFIED BY &#8216;1234&#8217;;<br \/>\nGRANT RELOAD ON *.* TO cron@&#8217;%&#8217;;<br \/>\nGRANT RELOAD ON *.* TO cron@localhost;<br \/>\nflush privileges;<br \/>\nquit<\/p>\n<p>I am going to install the latest 2.x SVN trunk which supports asterisk 11<\/p>\n<p>mkdir \/usr\/src\/astguiclient<br \/>\ncd \/usr\/src\/astguiclient<br \/>\nsvn checkout svn:\/\/svn.eflo.net:3690\/agc_2-X\/trunk<br \/>\ncd trunk<br \/>\nperl install.pl<\/p>\n<p>You will have to define various things like IP address of the server<\/p>\n<p>It will also ask you where is the web root, use <strong>\/var\/www\/html<\/strong><br \/>\n<strong>make sure to enter 11 for asterisk version<\/strong><br \/>\n<strong>and y for copy sample config files<\/strong><\/p>\n<p>Leave the other login settings as-is unless you already know how to update the database and other asterisk config files.<\/p>\n<p><strong>Import sample data<\/strong><\/p>\n<p>Login to mysql to run some commands<\/p>\n<p>mysql -u root -p<\/p>\n<p>Enter these MySQL commands:<\/p>\n<p>mysql&gt;SET GLOBAL connect_timeout=60;<br \/>\nmysql&gt;use asterisk;<\/p>\n<p>mysql&gt;\\. \/usr\/src\/astguiclient\/trunk\/extras\/MySQL_AST_CREATE_tables.sql<br \/>\nmysql&gt;\\. \/usr\/src\/astguiclient\/trunk\/extras\/first_server_install.sql<br \/>\nmysql&gt;\\. \/usr\/src\/astguiclient\/trunk\/extras\/sip-iax_phones.sql<\/p>\n<p>mysql&gt;quit<\/p>\n<p>In the Linux terminal, enter these commands<\/p>\n<p>\/usr\/share\/astguiclient \/ADMIN_area_code_populate.pl<\/p>\n<p><strong>Final Adjustments<\/strong><\/p>\n<p>Make several entries in the rc.local of your system.<\/p>\n<p>vi \/etc\/rc.d\/rc.local<\/p>\n<p>On a new system I just overwrite the file with the following:<\/p>\n<p>#!\/bin\/sh<\/p>\n<p>#<\/p>\n<p># This script will be executed *after* all the other init scripts.<\/p>\n<p># You can put your own initialization stuff in here if you don&#8217;t<\/p>\n<p># want to do the full Sys V style init stuff.<\/p>\n<p>touch \/var\/lock\/subsys\/local<\/p>\n<p># OPTIONAL enable ip_relay(for same-machine trunking and blind monitoring)<\/p>\n<p>\/usr\/share\/astguiclient\/ip_relay\/relay_control start 2&gt;\/dev\/null 1&gt;&amp;2<\/p>\n<p># Disable console blanking and powersaving<\/p>\n<p>\/usr\/bin\/setterm -blank<\/p>\n<p>\/usr\/bin\/setterm -powersave off<\/p>\n<p>\/usr\/bin\/setterm -powerdown<\/p>\n<p>### start up the MySQL server<\/p>\n<p>\/etc\/init.d\/mysqld start<\/p>\n<p>### start up the apache web server<\/p>\n<p>\/etc\/init.d\/httpd start<\/p>\n<p>### roll the Asterisk logs upon reboot<\/p>\n<p>\/usr\/share\/astguiclient\/ADMIN_restart_roll_logs.pl<\/p>\n<p>### clear the server-related records from the database<\/p>\n<p>\/usr\/share\/astguiclient\/AST_reset_mysql_vars.pl<\/p>\n<p>### load dahdi drivers<\/p>\n<p>modprobe dahdi<\/p>\n<p>\/usr\/sbin\/dahdi_cfg -vvvvvvvvvvvvv<\/p>\n<p>### sleep for 20 seconds before launching Asterisk<\/p>\n<p>sleep 20<\/p>\n<p>### start up asterisk<\/p>\n<p>\/usr\/share\/astguiclient\/start_asterisk_boot.pl<br \/>\nMake several entries in the crontab of your system:<\/p>\n<p>crontab \u2013e<\/p>\n<p>### recording mixing\/compressing\/ftping scripts<\/p>\n<p>#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * \/usr\/share\/astguiclient\/AST_CRON_audio_1_move_mix.pl<\/p>\n<p>0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * \/usr\/share\/astguiclient\/AST_CRON_audio_1_move_mix.pl &#8211;MIX<\/p>\n<p>0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * \/usr\/share\/astguiclient\/AST_CRON_audio_1_move_VDonly.pl<\/p>\n<p>1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * \/usr\/share\/astguiclient\/AST_CRON_audio_2_compress.pl \u2013-MP3<\/p>\n<p>#2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * \/usr\/share\/astguiclient\/AST_CRON_audio_3_ftp.pl &#8211;GSM<\/p>\n<p>### keepalive script for astguiclient processes<\/p>\n<p>* * * * * \/usr\/share\/astguiclient\/ADMIN_keepalive_ALL.pl &#8211;cu3way<\/p>\n<p>### kill Hangup script for Asterisk updaters<\/p>\n<p>* * * * * \/usr\/share\/astguiclient\/AST_manager_kill_hung_congested.pl<\/p>\n<p>### updater for voicemail<\/p>\n<p>* * * * * \/usr\/share\/astguiclient\/AST_vm_update.pl<\/p>\n<p>### updater for conference validator<\/p>\n<p>* * * * * \/usr\/share\/astguiclient\/AST_conf_update.pl<\/p>\n<p>### flush queue DB table every hour for entries older than 1 hour<\/p>\n<p>11 * * * * \/usr\/share\/astguiclient\/AST_flush_DBqueue.pl -q<\/p>\n<p>### fix the vicidial_agent_log once every hour and the full day run at night<\/p>\n<p>33 * * * * \/usr\/share\/astguiclient\/AST_cleanup_agent_log.pl<\/p>\n<p>50 0 * * * \/usr\/share\/astguiclient\/AST_cleanup_agent_log.pl &#8211;last-24hours<\/p>\n<p>## uncomment below if using QueueMetrics<\/p>\n<p>#*\/5 * * * * \/usr\/share\/astguiclient\/AST_cleanup_agent_log.pl &#8211;only-qm-live-call-check<\/p>\n<p>## uncomment below if using Vtiger<\/p>\n<p>#1 1 * * * \/usr\/share\/astguiclient\/Vtiger_optimize_all_tables.pl &#8211;quiet<\/p>\n<p>### updater for VICIDIAL hopper<\/p>\n<p>* * * * * \/usr\/share\/astguiclient\/AST_VDhopper.pl -q<\/p>\n<p>### adjust the GMT offset for the leads in the vicidial_list table<\/p>\n<p>1 1,7 * * * \/usr\/share\/astguiclient\/ADMIN_adjust_GMTnow_on_leads.pl &#8211;debug<\/p>\n<p>### reset several temporary-info tables in the database<\/p>\n<p>2 1 * * * \/usr\/share\/astguiclient\/AST_reset_mysql_vars.pl<\/p>\n<p>### optimize the database tables within the asterisk database<\/p>\n<p>3 1 * * * \/usr\/share\/astguiclient\/AST_DB_optimize.pl<\/p>\n<p>## adjust time on the server with ntp<\/p>\n<p>30 * * * * \/usr\/sbin\/ntpdate -u pool.ntp.org 2&gt;\/dev\/null 1&gt;&amp;2<\/p>\n<p>### VICIDIAL agent time log weekly and daily summary report generation<\/p>\n<p>2 0 * * 0 \/usr\/share\/astguiclient\/AST_agent_week.pl<\/p>\n<p>22 0 * * * \/usr\/share\/astguiclient\/AST_agent_day.pl<\/p>\n<p>### VICIDIAL campaign export scripts (OPTIONAL)<\/p>\n<p>#32 0 * * * \/usr\/share\/astguiclient\/AST_VDsales_export.pl<\/p>\n<p>#42 0 * * * \/usr\/share\/astguiclient\/AST_sourceID_summary_export.pl<\/p>\n<p>### remove old recordings more than 7 days old<\/p>\n<p>#24 0 * * * \/usr\/bin\/find \/var\/spool\/asterisk\/monitorDONE -maxdepth 2 -type f -mtime +7 -print | xargs rm -f<\/p>\n<p>### roll logs monthly on high-volume dialing systems<\/p>\n<p>#30 1 1 * * \/usr\/share\/astguiclient\/ADMIN_archive_log_tables.pl<\/p>\n<p>### remove old vicidial logs and asterisk logs more than 2 days old<\/p>\n<p>28 0 * * * \/usr\/bin\/find \/var\/log\/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f<\/p>\n<p>29 0 * * * \/usr\/bin\/find \/var\/log\/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f<\/p>\n<p>30 0 * * * \/usr\/bin\/find \/ -maxdepth 1 -name &#8220;screenlog.0*&#8221; -mtime +4 -print | xargs rm -f<\/p>\n<p>### cleanup of the scheduled callback records<\/p>\n<p>25 0 * * * \/usr\/share\/astguiclient\/AST_DB_dead_cb_purge.pl &#8211;purge-non-cb -q<\/p>\n<p>### GMT adjust script &#8211; uncomment to enable<\/p>\n<p>#45 0 * * * \/usr\/share\/astguiclient\/ADMIN_adjust_GMTnow_on_leads.pl &#8211;list-settings<\/p>\n<p>### Dialer Inventory Report<\/p>\n<p>1 7 * * * \/usr\/share\/astguiclient\/AST_dialer_inventory_snapshot.pl -q &#8211;override-24hours<\/p>\n<p>### inbound email parser<\/p>\n<p>* * * * * \/usr\/share\/astguiclient\/AST_inbound_email_parser.pl<\/p>\n<p>&nbsp;<\/p>\n<p>Run this perl script to update the server_ip fields in the asterisk tables (copy the command as- it is)<\/p>\n<p>\/usr\/share\/astguiclient\/ADMIN_update_server_ip.pl &#8211;old-server_ip=10.10.10.15<\/p>\n<p>Update music on hold configuration<\/p>\n<p>vi \/etc\/asterisk\/musiconhold.conf\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; remove the word old<\/p>\n<p>;<\/p>\n<p>; Music on Hold &#8212; Sample Configuration<\/p>\n<p>;<\/p>\n<p>[default]<\/p>\n<p>mode=files<\/p>\n<p>directory=\/var\/lib\/asterisk\/mohmp3<\/p>\n<p>[quiet]<\/p>\n<p>mode=files<\/p>\n<p>directory=\/var\/lib\/asterisk\/quiet-mp3<\/p>\n<p>#include musiconhold-vicidial.conf<\/p>\n<p>Lastly, reboot the machine<\/p>\n<p>reboot<\/p>\n<p><strong>Diagnostics<\/strong><\/p>\n<p>After reboot, check your logs for any errors, make sure asterisk is up and running.<\/p>\n<p><strong>Be proactive and look for problems before you start configuring vicidial.<\/strong><\/p>\n<p>Run these commands to view log files:<\/p>\n<p>tail -f -n 50 \/var\/log\/asterisk\/messages<\/p>\n<p>tail -f -n 50 \/var\/log\/messages<\/p>\n<p>more \/var\/log\/dmesg<\/p>\n<p>tail -f -n 40 \/etc\/httpd\/logs\/error_log<\/p>\n<p>tail -f -n 40 \/var\/log\/maillog<\/p>\n<p>tail -f -n 40 \/var\/log\/cron<\/p>\n<p>Run this command:<\/p>\n<p>screen -ls<\/p>\n<p>The output should look similar to this: 9or 10 sockets<\/p>\n<p>There are screens on:<\/p>\n<p>2307.ASTVDauto \u00a0(Detached)<br \/>\n2147.astshell20140626063212 \u00a0 \u00a0 (Detached)<br \/>\n2105.ASTVDadapt (Detached)<br \/>\n2304.ASTlisten \u00a0(Detached)<br \/>\n2301.ASTsend \u00a0 \u00a0(Detached)<br \/>\n2153.asterisk \u00a0 (Detached)<br \/>\n2109.ASTconf3way \u00a0 \u00a0 \u00a0 \u00a0(Detached)<br \/>\n2107.ASTfastlog (Detached)<br \/>\n2310.ASTVDremote \u00a0 \u00a0 \u00a0 \u00a0(Detached)<br \/>\n2298.ASTupdate \u00a0(Detached)<br \/>\n10 Sockets in \/var\/run\/screen\/S-root.<\/p>\n<p><strong>Start using vicidial<\/strong><\/p>\n<p>Login to vicidial and configure it.<\/p>\n<p>Add users, campaigns, in-group, DID&#8217;s, server, etc&#8230;.<\/p>\n<p>Go to: http:\/\/youripaddress\/vicidial\/admin.php<\/p>\n<p>The default username is: 6666 and the password is: 1234<\/p>\n<p>&nbsp;<\/p>\n<p>References.<\/p>\n<p><a href=\"http:\/\/downloads.vicidial.com\/vicidial\/trunk\/docs\/SCRATCH_INSTALL.txt\">http:\/\/downloads.vicidial.com\/vicidial\/trunk\/docs\/SCRATCH_INSTALL.txt<\/a><\/p>\n<p><a href=\"http:\/\/ray-solomon.com\/vicidial.html\">http:\/\/ray-solomon.com\/vicidial.html<\/a><\/p>\n<p><a href=\"http:\/\/download.vicidial.com\/ubuntu\/VICIdial_for_Dummies_20100331.pdf\">http:\/\/download.vicidial.com\/ubuntu\/VICIdial_for_Dummies_20100331.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps Involved Centos 6.X os installation Dependencies , supporting software and CPAN Modules Asterisk , dahdi , libpri installation Vicidial installation For vicidial installation with asterisk 1.8 check this link Step 1 : Centos 6.X\u00a0 installation The Centos 6.X can be download from the following Link http:\/\/wiki.centos.org\/Download Centos 6.X installation steps can be found from ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/symbioticindia.in\/docu\/2016\/06\/03\/vicdial-asterisk-11-scratch-install-in-centos\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,23],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-asterisk","category-vicidial"],"_links":{"self":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":1,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":123,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/122\/revisions\/123"}],"wp:attachment":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}