Project

General

Profile

Step By Step Scratch install Goautodial V4 with FQDN

Added by Steve Turner over 4 years ago

GOAUTODIAL VER4 SCRATCH INSTALL ALL REQUIREMENTS INCLUDING FQDN

I have spent quite a few days to build a server that will function with FQDN and is ready to be clustered. Going through all of the forums and have pieced together this guide that I use now. This has been a trial and error process, and I wanted to share with everyone and show my appreciation to all that have been involved with this forum and help sections. The only part that is not included is the LetsEncrypt or other SSL certificates, this still uses the Self-Signed certs. The ONLY security I have included in this walkthrough is changing the SSH port. Be sure to change passwords, add MYSQL root password (mysql_secure_installation) and use the IP tables or FIREWALLD. IPTABLES are installed and a sample config file available on install, be sure to change the SSH port in the IPTABLES script before using it or you will be locked out.

Installing the PERL scripts and a few missing dependencies eliminate some of the bugs people encounter here in the forum, changing the file ownership after GIT update seems to reduce the CPU high load issues and less NOTICES in the logs. GOOD LUCK TO YOU ALL.

STOP AND DISABLE FIREWALL:

systemctl disable firewalld
systemctl stop firewalld

DISABLE SELINUX:

vi /etc/selinux/config
SELINUX=disabled (Change to disabled)

UPDATE HOSTNAME:

hostnamectl set-hostname xxxxxx.xxxxx.xxx
vi /etc/hosts
change domain name for actual server ip (xxx.xxx.xxx.xxx complete domain name subdomain only)

CHANGE SSH PORT: (remember this or you will be locked out)

vi /etc/ssh/sshd_config
uncomment #Port and change to preferred new port number

UPDATE SYSTEM:

yum install wget -y

cd /etc/yum.repos.d/
wget http://downloads2.goautodial.org/centos/7/goautodial.repo

yum update -y

reboot (use new port number if was changed)

INSTALL DEPENDENCIES:

yum install -y epel-release
yum groupinstall "Development Tools" -y

wget https://rpm.mag-sol.com/Centos/7/x86_64/perl-Sys-RunAlone-0.12-1.el7.centos.noarch.rpm
rpm -i perl-Sys-RunAlone-0.12-1.el7.centos.noarch.rpm

yum install y MariaDB-server MariaDB-devel php70w-mysql php70w-mcrypt php70w-devel php70w-mbstring php70w-common php70w-xml php70w-pear php70w-cli php70w-imap php70w-fpm php70w-gd php70w>opcache php70w-pdo php70w-process php70w php70w-intl php70w-pear.noarch php70w-xmlrpc asterisk-mysql-13.17.2-vici.el7.centos.x86_64 asterisk-perl-0.08-2.go.x86_64 asterisk-voicemail-plain->13.17.2-vici.el7.centos.x86_64 asterisk-devel-13.17.2-vici.el7.centos.x86_64 asterisk-voicemail-13.17.2-vici.el7.centos.x86_64 asterisk-alsa-13.17.2-vici.el7.centos.x86_64 asterisk-sip->13.17.2-vici.el7.centos.x86_64 asterisk-13.17.2-vici.el7.centos.x86_64 asterisk-dahdi-13.17.2-vici.el7.centos.x86_64 asterisk-iax2-13.17.2-vici.el7.centos.x86_64 asterisk-mp3-13.17.2->vici.el7.centos.x86_64 kamailio-tls kamailio kamailio-mysql kamailio-ims kamailio-utils kamailio-websocket kamailio-json perl-Math-Round perl-File-Touch perl-Sys-RunAlone perl-Switch perl->Time-Local ngcp-rtpengine ngcp-rtpengine-kernel ngcp-rtpengine-dkms dkms dahdi-linux dahdi-linux-devel kernel-devel perl-DBD-mysql perl-Net-Telnet lame httpd mod_ssl screen crontabs mailx net->tools readline readline-devel ncurses ncurses-devel tk tk-devel htop perl-DBI perl-Digest-HMAC perl-YAML perl-ExtUtils-ParseXS perl-NetAddr-IP perl-Crypt-SSLeay perl-Curses perl-DBD-Pg perl->Module-ScanDeps perl-Text-CSV perl-HTML-Template perl-IO-Compress perl-Text-Glob perl-Jcode perl-Test-Script perl-Archive-Tar perl-Test-Base perl-OLE-Storage_Lite perl-Archive-Zip perl-Net->Server perl-Convert-ASN1 perl perl-Compress-Raw-Zlib perl-Digest-SHA1 perl-Data-Dumper perl-Error perl-ExtUtils-CBuilder perl-Test-Tester perl-Parse-RecDescent perl-Spiffy perl-IO-Zlib perl->Module-Build perl-HTML-Parser perl-Net-SSLeay perl-Proc-ProcessTable perl-TermReadKey perl-Term-ReadLine-Gnu perl-Digest-SHA perl-Tk perl-Net-SNMP perl-Test-NoWarnings perl-XML-Writer perl->Proc-PID-File perl-Compress-Raw-Bzip2 perl-libwww-perl perl-XML-Parser perl-File-Remove perl-Parse-CPAN-Meta perl-Set-Scalar perl-Probe-Perl perl-File-Which perl-Package-Constants perl-Module->Install perl-File-HomeDir perl-Spreadsheet-ParseExcel perl-Mail-Sendmail perl-Spreadsheet-XLSX perl-version perl-Crypt-DES perl-URI perl-Net-Daemon perl-IO-stringy perl-YAML-Tiny perl-HTML->Tagset perl-Socket6 perl-BSD-Resource perl-PlRPC perl-IPC-Run3 perl-Text-CSV_XS perl-Unicode-Map perl-Module-CoreList perl-Net-Telnet perl-PAR-Dist perl-Date-Manip perl-JSON perl-Proc-Daemon >perl-Spreadsheet-WriteExcel perl-rrdtool sox ntp iftop subversion glibc.i686 mod_fcgid

