First impressions of VoIP on 4G

4G (LTE) has been available for a couple of months now in cities around the UK. If you are in Birmingham, London, Bristol, Leeds or Manchester you are likely to be in a 4G serviced area, and surprisingly these cities have very good coverage when you’re in one. EE claim that it will have 98% coverage by the end of 2014.

At the time of writing, the only provider of 4G in the UK is EE – Everything Everywhere. Unlike other mobile providers, EE actually allow the use of VoIP on their data network.

Read the rest over at sipcentric.com

Set time and date for London/UK with NTP

This guide is for CentOS / RedHat like Linux distributions.

1. Set time zone to Europe/London

[root@linux ~]# ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

2. Install NTP.

[root@linux ~]# yum install ntp -y && chkconfig ntpd on

3. Sync NTP and start the service.

[root@linux ~]# ntpdate pool.ntp.org && service ntpd start

You can run date to check the time is now correct.

JS: For objects in JSON response

In JavaScript here is how you can loop through objects from a XMLHttpRequest.

function request() {
  url = 'http://domain.com/request?option=true';

  var xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET", url, true, "USERNAME", "PASSWORD");

  xmlhttp.onreadystatechange=function() {
    if (xmlhttp.readyState == 4) {
      if (xmlhttp.status === 200) {
        data = JSON.parse(xmlhttp.responseText);

        for (var item in data.objects) {
          console.log(data.objects[item].name);
        }
      } else {
        console.log('No 200 OK, something was wrong.');
      }
    }
  }
  xmlhttp.send(null);
}

Rename host in Observium

Currently in the Observium web interface there is no way of changing the hostname of a device. But there is a little command line tool you can use to do it.

The tool is located in your install directory, which is likely to be /opt/observium

Usage: ./renamehost.php [old hostname] [new hostname]

For example:

[user@noc observium]# ./renamehost.php sw4.sc2 sw4.dc2

Asterisk Basics: Your first call

Asterisk is a powerful VoIP PBX system that runs on a Linux machine.

In this blog post I will guide you through setting up Asterisk on a CentOS machine with two SIP extentions. You will need to have the machine installed with CentOS 6.* and EPEL package repository setup.

1. First we need to install the required packages:

[user@linux ~]# sudo yum install asterisk

Continue reading