The SIP Phone uses TLS to register the asterCC system method

By | Tutorials | No Comments

1、First modify 【system】–>【Settings】–>【GENERAL SIP SETTINGS】

transport:Add tls, if it’s already have pther protocol,please use ‘,’ separate them.

selection_044

Tips: After modify transport need click on the reload bar to take effect.

2、Download asterisk’s script “ast_tls_cert” file, use this script to generate an SSL certificate.

wget https://download3.astercc.org/ast_tls_cert

chmod +x ast_tls_cert

./ast_tls_cert -C pbx.sorry.com -O "My Computer" -d /etc/asterisk/keys

selection_0377777777774

3、Edit sip.conf file add tls support.

selection_03555555555

4、yealink upload client SSL certification file ca.crt.

selection_045

selection_046

5、yealink SIP Phone modify transport TLS signup for asterCC system.

selection_047

Tips: Please allow access TCP port 5060 on iptables.

How to set up master slave replication in mysql

By | Tutorials | No Comments

Notes: This article describes how to set the master-slave replication from mysql, to synchronize the local and remote server mysql modify, delete data. Experiment has two local virtual machine master’s IP address 192.168.1.80, set to push the contents of the mysql data to the slave server, slave host IP address is 192.168.1.248.

1、Modify the configuration file my.cnf

1.1、Modify master’s my.cnf configuration file

1.1.1、This set enable binary log, master must, slave optional. Add, as follows:

log-bin=mysql-bin

1.1.2、This set master host mysql logo, it’s can be 1, can also take the host IP last paragraph. Add, as follows:

server-id=1

1.1.3、This set the database to push. Add, as follows:

binlog-do-db=ccupdate

1.1.4、This set Information to ignore. Add, as follows:

binlog-ignore-db=mysql

1.2、Modify slave’s my.cnf configuration file

1.2.1、This set slave host mysql logo, it’s can be 2, can also take the host IP last paragraph, the logo must be different from the master. Add, as follows:

server-id=2

1.2.2、This set the database to update. Add, as follows:

replicate_wild_do_table=ccupdate.%

1.2.3、This set Information to ignore. Add, as follows:

replicate_wild_ignore_table=mysql.%

2、Create an authorization account and authorize on the master server

Execute, as follows:

grant replication slave on *.* to 'master'@'192.168.1.248' identified by '123456';

Tips:Solve the grant replication slave on operation prompt password PASSWORD () error, execute command “show variables like ‘old_passwords’;” If “old_passwords = 1”, execute command “set old_passwords = 0;” solve the problem.

3、Login to the master server’s mysql console and configure it

selection008

3.1、Refreshes all tables and prevents other writes. Execute, as follows:

flush tables with read lock;

3.2、View the master server from the state, record the table “File”, “Position” value. Execute, as follows:

show master status;

3.3、Then do not operate the main server mysql, to prevent changes in the state of the main server, do not exit mysql prevent “read unlock” occurred.

3.4、Another opening of a shell. Execute, as follows:

mysqldump -pastercc --databases astercc10> astercc10.sql

3.5、Backup master astercc10 library, restore to the slave mysql. Execute, as follows:

mysql -pastercc < astercc10.sql

4、Login to the slave server’s mysql console and configure it

4.1、Let mysql slave get master of the replication permissions. Execute, as follows:

change master to master_host='192.168.1.80',master_user='ccmaster', master_password='passw0rd', master_log_file='mysql-bin.000001', master_log_pos=Position's value(don't need " or ');

4.2、Start the mysql slave replication feature. Execute, as follows:

start slave;

4.3、Check the Master Slave Replication feature status from the mysql slave.

show slave status\G

4.4、The parameters “Slave_IO_Running: ” and “Slave_SQL_Running: ” are both “Yes”. Parameters Last_IO_Errno: 0, Last_IO_Error:, Last_SQL_Errno: 0, Last_SQL_Error:, no error message, the master-slave replication function has been achieved.

selection009

Tips: If the master with mysql5.6, binlog_checksum default is set to “crc32”, and slave with the 5.5 or earlier version, the master of the binglog_checksum set to none. You can execute set global binlog_checksum = ‘NONE’ on the console, or write my.cnf, and add binlog_checksum = NONE.

Answer asterCC some common questions

By | Tutorials | No Comments

1、Scoring on the issue of the queue don’t see the result after hangup.

After hangup. But the “Rate Log” can’t see the score result. Possible reason is that “php-soap” isn’t installed, you can download the rpm installation package from the following address.Make sure to install the “ius” source to use, as follows:
yum install php55u-soap.x86_64

2、Didn‘t install “lame” lead to the recording file can’t be converted to mp3.

On the asterCC system execute command, as follows:
yum install lame.x86_64

3、You have “Quality Control” customer information, but can’t listen to the recording, the campaign CDRs is empty, but you PBX CDRs can be found records.

