Freebsd: Install wget Utility To Download Files From The Internet

June 7th, 2010 emran No comments

Install wget Using FreeBSD Ports Collection

Type the following command as root user to upgrade ports tree, enter:

# portsnap fetch update

Now, install the wget, enter:

# cd /usr/ports/ftp/wget
# make install clean
# rehash

Categories: FreeBSD, Unix Tags:

Git Tutorial

June 7th, 2010 emran No comments

You have to download your project and place to a folder.

$ tar xzf project.tar.gz
$ cd project
$ git init-db

This will initialize your project on git.now you have to add files which will monitored via git.

$ git add .

these means git will monitor all files.

$ git commit -a

This will prompt a message to commit.
Try modifying some files, then run

$git diff

to review your changes.

Categories: CentOS, Linux Tags:

OpenSIPS Externel Perl Script Run

June 7th, 2010 emran No comments

You can easily redirect any sip uri based on opensips exec.so module on perl script. you need to load

loadmodule “exec.so”

In the route section you have to exec perl script with paramter $tu (To username) and $fu (from Username).

route {

if(method == “INVITE”) {
exec_dset(“/usr/local/bin/route.pl $fU $tU”);
sl_send_reply(“302″,”LCR Redirect”);
} else {
route(1);
}

}

In the perl script just write the follow code:

#!/bin/sh
echo sip:+121242415112@howtonix.com

NOTE: To get this to work correctly with Asterisk you need to add “promiscredir=yes” to the general section of your sip.conf

VoIP on Symbian Mobile

June 7th, 2010 emran No comments

Now a days it is very hot topics about voip on symbian mobile. To Call Over the internet from Mobile phone helps peoples life easier.There are few commercial and free voip mobile dialer for symbian and android.

One of them is Fring.You can make voip sip calls from fring.You can also use MSN, yahoo and Google.It supports many devices such as Nokia N73,n71,n75,E65 etc. It also support Other platform like iphone. It supports g711,GSM codec only.

SIPDialer is a product of E-SOFT BILLING PTE LTD. They provide commercial service. Their SIPDialer supports Symbian s60 3rd ed and android phone. You can send a demo request  from their website www.e-softbilling.com. They provide 5 days demo to run own sip proxy. SIPDialer supports G729,AMR,GSM and g711 codec. SIPDialre has balance display, realtime call duration, incoming call, DTMF, phone book features.Proxy IP can be changed on the fly.

SIPDroid is another opensource application for android phone.you can make audio and video calls from SIPDroid.It is based on mjsip.It has gsm, g711,ilbc and speex codecs.

FreeBSD Install Lighttpd Web Server

June 7th, 2010 admin No comments

Lighttpd a secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load.

Lighttpd on FreeBSD:

First update your port tree by typing following commands:

# portsnap fetch
# portsnap update

Install lighttpd web server under FreeBSD

Lighttpd port is located under /usr/ports/www/lighttpd:

# cd /usr/ports/www/lighttpd

Install lighttpd:

# make
# make install
# make clean

Start Lighttpd Server Under FreeBSD

To start Lighttpd server, enter:

# /usr/local/etc/rc.d/lighttpd start

Verify that lighttpd is running:

# netstat -nat

Auto start lighttpd service

You need to enable both services. Open /etc/rc.conf:

# vi /etc/rc.conf

Append following two lines:

lighttpd_enable="YES"

Reducing the size of your GCCE executables for Symbian Carbide C++

June 7th, 2010 emran No comments

Add the following code in mmp file:
OPTION GCCE -O2 -fno-unit-at-a-time

H323Plus on FreeSWITCH

March 10th, 2010 emran No comments

First you have to download & install ptlib:

In your home, create a directory e.g. h323
mkdir -p ~/h323
cd ~/h323
wget http://www.h323plus.org/source/download/ptlib-2.4.5.tar.bz2
bunzip2 ptlib-2.4.5.tar.bz2
tar -xvf ptlib-2.4.5.tar.bz2
mv ptlib-2.4.5 ptlib-trunk
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib
cd ptlib-trunk
./configure
make
sudo make install
cd ..

Now, install h323plus

cd ~/h323

http://www.h323plus.org/source/download/h323plus-v1_21_0.tar.gz

export PTLIBDIR=~/h323/ptlib-trunk

tar -xzvf h323plus-v1_21_0.tar.gz
cd h323plus
./configure
make
make install

Now install mod_h323 on Freeswitch.

assuming you have FS source in your home
cd ~/freeswitch-trunk

make mod_h323-clean
make mod_h323
sudo make mod_h323-install

Now configure h323.conf.xml. It is similiar like mod_opal.

<configuration name=”h323.conf” description=”H323 Endpoints”>
  <settings>
    <param name=”trace-level” value=”4″/>
    <param name=”context” value=”public”/>
    <param name=”dialplan” value=”XML”/>
    <param name=”codec-prefs” value=”PCMU,PCMU,G729,GSM”/>
  </settings>
  <listeners>
    <listener name=”myH323_listener”>
      <param name=”h323-ip” value=”$${local_ip_v4}”/>
      <param name=”h323-port” value=”1720″/>
    </listener>
  </listeners>
</configuration>

 

   

How to create tar.gz?

December 19th, 2009 emran No comments

You can create tar.gz file with the following command.DO NOT ENTER / after the directory name.

tar -cvzf  test.tar.gz test

Raising the ulimit -n above 1024

November 7th, 2009 emran No comments
by default the ulimit is set to 1024 only, first u need to increase system wise with

“fs.file-max = 65536″

adding this one in sysctl.conf

and then “sysctl -p”

switch to /etc/securitty/limits.conf and add ther following lines

* hard nofile 65536
* soft nofile 16384

switch 2 user for which u need to increase the file-max for, with this the default for all users will be 16384,

u can increase with ulimit -n XXXX now

Categories: Linux Tags:

How to change quintum H323 Port?

October 31st, 2009 emran No comments

In the var_config.cfg file, you can now turn on a feature to block incoming
H323 calls. Set the following two lines:

H323Q931PortFlag 1
H323Q931PortNum 1788 or some other number for listening port (other than 0)”

Save as var_config.cfg and upload via FTP.

6 visitors online right now
6 guests, 0 members
Max visitors today: 6 at 10:16 am UTC
This month: 6 at 09-01-2010 01:02 am UTC
This year: 43 at 06-10-2010 04:02 pm UTC
All time: 43 at 06-10-2010 04:02 pm UTC