INSTALL CPAN and PERL SCRIPTS: (run twice or until all are installed with dependencies)

cpan -i Tk String::CRC Tk::TableMatrix Net::Address::IP::Local Term::ReadLine::Gnu Spreadsheet::Read Net::Address::IPv4::Local RPM::Specfile Spreadsheet::XLSX Spreadsheet::ReadSXC

SHOULD HAVE THIS OUTPUT ON CONSOLE:

CPAN: Module::CoreList loaded ok (v2.76_02)
Tk is up to date (804.034).
String::CRC is up to date (1).
Tk::TableMatrix is up to date (1.23).
Net::Address::IP::Local is up to date (0.1.2).
Term::ReadLine::Gnu is up to date (1.36).
Spreadsheet::Read is up to date (0.80).
Net::Address::IPv4::Local is up to date (0.12).
RPM::Specfile is up to date (1.51).
Spreadsheet::XLSX is up to date (0.15).
Spreadsheet::ReadSXC is up to date (0.20).

ENABLE SERVICES ON START-UP AND START MYSQL:

systemctl enable php-fpm
systemctl enable httpd
systemctl enable mariadb
systemctl enable kamailio
systemctl enable ngcp-rtpengine
systemctl start mariadb

INSTALL GOAUTODIAL:

yum -y install goautodial-ce
cd /usr/src/goautodial
./install.sh

reboot (seems databases are not created until after reboot,on some instances a HARD REBOOT is required)

CONFIRM DATABASES CREATED:

mysql
MariaDB [(none)]>show databases;

Should show 8 Databases
asterisk
goautodial
information_schema
kamailio
mysql
osticketdb
performance_schema
test
8 rows in set (0.00 sec)

UPDATE GOAUTODIAL TABLE IN MYSQL:

use goautodial;
ALTER TABLE go_campaigns ADD COLUMN manual_dial_min_digits INT DEFAULT '6';
ALTER TABLE users ADD COLUMN enable_webrtc tinyint(1) DEFAULT '1';
quit;

UPDATE GOAUTODIAL WITH GIT:

cd /var/www/html
git stash
git pull

cd /var/www/html/goAPIv2
git stash
git pull

CHANGE FILE OWNERSHIP: (GIT files are replaced with ROOT as owner and need to be changed to APACHE owner)

chown apache.apache -R /var/www/html

UPDATE CRONTAB:

crontab -e (be sure to add --HTTPS to end of 4th line of recording scripts)

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 --MP3 --HTTPS

UPDATE IPs AND FQDN:

