Complete answer that solved my question for any others that are after a step by step walkthrough… Install vsftpd using “yum install vsftpd”. Create user with useradd [user_name]. Create user’s password with passwd [user_name]. (You’ll be prompted to specify the password). Create FTP directory in /var/ftp and then bind to the ‘home’ directory you wish […]
Creating the SOAP server with NuSOAP
Creating the SOAP server Create a file called food.php and copy the and paste the below code into it. <?php require_once “lib/nusoap.php”; class food { public function getFood($type) { switch ($type) { case ‘starter’: return ‘Soup’; break; case ‘Main’: return ‘Curry’; break; case ‘Desert’: return ‘Ice Cream’; break; default: break; } } } $server = […]
How to install, setup and configure an OpenVPN Service on CentOS 5
In this tutorial, we will learn how to install, setup and configure an OpenVPN Service on CentOS 5 as well as configuring the firewall to allow vpn traffic. Clients configuration will be done in the linked article, available at the bottom of this tutorial. Topology used in this scenario: 1 Ethernet card (eth0) connected to […]
Receive Caller ID and dial USSD via AT commands
Sample code : #include “SIM900.h” #include //#include “inetGSM.h” //#include “sms.h” //#include “call.h” //To change pins for Software Serial, use the two lines in GSM.cpp. //GSM Shield for Arduino //www.open-electronics.org //this code is based on the example of Arduino Labs. //Simple sketch to communicate with SIM900 through AT commands. //InetGSM inet; //CallGSM call; //SMSGSM sms; int […]
How To Create a New User and Grant Permissions in MySQL
How to Create a New User Let’s start by making a new user within the MySQL shell: CREATE USER ‘newuser’@’localhost’ IDENTIFIED BY ‘password’; Sadly, at this point newuser has no permissions to do anything with the databases. In fact, if newuser even tries to login (with the password, password), they will not be able to […]
OBD Call using Asterisk CLI
This is a useful command when building your dial plan, it allows testing of the dial plan remotely. There are a couple of commands to explain. The first is the originate command a highly useful tool for checking any IVR context’s, this is how to use it. originate SIP/14075551234@sip-outbound extension s@auto-att Let me explain this.: […]
Howto setup Asterisk behind NAT
This HOWTO assumes that your FreePBX system is sitting behind a NATed firewall with no direct connection to the outside world and it is NOT in the DMZ zone. If you have your system facing outside, or have used Mapped IP addresses or other techniques, then it is assumed that you have adequate knowledge to […]
Fix Asterisk 1 way Audio Issues
NAT issues Perhaps the most common problem encountered is one-way audio, and 99% of the time, this is caused by a NAT firewall. So here are the steps you must take to configure the PBX to work behind a NAT firewall. Make sure you have a resolvable address on the Internet. If you don’t want […]
Connect Cisco SPA400 SIP Gateway (4 FXO Ports) with Asterisk
On Asterisk /etc/asterisk/sip.conf, you need to configure the account exactly similar to User ID of SPA400 The entries in sip.conf to enable Asterisk register to SPA400 are as follow: [general] register => 9000@192.168.0.6/9000 Replace 9000 with the value you entered in the User ID of SPA400, and replace 192.168.0.2 with the IP address of the […]
Receive Voice Call
This sketch receives a voice call from an Arduino or Genuino board equipped with a GSM shield. Once the call is received and connected, it shows the number that is calling, and hangs up. You’ll need to attach a speaker and microphone to hear the connected call and transmit your voice. Hardware Required Arduino or […]