How to share files between linux and linux

By | Tutorials | No Comments

Note: ServerA(Provide shared space):192.168.1.81.ServerB(Mount the shared space):192.168.1.82. This article has a local asterCC server to mount another asterCC server recording folder as an example.

1、Ensure that the samba service is installed on Server A:

yum install samba

Tips:  If you have already installed samba above steps can be skipped.

2、After installation is complete, create a samba user and password on server A:

To create a samba user:
useradd sbu
Set the sbu password and enter 123456 when prompted:
smbpasswd -a sbu

Tips: If you have already set up a samba authentication user name and password, the above steps can be skipped.

3、Modify the samba configuration file /etc/samba/smb.conf on server A, and add the following at the end of the smb.conf file:


[ccmonitor] path = /var/spool/asterisk/monitor
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
create mask= 777
directory mask = 777
force user = asterisk

selection_114

4、restart the server A on the samba service:

service smb restart

5、On server B, perform the mount operation:

mount -t cifs -o username=sbu,password=123456 //192.168.1.81/ccmonitor /var/spool/asterisk/monitor

6、Server B, set the boot automatically mount:

VIM Edit /etc/fstab, add the following file, as follows.

//192.168.1.81/ccmonitor /var/spool/asterisk/monitor cifs defaults,username=sbu,password=123456 0 0

selection_115

7、To check if Server B is mounted:

df -hT

selection_113

8、Unmount on Server B:

umount //192.168.1.81/ccmonitor

Tips: If the host does not respond when the implementation of the mount, try to add the following iptables strategy.

To increase the inbound rules:
iptables -I INPUT -p tcp -m multiport –dports 139,445 -j ACCEPT
iptables -I INPUT -p udp -m multiport –dports 137,138 -j ACCEPT
To increase the outbound rule:
iptables -I OUTPUT -p tcp -m multiport –sports 139,445 -j ACCEPT
iptables -I OUTPUT -p udp -m multiport –sports 137,138 -j ACCEPT

How to migration the mysql’s databases directory to other device

By | Tutorials | No Comments

Tips: Make sure the system don’t running any work to do commands as follow.

Because of the large number of records caused by growing for databases,will take up a lot of hard disk space,so we should mount other devices to the local server, migrate the database directory to the mounted path, and then connect the directory to the server’s original location.

1、Stop the mysql server from the asterCC server

Login the CentOS system,view the mysql server is running as follows:
service mysqld status

Forexample:

selection_093

Make sure the system don’t running any work to do commands as follow:
service mysqld stop

Forexample:

selection_094

After stop mysql server please view the mysql server whether already stop.

2、The original database directory is backed up before the migration

Mount other device for asterCC server, forexample the /mnt directory or other directory from centos.

Migration the /var/lib/mysql directory copy to /mnt directory,as follows:
cp -Rp /var/lib/mysql /mnt

Forexample:

selection_095

Because of the databases is very lurge, please wait this command for some time.

The directory /var/lib/mysql,rename as mysql.bak, as follows:
mv /var/lib/mysql /var/lib/mysql.bak

Forexample:

selection_096

3、Link the new database directory to the original directory location

After copy the mysql directory,link the new database directory to the original directory /vra/lib, as follows:

ln -s /mnt/mysql /var/lib

Forexample:

selection_097

4、Start the mysql server

Strat the mysql server:
service mysqld start

Forexample:

selection_098

At this point you can view the status of the command to see whether the mysql is running,make sure can loginthe mysql system, view the call records for verification.
After all operations have been confirmed to be successful, you can delete the original data directory mysql.bak backup file to save the server space.

The php write operation could not be performed because of a configuration file permission error

By | Tutorials | No Comments

Tips: Sometimes encounter import or manual installation of modules, WEB page configuration file can not be loaded, there may be php operation permissions.

In the astercc system the php execute permissions for asterisk users and groups,you can check /etc/php-fpm.d/www.conf the file user and group parameters are the following:

selection_071-1

If it is not possible to change it manually, or in order, do the following.

sed -i "s/user = .*/user = asterisk/" /etc/php-fpm.d/www.conf
sed -i "s/group = .*/group = asterisk/" /etc/php-fpm.d/www.conf

Web page prompt 9301 Can not connect to server Error Solution

By | Tutorials | No Comments

1、The first case

First, make sure the server is connected to the internet is normal, login to the CTI server to ping update.astercc.org, if not connect astercc update server, please check network availability.

2、The second case

Modify the CTI server’s MTU value.

2.1 Temporarily change the MTU value of the CTI server and take effect immediately:

echo "1430" > /sys/class/net/eth0/mtu

selection_054

You can use ifconfig to see the results of your changes.

selection_056

2.2 Permanently changes the MTU value of the CTI server and takes effect immediately:

Use vi to edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file, increase MTU = "1430", and then execute
service network restart for the settings to take effect.

selection_055

How to modify the http port

By | Tutorials | No Comments

Tip: Make sure your web server don’t have any work to do the following.

1、Modify the nginx configuration file to add a new port