Kamailio:
vi /etc/kamailio/kamailio.cfg
Around line 136:
#!substdef "!MY_IP_ADDR!10.10.100.164!g" (use your IP address)
#!substdef "!MY_DOMAIN!xxxxx.xxxxx.xxx!g" (use your FQDN)

/* add local domain aliases */
alias="subdomain.domainname.com"
alias="domainname.com"

RTPEngine:
vi /etc/rtpengine/rtpengine.conf
Around line 8:
a single interface:
interface = 10.10.100.164 (use your IP address)

GOautodial web application
vi /var/www/html/php/goCRMAPISettings.php
Change IP address to your FQDN and then restart Kamailio and RTPEngine.

CHANGE KAMAILIO DOMAIN:

vi /etc/asterisk/sip-goautodial.conf

[kamailio]
;encryption=yes ;uncomment for TLS encryption
disallow=all
allow=opus
allow=ulaw
type=friend
dtmfmode=rfc2833
context=default
qualify=yes
nat=force_rport,comedia
host=xxxxxxx.xxxxxxx.xxx ;change me to my FQDN
insecure=port,invite

SET DOMAIN IN HTTP.CONF: (about line 95)

vi /etc/httpd/conf/httpd.conf
uncomment Servername and change to your FQDN (xxxx.xxxx.xxx:80)

UPDATE DEFAULT TIME ZONE: (about line 877)

vi /etc/php.ini
date.timezone = Asia/Manila (change to your timezone)

RUN UPDATE IP SCRIPT:

/usr/share/astguiclient/ADMIN_update_server_ip.pl (should show old IP as 127.0.0.1)

UPDATE SELF-SIGNED SSL CERT TO NEW DOMAIN:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/pki/tls/private/localhost.key -out /etc/pki/tls/certs/localhost.crt

CREATE LINK FOR RECORDINGS:

If you have an issue with recordings a solution is to manually create an symbolic link in
the folder html named RECORDINGS poiting to the file where asterisk store the recordings
files
.
cd /var/www/html
ln -s /var/spool/asterisk/monitorDONE/ RECORDINGS
If you get NOT AUTHORIZED errors you must change the chmod of all the folders in the
path /var/spool/asterisk/monitorDONE/MP3/.

REBOOT: (to be sure system survives reboot)

reboot

CHECK THEIR STATUSES:

systemctl status ngcp-rtpengine
systemctl status kamailio
asterisk -vvvvvr

LOG IN AS ADMIN:

https://FQDN
USER: goadmin
PASSWORD: G0autodial2018

ADMINISTRATION>SETTINGS:

Change Base URL to your FQDN
Change Company Name
Change Timezone

ADMINISTRATION>GOWEBRTCSETTINGS:

Change WebRTC Websocket to FQDN
Change WebRTC SIP Host/IP to FQDN
Change Kamailio Domain to FQDN

SETTINGS>SERVERS:

Advanced Settings:
Generate Conf Files: YES
Rebuild Conf Files: YES
Rebuild Music On Hold: YES
Alt Recording Server IP: FQDN
External Server IP: FQDN

SETTINGS>CARRIERS:

Create new SIP carrier (be sure to use 10 digits for DIAL PREFIX)

TELEPHONY>CAMPAIGNS>TEST CAMPAIGN:

Change to Dial Method MANUAL
Change Carrier to use for this Campaign to the newly created carrier
Change to 24hr dialing

REBOOT TO BE SURE NEW CONFIG FILES ARE USED:

reboot

TELEPHONY>USERS:

Create NEW ADMIN USER
Delete agent001 and create NEW USER

NOW YOU SHOULD HAVE A FULLY FUNCTIONAL GOAUTODIAL INSTANCE WITH FQDN:

In INCOGNITO browser, Login as newly created agent and test calls


Replies (30)

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Brent Gader over 4 years ago

I'm trying to follow this tutorial on VMware. At the end, I'm unable to login to dialer (after click, nothing happens). Also there is no options for mic and leads preview.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Steve Turner over 4 years ago

Check:
systemctl status ngcp-rtpengine
systemctl status kamailio

Also, are you trying to login with the IP address or FQDN?

Be sure this is correct:
vi /var/www/html/php/goCRMAPISettings.php
Change IP address to your FQDN

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Brent Gader over 4 years ago

I was trying to login via IP... I added my domain in Winodws host file so now I can login to the dialer. But I am still unable to dial out (also no audio conference prompt when I login into dialer).

