Changing My Blog’s Purpose So, after a 4 month hiatus I’m finally resurrecting my blog…again. I’m also changing the purpose of this blog again as well. Previously, it used to be focused around VoIP and learning web technologies. This time around it will be more personal. I’ll be starting with chronicling a challenge I found on reddit early this week. The challenge is super simple. Wake up everyday for 1 month at 6 am then meditate for 10 minutes.
Note: These instructions are for Kamailio 4.0.x and Ubuntu Recently, I installed Kamailio on a small VPS I have. After getting tired of constantly grepping syslog, I finally decided to setup Kamailio so that all of it’s debug output and messages would go to a separate file. In my case, /var/log/kamailio. First, open up your Kamailio configuration file (/etc/kamailio/kamailio.cfg in my case) with your editor of choice and add the following line some where near the top: #!define WITH_DEBUG Next, search the file for the “log_stderror” lines and change them both to ‘no’ like so: #!ifdef WITH_DEBUG debug=4 log_stderror=no #!else debug=4 log_stderror=no #!endif Setting log_stderr to no tells Kamailio to write messages to syslog instead of stderr.
Note: Ubuntu 14.04 & Kamailio 4.0.X (default config) was used for this guide After being constantly stumped by RTPProxy and Kamailio, I’ve finally figured it out. In retrospect I’m not sure why it took me so long to figure out how to use them together. To save anyone else from future headaches, I’ll document how I got RTPProxy to work with Kamailio. As a quick note, here’s how I use Kamailio.
Recently I had to do work with a client who was having issues with vsftpd on one of their servers. Sadly logging hadn’t been turned on. Since I always have an issue getting logs to populate with vsftpd I thought it would be a good idea to put it down in writing. To turn on logging, create both of these files. # touch /var/log/xferlog #touch /var/log/vsftpd.log Add the following settings to the vsftpd config file (/etc/vsftpd/vsftpd.conf) dual_log_enable=NO log_ftp_protocol=NO vsftpd_log_file=/var/log/vsftpd.log xferlog_enable=YES xferlog_std_format=NO xferlog_file=/var/log/xferlog Save and exit the file.
How CarrierRoute Works At first glance, the carrierroute module is far more difficult than its alternatives such as the dispatcher module. In reality, its actually quite simple once you play around with its capabilities enough. One of the more interesting ones is load balancing. The carrierroute module relies heavily on the DB for its abilities. It separates its routing into different carrier lists. Each carrier list can have its own purpose.
Recently, I was setting up the directory on a Polycom SoundPoint IP for my apartment. After manually entering some contacts for a while, I got fed up and decided to automate the process. You can find the bash script as a gist. It’s a simple and hacked together bash script that queries the Asterisk DB on a FreePBX machine and spits out an XML file. All you have to do is replace the SQLUSER and SQLPASS variables with your MySQL credentials.
Note: This is the old intro post to my old blog when I was using Nibbleblog and focusing it only on VoIP tech After going back and forth on whether or not I should design and code my own personal website / blog, I finally gave up. I realized that even though there was no issue in regards to coding up the website, my design skills are abysmal. With that conclusion in I set forth to find a simple blog solution that would take me no more than 5 minutes to setup on one of my servers.