Because the system didn’t receive the agent’s hangup signal, resulting in mysql “astercc10” “cc10_cache_campaign_cdrs” table corresponding to the CDRs didn’t have endtime, and not been imported into the campaign table, if the campaign number is “1”. Then the campaign table for “the cc10_1_campaigncdrs”. View “endtime”, “duration”, “billsec” field, and then identified by the “diallogid” field, in the table “cc10_cache_campaign_cdrs” query these three fields “endtime”, “duration”, “billec”, the values is “0000-00-00 00:00:00”, “0”, “0”, according to “cc10_pbxcdrs” three field values modify “cc10_cache_campaign_cdrs” three field value.

How to fix this QC record? The data will be inserted into the campaign table, so the quality control can use records.
insert into cc10_1_campaigncdrs select * from cc10_cache_campaign_cdrs where diallogid="xxxxxxxxxxxxxx";

How to cleanup disk for asterCC server

By | Tutorials | No Comments

Note:  After you login to the server and execute the “df” command, you can check the current server file system disk space usage. You can use the command to get the hard disk is occupied by how much space, there is still have how much space and other information. Execute “du -sh” to view the total size of all files in the current directory.

1、AsterCC log

1.1、Script log

The fastest and easiest, check the log files are located in the /opt/asterisk/scripts/astercc/ directory, ending in “.log” and “.gz”. If very large can be empty them.
Under the path /opt/asterisk/scripts/astercc you can execute, empty them as follows:
> astcc_sysevents.log
rm astcc_sysevents.log.gz

Tips : If the emptied log has been released enough space, the following can be omitted. But if you want to cleanup more files look down.

1.2、System log

Completely closed asterCC system log,  need to modify /etc/astercc.conf file, set debug = 0 and save the file, execute command “service asterccd restart” to take effect. The command needs to be done when nobody is using the system.

1.3、System file

1.3.1、It is usually advisable to migrate the “data” and “statistics” directories in the /var/www/ html/asterCC/ to a directory with large disk space, and then back to execute command “ln -s” connect it.

1.3.2、In /var/www/html/asterCC/data directory, will store some downloaded audio files, such as: monitor_download directory, This is the path for download pbxcdr recording.

1.3.3、In /var/www/html/asterCC/statistics directory,store some Statistical data files.

1.3.4、PBX recording files stored in /var/spool/asterisk/ monitor directory, if useless then you can delete it. Whether monitor directory is moved to a larger disk space directory, and then execute command “ln-s” to connect it.

1.3.5、Agents evevts log is in directory /tmp/astcceventslog/ stored like name astercc eventsfile_date.log files, make sure agents events have no error, you can delete it.

2、Asterisk log

In directory /var/log/asterisk/,have files “full ” and “messages”, it is asterisk’s log file. Cleanup execute command “> full “, “> messages” , don’t need execute “stop” or “restart” command . If need close asterisk log,need modify /etc/asterisk/logger.conf file, to the end of the file the lines “full” and “messages” before add the “;”,save and exit file execute command asterisk -rx “logger reload” will be ready.

3、MySQL log

3.1、Move the database file location

In /var/lib/mysql directory,astercc10 is the asterCC’s database,when nobody is using the system,you can move it to other large space,afetr you can execute command  “ln -s ” to connect it.

3.2、mysql log

The mysql log file is /var/log/mysqld.log ,you can cleanup execute command “>/var/log/mysqld.log”.

4、Http log

http’s access log is file /var/www/html/asterCC/http-log/access.log , you can cleanup execute command “>/var/www/html/asterCC/http-log/access.log “.

5、PHP log

In /var/log/php-fpm directory,stored php’s log file “error.log ” and “www-error.log”.

6、Other logs

In /var/log/ directory,maillog、messages、cron、secure、yum、vmstart and other log files,the logs execute command “> file.log” to empty.

How to modify the astercc system database address

By | Tutorials | No Comments

Description: The files of the database configuration, mainly in astercc.conf and database.php two documents.

1、astercc.conf file

Open the /etc/astercc.conf file, you will see a lot of configuration labels, and [database] and [statistics] is the database mysql configuration, as follows:

Execute command "vim /etc/astercc.conf" to open astercc.conf file.

修改 astercc 系统 的 数据库 地址

修改 astercc 系统 的 数据库 地址

Field Description:

status: Whether to turn on this set.
dbtype: Databases type.
dbhost:MySQL’s address.
dbname: Database name.
dbport: MySQL’s port.
username:MySQL login username.
password:MySQL login password.
prefix: The astercc10’s tables prefix.
shortringsec: Recordings less than the value is not included in the statistics.

2、database.php file

Execute command to open /var/www/html/asterCC/app/config/database.php file, at the end of the file you will see “class DATABASE_CONFIG” label on the database mysql configuration, simply modify the default configuration can be, as follows:

vim /var/www/html/asterCC/app/config/database.php

修改 astercc 系统 的 数据库 地址

Field Description:

driver: Databases type.
persistent:Whether to set the database to stay connected status.
host:MySQL’s address.
login:MySQL login username.
password:MySQL login password.
database: Database name.
prefix:The astercc10’s tables prefix.
encoding:Database character encoding type.

Reference Document: asterCC’s official reference connection

The logs of system-related about asterCC

By | Tutorials | No Comments

Tips:  It is a file or file sets that saved operation for the event records including the kernel, services and system’s modules, different log file records different information. For example,some of the default system log file,records some specific modules.

1、Description of log files under /var/log/asterisk directory

Firstly,you need to enable logging function of asterisk.remove the note(semicolon) in front of the “messages => notice,warning,error” and “full => notice,warning,error,debug,verbose,dtmf,fax” in the file of /etc/asterisk/logger.conf,as shown below:

selection_141

Then,you can find serveral files named “full.xxxx” and “messages” under the direction of /var/log/asterisk.You can delete these files if you can ensure that no longer use them.

Tips:  No matter enabling or removing log files, it will worked only execute the following command after you finished:asterisk -rx “logger reload”
2、Description of log files under /opt/asterisk/scripts/astercc directory

How to enable the logging of asterCC ? You should update the value of field named “debug” in the file of /etc/asterisk/logger.conf,it belongs to [system],only “debug” is a integer that greater than 0,the logging of asterCC modules can be worked,for example:debug=2.It measns the logging function is disabled when debug=0.

After enabling the setting under /opt/asterisk/scripts/astercc directory,you will see several log files corresponding module,and the suffix of names are “.log”,such as:astcc_dialer.log,it is the log of pre-dial module.

selection_142

3、Description of log files under /tmp/astcceventslog directory

The records of calling events logged under /tmp/astcceventslog directory,the naming rule is:eventsfile_yearmonthday.log,the logs can be saved for 5 days recently by default.Generally speaking,don’t delete the call event logs of last 5 days,you must preserve the log files today.

selection_143

Use the link type customization to get the user’s location through the map

By | Tutorials | No Comments

1、【Customer】–>;【Customization】–>; “add” The map link field,”https://www.google.com/maps/place/##address1##” Set in the map jump through the “address one” query the user’s location on the map, as follows:
selection_136

2、Agent login WEB, select the corresponding campaign, open the customer information, find the newly added map transfer field, click to open the link, as follows:

selection_137

selection_138

3、Through the “address1” query on the location of customers in Google Maps are as follows:

selection_139

4、The link to the relevant map is shown below. The “???” section can be changed to the area to be linked:

【google map】
address: https://www.google.com/maps/place/???

Tips:  The data in the link can be replaced with the variable, the customer page click on this link, the use of customer information in the field automatically replace the corresponding variable. For example, the customer profile field name “## address1 ##” select “Address1” value, such as “https://www.google.com/maps/place/##address1##”.

Note: When you create a custom field for a map link type, the open link method needs to be opened in a New Browser Tab.

Agent settings only outbount the state still have a calling come in FAQ

By | Tutorials | No Comments

Agent settings only outbount the state still have a calling come in, as follows:

selection_131

  1. An agent login multiple agentgroups at the same time. Only one agentgroup set onlyoutbound , but the calling come in from other group queues.
  2. Because of the outbound calling is come in queue of the agentgroup, so when the calling through the Inbound route or IVR and the like set directly to the seat, causing confusion.

How to upgrade the asterCC system in the server background

By | Tutorials | No Comments

1、You can download the upgrade package on the page to the asterCC server /var/www/html/asterCC/data/_cache path, as follows:

selection_104

Click “UPGRADE” button to pop up the dialog box, the mouse moved to the dialog box “European Mirror” at the right mouse button click “European Mirror” pop-up right-click menu to get “Download Address”, as follows:

selection_128

2、Use the Linux wget command to download the upgrade package to /var/www/html/asterCC/data/_cache path, as follows:

wget https://download1.astercc.org/packages/core/core-2.6-rc1-patch-x86_64.tar.gz # Run the command to download the upgrade package at the address obtained

selection_105

selection_106

3、Unzip the downloaded file, and enter the folder to perform the installation operation, as shown below (in this case to upgrade astercc-2.6rc1 kernel as an example):

tar zxf core-2.6-rc1-patch-x86_64.tar.gz #Run command to unzip
cd core-2.6-rc1-patch-x86_64 #Execute the command into the decompression file
php install.php #Execute the command to perform the upgrade operation

selection_107

Tips: Please be patient to complete the upgrade operation, if the upgrade is successful, the upgrade process will finally prompt “successful”.

A Sonicwell Product · Also: CXMind AI · WCC Contact Center