This is asterisk log:

Connected to Asterisk 13.17.2-vici currently running on robo (pid = 1819)
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
Manager 'sendcron' logged on from 127.0.0.1
-- Called 8600051@default
-- Executing [8600051@default:1] Konference("Local/8600051@default-00000007;2", "8600051,R") in new stack
-- Local/8600051@default-00000007;1 answered
-- Executing [6712341231671234123@default:1] AGI("Local/8600051@default-00000007;1", "agi://127.0.0.1:4577/call_log") in new stack
Manager 'sendcron' logged off from 127.0.0.1
-- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=12904133))
-- <Local/8600051@default-00000007;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [6712341231671234123@default:2] Dial("Local/8600051@default-00000007;1", "SIP/1671234123@1,,tTo") in new stack
[Aug 6 23:35:10] WARNING5865[C-0000000e]: app_dial.c:2525 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
Everyone is busy/congested at this time (1:0/0/1)
-- Executing [6712341231671234123@default:3] Hangup("Local/8600051@default-00000007;1", "") in new stack
Spawn extension (default, 6712341231671234123, 3) exited non-zero on 'Local/8600051@default-00000007;1'
[Aug 6 23:35:10] WARNING5865[C-0000000e]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
-- Executing [h@default:1] AGI") in new stack
-- <Local/8600051@default-00000007;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------------) completed, returning 0
[Aug 6 23:35:10] ERROR5867[C-0000000d]: member.c:389 member_exec: unable to answer call
Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-00000007;2'
[Aug 6 23:35:10] WARNING[5867][C-0000000d]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
-- Executing [h@default:1] AGI("Local/8600051@default-00000007;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20--------------------)") in new stack
-- &lt;Local/8600051@default-00000007;2&gt;AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20--------------------) completed, returning 0
Manager 'sendcron' logged on from 127.0.0.1
-- Called 58600051@default
-- Executing [58600051@default:1] Konference("Local/58600051@default-00000008;2", "8600051,qLR") in new stack
-- Local/58600051@default-00000008;1 answered
-- Executing [8309@default:1] Answer("Local/58600051@default-00000008;1", "") in new stack
-- Executing [8309@default:2] Monitor("Local/58600051@default-00000008;1", "wav,20190806-233504_671234123_12904133_agent") in new stack
-- Executing [8309@default:3] Wait("Local/58600051@default-00000008;1", "3600") in new stack == Manager 'sendcron' logged off from 127.0.0.1
robo*CLI>

Kamailii is running but with some errors:
Aug 06 23:41:28 robo.xxx.xx /usr/sbin/kamailio1781: ERROR: <core> [core/parser/msg_parser.c:671]: parse_msg(): ERROR: parse_msg: message=<PING>
Aug 06 23:41:28 robo.xxx.xx /usr/sbin/kamailio1781: ERROR: <core> [core/parser/msg_parser.c:330]: parse_headers(): bad header field [(null)]
Aug 06 23:42:28 robo.xxx.xx /usr/sbin/kamailio1782: INFO: <core> [core/parser/parse_fline.c:87]: parse_first_line(): ERROR: parse_first_line: message too short: 4
Aug 06 23:42:28 robo.xxx.xx /usr/sbin/kamailio1782: ERROR: <core> [core/parser/parse_fline.c:257]: parse_first_line(): parse_first_line: bad message (offset: 0)
Aug 06 23:42:28 robo.xxx.xx /usr/sbin/kamailio1782: ERROR: <core> [core/parser/msg_parser.c:671]: parse_msg(): ERROR: parse_msg: message=<PING>
Aug 06 23:42:28 robo.xxx.xx /usr/sbin/kamailio1782: ERROR: <core> [core/parser/msg_parser.c:330]: parse_headers(): bad header field [(null)]
Aug 06 23:43:28 robo.xxx.xx /usr/sbin/kamailio1779: INFO: <core> [core/parser/parse_fline.c:87]: parse_first_line(): ERROR: parse_first_line: message too short: 4
Aug 06 23:43:28 robo.xxx.xx /usr/sbin/kamailio1779: ERROR: <core> [core/parser/parse_fline.c:257]: parse_first_line(): parse_first_line: bad message (offset: 0)
Aug 06 23:43:28 robo.xxx.xx /usr/sbin/kamailio1779: ERROR: <core> [core/parser/msg_parser.c:671]: parse_msg(): ERROR: parse_msg: message=<PING>
Aug 06 23:43:28 robo.xxx.xx /usr/sbin/kamailio1779: ERROR: <core> [core/parser/msg_parser.c:330]: parse_headers(): bad header field [(null)]

