Setting Up eVOX FXO and eVOX PBX

To setup connection from eVOX PBX and eVOX FXO (4 or 8 port)

At eVOX PBX
1)Create SIP trunk
Outbound setting
type=peer
qualify=yes
port=5060
insecure=port,invite
host=
dtmfmode=inband
context=from-pstn

Inbound Setting
type=peer
qualify=yes
port=5060
insecure=port,invite
host=192.168.0.38
dtmfmode=inband
context=from-pstn

Registration : Don’t Need

At eVOX FXO Gateway
SIP Server (Fill up primary SIP Server with eVOX PBX IP)

Port (create port)
— Do not need to fill up login Extension
— Fill up OffHook , the extension in eVOX to pass the extension to

Call & Routing
— IP Trunk ( create a trunk to eVOX PBX IP)
— Tel -> IP/Tel Routing (add )
— Call to (IP trunk that created previously , do not point to SIP Server)

Advanced
— FXS / FXO
— Enabled — Send Original CID when Call from PSTN

Fixing “The program can’t start because MSVCR100.dll is missing from your computer.”

Fixing “The program can’t start because MSVCR100.dll is missing from your computer.”

Installing Microsoft Visual C++ Redistributable which can easily be downloaded on the Microsoft website as x86 or x64 edition:

32 bit: http://www.microsoft.com/download/en/details.aspx?id=5555

64 bit: http://www.microsoft.com/download/en/details.aspx?id=14632

Ubuntu freeze at swap

New Ubunt 14.04 Freeze at Swap.

Ubuntu-Swap

It is doing this because Ubuntu is trying to switch to a high resolution video mode for the console and your hardware isn’t cooperating.

Fixing this while at the machine
When Grub2 shows up:
  • Highlight the menu item for Ubuntu and press ‘e’
  • Go to the line where it loads the kernel and press ‘End’ to go to the end of the line
  • Add ‘nomodeset’
  • Press F10 or Ctrl-X to boot it
With any luck it will boot into the login screen. This won’t save that option but at least now you can edit the file for Grub2 and update it to save that option if it works.
Permernently fixed this issue
  • Log in (ssh will probably do, if you know the machine’s IP)
  • Update the grub config file nano /etc/init/grub
  • Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT
  • Edit the line to include nomodeset, in my case, the line looked like this afterwards: GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
  • Save/exit nano
  • Run update-grub
  • Reboot

Note: The easy way of doing this with modern versions of GRUB is by editing /etc/default/grub and add “nomodeset” (separated by a space) to the end of the GRUB_CMDLINE_LINUX_DEFAULT variable

 

Ubuntu Recovery Mode – Readonly File System

In Order to emergency, change configuration or reset root password. Follow following steps

1. Shutdown the computer
 2. Boot into Recovery Mode --After BIOS load, hold down Shift key to access the grub menu --Once in grub menu, select the entry ending in "(recovery mode)"
 3. From the next menu selected option to enter Root Session
 4. At the root session, execute command mount -o remount,rw / to remount the filesystem as read-write

Then after you can reset the Root password to change the configuration.

Common user OpenVZ commands

OpenVZ is container based virtualization for Linux.  Following is frequently used command :
1. List all Running VPS node

 #vzlist

2. List all Running and Stopped VPS node

#vzlist -a

3. To start VPS

 #vzctl start CTID

4.To stop or shutdown VPS

 #vzctl stop CTID

5. To view status of VPS

 #vzctl status CTID

6.To enter into VPS Console

 #vzctl enter CTID

7.To set VPS Hostname from OpenVZ Host

 #vzctl set CTID --hostname New_hostname --save

8.To Add IP to VPS

 # vzctl set CTID --ipadd xx.xx.xx.xx --save

9.To Delete IP to VPS

 #vzctl set CTID --ipdel xx.xx.xx.xx --save

10.Reset VPS Root Password

 #vzctl set CTID --userpasswd root:new_password --save

11.To set Nameserver to VPS

 #vzctl set CTID --nameserver xx.xx.xx.xx --save

12.To Delete Container

 #vzctl destroy CTID

13.To suspend Container

 #vzctl suspend CTID

Happy using OpenVZ !

What is PVID in Cisco

PVID = Port Vlan ID
PVID (Port VLAN ID) is a default VLAN id assigned to frames coming to the port

Example 1.

interface fa0/1
  switchport mode access
  switchport access vlan 10
  switchport voice vlan 20
  switchport trunk native vlan 30

Here PVID is 10, as untagged frames will get into VLAN 10.

Example 2

interface fa0/2
  switchport mode trunk
  switchport access vlan 10
  switchport voice vlan 20
  switchport trunk native vlan 30

Here PVID is 30, as untagged frames will get into VLAN 30.

Install monit to Monitor Services (Ubuntu)

  1. Install monit
     apt-get install monit
  2. Configuring of monit
     vi /etc/monit/monitrc

    enable following line , to view the services via http

    set httpd port 2812 and
         use address localhost  # only accept connection from localhost
         allow localhost        # allow localhost to connect to the server and
         allow admin:monit      # require user 'admin' with password 'monit'
         allow @monit           # allow users of group 'monit' to connect (rw)
         allow @users readonly  # allow users of group 'users' to connect readonly
  3. Star the services
    /etc/init.d/monit start
  4. View the monit Web Interface
     http://localhost:2812
  5. Add process for monit to monitor
    – add xxx.conf file at /etc/monit/conf.d
    Example for Apache, content of apache.conf added to /etc/monit/conf.d  folder :

     check process apache with pidfile /var/run/apache2/apache2.pid
    
     start program = "/usr/bin/service apache2 start" with timeout 60 seconds
    
     stop program  = "/usr/bin/service apache2 stop"

    Example of MySQL , content of mysql.conf added to /etc/monit/conf.d folder

    check process mysqld with pidfile /var/run/mysqld/mysqld.pid
    
    group mysql
    
    start program = "/usr/bin/service mysql start"
    
    stop program = "/usr/bin/service mysql stop"
    
    if failed host 127.0.0.1 port 3306 then restart
    
    if 5 restarts within 5 cycles then timeout
  6. Restart monit , see the log at:
    /var/log/monit.log