View the nginx’s configuration file nginx.conf:
Nginx configuration file nginx.conf in the directory /usr/local/nginx/conf , the absolute path of the source installation or installation of the compiler is different, asterCC default path in /usr/local/nginx/conf/nginx.conf under.

Modify the nginx.conf add a new port:
Please use vim open nginx.conf find the server part as follows the default port is 80:
selection_086

Modify port 80 as 8080, vim save the changed file. CentOS is executed as follows:
service nginx reload/restart

2、Modify iptables rules to access port 8080

View the current iptables rules:

Input command iptables -nL view the current iptables rules,if there is no allow 8080 port access rules, will be 80 port on the tcp protocol set to allow access to the table.

iptables add new port rules:
Input command:
iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
INPUT chain to add the tcp protocol port 8080 is set to allow.

Input command:
iptables -nL
View if INPUT has added a new rule

Save and effective
After confirmation, input command:
service iptables save

Save the newly added rules, otherwise restart or shutdown will rule invalid.
service iptables restart
Restart iptables to make the new rule take effect, as shown below:

selection_087

3、Modify the asterCC system settings for the http push

【system】–>【settings】–> “ADVANCED SETTINGS SYSTEM” –> “HTTP Push Link”IP address, add the port number 8080, as shown below:
selection_088

How to automatically mount the hard disk

By | Tutorials | No Comments

Use the mount command to mount the hard disk in the reboot and will not be automatically mounted, if you need to boot automatically mount the hard disk you can use the following methods.

When the system start run will automatically read the /etc/fstab, the file a total of six parameters are as follows:
<file system>         <dir>           <type>     <options>      <dump>      <pass>

/dev/sdb1                /mnt              ext3          defaults             0                  0
The above is an example of a simple set boot disk.

"file system":Indicating the name of the device to be mounted, block information or label, you can usually mount the device name like /dev/sdb1.
"dir":Indicates the mount point, which is the directory where you want to mount the device, such as /mnt, /media, or another custom folder.
"type":Said the file system format, such as ext3, ext4.
"options":Operating parameters, the default can be filled defaults.
"auto": The system automatically mount, fstab default is this option.
"noauto": Don't automatically mount.
"defaults": Contain rw,suid,dev,exec,auto,nouser,async.
"nouser":Only superuser can mount.
"user":Evary users can mount.
"ro": mount for only read.
"rw":mount for only read and write.
"dump":The value of the dump tool can be used to decide when to make a backup, 0 means that the backup "1", usually no need to default to fill "0".
"pass":Indicates whether the boot sector, where the fill 0 is not checked. Root partition must be filled in here "1" other can not fill in "1". The other partitions check the numbers starting at "2".
The smaller the priority, the number of the same partition at the same time check, usually no default can fill 0.

selection_085

Linux how to use postfix SMTP sent a mail

By | Tutorials | No Comments

1、Install mailx/postfix

The test environment is selected Ubuntu 14.04.X and CemtOS6.X.
<code> Ubuntu open shell and run those commands:
sudo apt-get install heirloom-mailx
sudo apt-get install postfix

CentOS open shell and run those commands:
yum install mailx.x86_64
yum install postfix.x86_64
</code>

2、For example GMAIL make SSL authentication certificate and key

Open Linux shelland run those commands:
<code>mkdir .certs
certutil -N -d .certs
echo -n | openssl s_client -connect smtp.gmail.com:465 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > /$PATH$/.certs/gmail.crt
certutil -A -n “Google Internet Authority” -t “C,,” -d /$PATH$/.certs -i set /$PATH$/.certs/gmail.crt (Replace $ PATH $ with the actual path)</code>

Tips:  The certutil may return a command not found error, according to the tips to install.

3、Modify the mailx configuration file

Ubuntu modify the /etc/nail.rc file , CentOS modify the /etc/mail.rc file, the file to increase the following content:
<code>set smtp-use-starttls(Tips:  This condition is increased when using TLS / STARTTLS port: 587)
set ssl-verify=ignore
set nss-config-dir=/$PATH$/.certs (Replace $ PATH $ with the actual path)
set from=username@astercc.com
set smtp=smtps://smtp.gmail.com:465(Tips: Gmail use TLS / STARTTLS port 587 can be changed to, set “smtp=smtp: //smtp.gmail.com: 587″)
set smtp-auth-user=username@astercc.com
set smtp-auth-password=password
set smtp-auth=login</code>

If you need more than one mailbox account and the presence of the configuration file, when send a email to provide choice in the there is another way is as follows:
<code>account gmail {
set smtp-use-starttls(Tips:  This condition is increased when using TLS / STARTTLS port: 587)
set ssl-verify=ignore
set nss-config-dir=/$PATH$/.certs (Replace $ PATH $ with the actual path)
set from=username@astercc.com
set smtp=smtps://smtp.gmail.com:465(Tips: Gmail use TLS / STARTTLS port 587 can be changed to, set “smtp=smtp: //smtp.gmail.com: 587″)
set smtp-auth-user=username@astercc.com
set smtp-auth-password=password
set smtp-auth=login
}</code>
This requires the mail / mailx command to add “-A” parameter reference.