ngcp-rtpengine is running without errors.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Steve Turner over 4 years ago

be sure you are logging into the domain, not the IP address

double check your kamailio.cfg for the correct settings.
also, did you delete the original agent001 user and create new?
did you rebuild the self-signed SSL cert with the correct FQDN?
did you add new carrier with 10 digit DIAL PREFIX?
in the CAMPAIGN SETTINGS, did you change the CARRIER to the new on that you created?

reboot server
then log into asterisk (asterisk -vvvvvr)
what does (sip show peers) say?

and if you look at this line in your log (-- Executing [6712341231671234123@default:2] Dial("Local/8600051@default-00000007;1", "*SIP/1671234123@1,,tTo*") in new stack) should be SIP/1671234123@kamailio,,tTo. you have a setting or conf file bad.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Brent Gader over 4 years ago

Steve Turner wrote:

be sure you are logging into the domain, not the IP address

This helps a lot. Ty. I don't need domain, it's all in local network... but it seems we MUST have domain for GOautodial.

double check your kamailio.cfg for the correct settings.

*I did. And this: *
nano /etc/kamailio/kamctlrc
SIP_DOMAIN=subdomain.domain.com

also, did you delete the original agent001 user and create new?

Yes

did you rebuild the self-signed SSL cert with the correct FQDN?

Yes

did you add new carrier with 10 digit DIAL PREFIX?

Yes

in the CAMPAIGN SETTINGS, did you change the CARRIER to the new on that you created?

Yes

reboot server
then log into asterisk (asterisk -vvvvvr)
what does (sip show peers) say?

This was a problem. My carrier did not respond to OPTIONS. So I set "qualify=no".

and if you look at this line in your log (-- Executing [6712341231671234123@default:2] Dial("Local/8600051@default-00000007;1", "*SIP/1671234123@1,,tTo*") in new stack) should be SIP/1671234123@kamailio,,tTo. you have a setting or conf file bad.

I'm not sure about this.. this is how it is autogenerated: exten => _XXXXXXXXXX.,2,Dial(SIP/${EXTEN:10}@1,,tTo)

btw.. how to edit country prefix in (dial plan?) in dialer keypad? When I choose my country, I need to add 00 prefix. And I need to setup my country as default so agent don't need to change from US to my country every time.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Jackie Alfonso over 4 years ago

Hi,

If you want to add 00 in your dialplan or your VOIP requires 00+CountryCode+PhoneNumber your dialplan should similar to this:

exten => _1234567890.,1,AGI
exten => _1234567890.,2,Dial(SIP/00${EXTEN:10}@goautodial,,o)
exten => _1234567890.,3,Hangup

Notes:
1234567890- Your 10 digit DIAL PREFIX
goautodial - Your Context in Account Entry.

Thanks

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Steve Turner over 4 years ago

Brent,

If you dont need a domain and only want to use an IP address, then use the Goautodial ISO and will simplify the installation. Since you are using VMware on a local system, this would be a simple solution.

This guide is more for the people that can not use the ISO and/or FQDN, when hosting Goautodial on a server that can not install from ISO. I use VPS hosting, and this is the only way that I can install.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Brent Gader over 4 years ago

Steven,

Thank you very much for help. I tried ISO, but it seems my SIP trunk to Telco was the problem all along. I hope my experience will help someone else...

I know it's not the topic (should I open new?), but now I'm trying to setup SURVEY PRESS 1. I need simple scenario, lead list, press 1, write response to file. I tried the suggestions from other topic, monitored Asterisk console, but nothing is happening.

How can I debug this? I check wav file (8k, 16bit, PCM), lead list, survey method DID, 5 channels for trunk... Only thing I noticed is that when I change hoper from 100 to 200 or 500 as suggested and update, it did not save changes.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Saqib Ali over 4 years ago

Hi , i followed the steps and everything worked , only problem is that when i make a call there is no voice , what could be wrong , can someone guide me? i can register webphone and xlite and can make call i see call connected at carrier side but no voice .

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Wittie Manansala over 4 years ago

