Category: Voice Over IP

Kamailio Errors and Solutions

Kamailio Errors and Solutions

FIFO stat failed: Bad address I came across this error when trying to run fresh install of kamailio 3.3.3 via the init script. However, when I ran kamailio , it was running fine. So...

Kamailio Log Management

Kamailio Log Management

Separate Log File for Kamailio In order to create a separate log file for kamailio, you would need to edit two files. First , set the log_facility directive : vi kamailio.cfg log_facility=LOG_LOCAL0 Edit the...

asterisk convert sound to g729

asterisk convert sound to g729

for a in *.wav; do rasterisk -x “file convert /var/lib/asterisk/sounds/custom/$a /var/lib/asterisk/sounds/custom/`echo $a|sed “s/.wav/.g729/”`”; done; If you get error unable to open input file, that means the input file is not in correct wav format,...

Php AGI For Asterisk

Php AGI For Asterisk

It is nice to customize the telephony system to meet your needs. If you are willing to learn more.. here I am writing this small tutorial to describe how to create a php agi...

Ip Authentication in Kamailio

Ip Authentication in Kamailio

IP baseed Authentication in Kamailio for Peers. route[PEER]{ if (allow_trusted("$si","$(proto)")) { xlog("L_INFO","\n\n–Trusted IP – $si – $proto"); record_route(); route(LCR); }; if (allow_address("1", "$si", "$sp")) { xlog("L_INFO","Trusted IP-$si-$proto"); record_route(); route(LCR); }; }   You have...

Create View for simplifying LCR tables

Create View for simplifying LCR tables

MySQL View to simplify Kamailio LCR Tables create view openser.nt_dialplan As SELECT t.rule_id,r.lcr_id,prefix,from_uri,stopper,enabled,gw_id,priority,weight FROM lcr_rule r, lcr_rule_target t WHERE r.id = t.rule_id

Kamailio Nat Traversal using RTPProxy

Kamailio Nat Traversal using RTPProxy

1. Install rtpproxy : http://b2bua.org/chrome/site/rtpproxy-1.2.1.tar.gz tar -zxvf rtpproxy-1.2.1.tar.gz cd rtpproxy-1.2.1 ./configure make make install 2. Create users to run rtpproxy adduser rtpproxy -d /home/rtpproxy -s /bin/false 5. Init script for rtpproxy ( Paste the...

Using LCR with kamailio

Using LCR with kamailio

Follow the tutorial here to implement LCR with kamailio : 1. Add lcr.so to load module #loadmodule lcr.so 2. Add required parameters to the module modparam(“lcr”,”db_url”,DBURL) modparam(“lcr”, “gw_uri_avp”, “$avp(i:709)”) modparam(“lcr”, “ruri_user_avp”, “$avp(i:500)”) modparam(“lcr”, “flags_avp”,...