4、Description of parameters added by the configuration file

set smtp-use-starttls:  Gmail send a mail use TLS/STARTTLS.
ssl-verify: Use SSL.
nss-config-dir: The local path to SSL authentication certificate and key.
from: Send a email for this address.
smtp: The address of the SMTP server.
smtp-auth-user:  The SMTP server authentication user name.
smtp-auth-password: The SMTP server authentication user password.
smtp-auth: Mail authentication method.
Determine the configuration parameters, save the file, you can use the mail / mailx command to send the email.

5、Send a test email

Command line Use the following command to send mail <code> mail / mailx (-vcabSA) -s “Test mail” address </ code>

Enter message in the shell, enter the content after the completion of carriage return “ctrl + d” send mail content, Multiple recipients are separated by commas, and you can also get the content of the message to be sent via the pipe (|) and redirection (<).
<code>-s Specifies the message subject.
-v Lists messages such as the location, status, and so on when send a email.
-c The list of users to cc.
-a The file specifies the file to attach.
-b Send a whisper List, multiple lists should be use “,” to separate.
-S Set the variables of the internal options (such as the above configuration file can be added by -S smtp-auth-user=username@astercc.com specified).
-A When have multiple SMTP account name to use. </ Code>

Tips:

Resolving host smtp.gmail.com . . . done.
Connecting to 173.194.72.108:587 . . . connected.
Error initializing NSS: Unknown error -8015.
“/root/dead.letter” 11/300
. . . message not sent.
Email sent with an exception return error similar to the above, such errors can be understood as no certificate or create a certificate does not take effect.

Tips : SMTP send mail encounter “535” error account or password error. Some mailboxes need to change the password to SMTP authorization code.

“Agent Mode” manually call back the specific operational processes

By | Tutorials | No Comments

Agent group in a system may correspond to multiple applications of multiple modules. If an agent makes an outbound call directly from an device, the system can not know which application it is calling. To solve this problem, you need the following settings.

1.【PBX 】 –> 【Devices】–> Find the device used by the agent -> In the “Advanced “, find the “Agent Mode” and change it to “enable”.

selection_082

2. 【User】 –>【Agents】 –> open the target agent to be set up -> Basic -> set a “Current Agent Group”.

selection_083

3. 【User】 –> 【Agent Groups】 –> open the specific agent group -> Basic -> “Current Application Type” is used to help you select the “Current Application”.

selection_084

When the agent uses the device to make outbound calls, the system will know that it is working for the current outbound agent group. Combined with the “Current Application” set in the agent group, the system records the call in this application and helps you pop up the processing page for this application.

When making anoutbound call, make sure that the agent is in an idle. Second, the agent is not in the ACW, when agent in ACW, will not record a new call.
The agent in the group is Static and Offline, which allows the agent to get outbound records and without work on the page.

Answers to call center call results attribution questions

By | Tutorials | No Comments

1、Customer number A related to seat B, customer status is successful, there is a call record can be checked by the agent C dial, but the customer information but no seat attribution.

Case:
Customer data is repeatedly imported, after the import is not assigned to change the customer does not belong to any agent. The pre-dialing begins to work the customer answers, the system will send the customer to the seat wiring. The customer hangs up after answering, but the agent fails to pick up the customer’s phone. As no one received the customer phone, the customer is still in the undistributed state to see is the seat number = 0, the name null. However, the system will not allocate the customer to the agent, so the client’s seat is still 0.

2、There are four ways for a customer to belong to an agent.

  1. Administrator Assignment.
  2. Active acquisition (agent interface has a get button).
  3. Successfully answer the pre-dial assigned traffic.
  4. Agents to add their own customers.

3、You can in the Outbound Marketing –> Outbound Marketing Task –> open the specific outbound marketing tasks –> “basic information” under “manually assigned tasks” in the query to the number, manually assign this customer to the agent To resolve this.

selection_081

How to use ‘Consult’ ‘CB’ ‘Conf’ ‘Trans’

By | Tutorials | No Comments

1、When a call comes in, the system is assigned to a seat, the agent answered. At this time, the icon “Consult” becomes orange to indicate that it is available.
selection_046

2、Click the “Consult” button to display the consultation page. You can use the “Number” consultation number, the number can be the outside number, or you can use “Agent” to inquire the inner queue or the agent.
selection_047

3、For example, after the current agent confirms the business with the customer, transferring the client to another agent, click 【Agent】 -> 【Queue】 -> 【8003】 to confirm that the agent 8003 is in idle state, start call agent 8003.
selection_048

4、After the call is successful, the status is as shown in the following figure. In the Status icon “Consult” is green, and the “CB”, “Conf” and “Trans” icons are orange to indicate that they are available. When the “CB” button is clicked, the call will be end from the 8003 agent. Click “Conf” to enter the conference mode. Click “Trans” to transfer the customer call to the agent 8003. Hang up End the call.
selection_049

5、When consult agent 8003 is successfully, the call status is displayed as shown below.
selection_050

6、When transter agent 8003 is successfully, the call status is displayed as shown below.
selection_051

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