Brent Gader wrote:

Steven,

Thank you very much for help. I tried ISO, but it seems my SIP trunk to Telco was the problem all along. I hope my experience will help someone else...

I know it's not the topic (should I open new?), but now I'm trying to setup SURVEY PRESS 1. I need simple scenario, lead list, press 1, write response to file. I tried the suggestions from other topic, monitored Asterisk console, but nothing is happening.

How can I debug this? I check wav file (8k, 16bit, PCM), lead list, survey method DID, 5 channels for trunk... Only thing I noticed is that when I change hoper from 100 to 200 or 500 as suggested and update, it did not save changes.

Hi Brent.

Please open a new topic

Thanks

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Wittie Manansala over 4 years ago

Saqib Ali wrote:

Hi , i followed the steps and everything worked , only problem is that when i make a call there is no voice , what could be wrong , can someone guide me? i can register webphone and xlite and can make call i see call connected at carrier side but no voice .

Hi,

Did you heard the voice prompt when you logged-in? Please also try to check if kamailio service is running.

Thanks

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Saqib Ali over 4 years ago

thanks for the reply, i made another fresh install and now manual calling is working fine, i hear voice prompt when i login an di can dial any number without any problem.Now problem is that autodial not working, i have setup a campaign ,uploaded leads and logged in to web dialer and not in pause but still calls are not working.
List 1002 show 9000 leads and correct campaign is selected but still no calls ,how can i make it work?
Also one more information , in dashboard "Campaign Leads Resources" show 0 infront of campaign name.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by sea web over 4 years ago

what means FQDN ? what is difference from normal strach install and this with FQDN install ?

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by sea web over 4 years ago

which ip address will be used on install? computer local ip address like 192.168.0.12 or external addres ?

Kamailio:
vi /etc/kamailio/kamailio.cfg
Around line 136:
#!substdef "!MY_IP_ADDR!10.10.100.164!g" (use your IP address)
#!substdef "!MY_DOMAIN!xxxxx.xxxxx.xxx!g" (use your FQDN)

/* add local domain aliases */
alias="subdomain.domainname.com" 
alias="domainname.com" 

RTPEngine:
vi /etc/rtpengine/rtpengine.conf
Around line 8:
a single interface:
interface = 10.10.100.164 (use your IP address)

GOautodial web application
vi /var/www/html/php/goCRMAPISettings.php
Change IP address to your FQDN and then restart Kamailio and RTPEngine.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by sea web over 4 years ago

pixel tech wrote:

what means FQDN ? what is difference from normal strach install and this with FQDN install ?

i use google cloud console and created centos instance has the ip address not domain.

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Wittie Manansala over 4 years ago

Hi,

What's your server IP? and what IP's configure in vi /etc/kamailio/kamailio.cfg and vi /etc/rtpengine/rtpengine.conf

Thanks

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Jan Kooij over 4 years ago

Hello, I followed the steps and everything worked but unfortunately I have one big problem. When I make a call as agent through the webRTC the audio just randomly stops. Sometimes while talking to another person during the call I just stop hearing anything. I then have to log out from the dialer and then back in to get the audio back. Then after a while it just happens again... anyone any ideas what causes this?

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Vericar De Espiritu Santo about 4 years ago

I followed each of the steps, carefully, I made each change, I bought the domain, I have everything configured just as the tutorial indicates
and even so I get an error in the WEBRTC, it stays frozen in the selection of campaigns, it does not advance, when I use the console to know
exactly what happens I find a

"WebSocket connection to 'wss: //go.domain.com: 4443 /' failed: Error in connection establishment: net :: ERR_CONNECTION_TIMED_OUT
WebSocketInterface.connect @ jssip-3.0.13.js: 21334 "

and does not advance from there. Why is this error?

Also note that kamailio is not starting

Active: failed.

Does anyone know what it is and how it can be solved?

I will leave you some images so you can check what appears and how it appears on the console.

!console dial.PNG!
!kamailio status.PNG!

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Abdullah Al Mamun about 4 years ago

RUN UPDATE IP SCRIPT:

/usr/share/astguiclient/ADMIN_update_server_ip.pl (should show old IP as 127.0.0.1)

Should I update the IP to public IP or keep it 127.0.0.1 ?

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Wittie Manansala about 4 years ago

Hi Team,

Please try a plain installation of https://goautodial.org/projects/goautodialce/wiki/Version_4_How_To_Install_Goautodial_From_Scratch_using_CentOS_7X or https://goautodial.org/projects/goautodialce/wiki/Goautodial_Getting_Started_Guidev4
after the installation try to login, setup your VOIP and make some test calls, Once its working then try to setup the FQDN

Thanks

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Raul Chiarella about 4 years ago

I followed the step by step guide but my web phone wont connect
Heres is the web console error:
failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID

Heres the kamailio error:
RROR: tls [tls_util.h:42]: tls_err_ret(): TLS accept:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unk
ERROR: <core> [core/tcp_read.c:1352]: tcp_read_req(): ERROR: tcp_read_req: error reading - c: 0x7fa23c010c48 r: 0x7fa23c010cc8

Anyone knows how to fix this?

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Kirill Ragimov about 4 years ago

Raul Chiarella wrote:

I followed the step by step guide but my web phone wont connect
Heres is the web console error:
failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID

Heres the kamailio error:
RROR: tls [tls_util.h:42]: tls_err_ret(): TLS accept:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unk
ERROR: <core> [core/tcp_read.c:1352]: tcp_read_req(): ERROR: tcp_read_req: error reading - c: 0x7fa23c010c48 r: 0x7fa23c010cc8

Anyone knows how to fix this?

Good afternoon, I solved this problem by installing an ssl certificate and rebooting kamailio

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by Raul Chiarella about 4 years ago

Brent Gader wrote:

Steve Turner wrote:

be sure you are logging into the domain, not the IP address

This helps a lot. Ty. I don't need domain, it's all in local network... but it seems we MUST have domain for GOautodial.

double check your kamailio.cfg for the correct settings.

*I did. And this: *
nano /etc/kamailio/kamctlrc
SIP_DOMAIN=subdomain.domain.com

also, did you delete the original agent001 user and create new?

Yes

did you rebuild the self-signed SSL cert with the correct FQDN?

Yes

did you add new carrier with 10 digit DIAL PREFIX?

Yes

in the CAMPAIGN SETTINGS, did you change the CARRIER to the new on that you created?

Yes

reboot server
then log into asterisk (asterisk -vvvvvr)
what does (sip show peers) say?

This was a problem. My carrier did not respond to OPTIONS. So I set "qualify=no".

and if you look at this line in your log (-- Executing [6712341231671234123@default:2] Dial("Local/8600051@default-00000007;1", "*SIP/1671234123@1,,tTo*") in new stack) should be SIP/1671234123@kamailio,,tTo. you have a setting or conf file bad.

I'm not sure about this.. this is how it is autogenerated: exten => _XXXXXXXXXX.,2,Dial(SIP/${EXTEN:10}@1,,tTo)

btw.. how to edit country prefix in (dial plan?) in dialer keypad? When I choose my country, I need to add 00 prefix. And I need to setup my country as default so agent don't need to change from US to my country every time.

Hello.

How do you monitor calls? I'm currently running Asterisk and it does'nt show anything
Even with verbose on a high level, i can't see any calls from GoAutoDial.

Where do i go to debug calls?

RE: Step By Step Scratch install Goautodial V4 with FQDN - Added by votebook Officiel about 4 years ago

I have tried to follow the Step by step Guide ,, and thank you guys for your efforts.. , but i still cant have results : so these are the problems im in..

Server infos :
Dedicated Server with : 16 G RAM and v4 CPU
-centos 7
"subdomain.mydomain.com" A dns record pointing to the server's ip

Problems i found :

-Sometimes i follow the steps but i cant enable service : (Failed to ....) error

systemctl enable php-fpm
systemctl enable httpd
systemctl enable mariadb
systemctl enable kamailio
systemctl enable ngcp-rtpengine
systemctl start mariadb

-Sometimes (when i try to reinstall the server ) service can be enabled but : in step
mysql
MariaDB [(none)]>show databases;

there are no tables

-I tried to manualy create tables and imported them from /usr/src/go..../sql , but in step :
cd /var/www/html
git stash
git pull

it gives me back an error : fatal error ... not a git repository

Can someone help me install for the first time goautodial v4 PLEAASE ....

(1-25/30) Go to top