Limit Outoing Call Duration – Elastix

Posted: December 13, 2016 in System, VOIP

PBX > PBX Configuration > General Settings

outbound-dial-command

Asterisk Outbound Dial command options

Semua outgoing akan diberlakukan S(x)

S(x): Hang up the call seconds after the called party has answered the call.

Analog Trunk Elastix with TDM400P Card

Posted: December 12, 2016 in System, VOIP

INSTALL CARD

  1. Beli ( sesuai kebutuhan 2fxo [module warna merah] )
  2. Install hardware / pasang
  3. Elastix > System > Hardware Detector

hadware-detector

Port Status channel 1 & 2 sudah terpasang kabel dari Telk*m, berfungsi normal apabila module terdeteksi sebagai fxo dan warnanya hijau.

 

ADD TRUNK

PBX > PBX Configuration > Trunks > Add Zap Trunk (DAHDI compatibility mode)

zap-trunk

Trunk Name = As You Like
Outbound Caller ID = Nomer telp dari Telk*m
Zap Identifier= channel pada card dimana line tersebut disambungkan

OUTBOUND ROUTE

PBX > PBX Configuration > Outbound Routes

oubound-route

Route Name = As you liked
Dial Pattern = Disini sy hanya membuat aturan hanya extensi 104, 3, 33 yg boleh outgoing menggunakan trunk TR-TLKOM19
Trunk Sequence = TR-TLKOM19

FINISH

 

 

Enable Jitter Buffer in Elastix

Posted: December 12, 2016 in System, VOIP
  • jbenable = yes|no : Enables the use of a jitterbuffer on the receiving side of a SIP channel. (Added in Version 1.4)
  • jbforce = yes|no : Forces the use of a jitterbuffer on the receive side of a SIP channel. Defaults to “no”. (Added in Version 1.4)
  • jbmaxsize = Number : Max length of the jitterbuffer in milliseconds. (Added in Version 1.4)

# nano -w /etc/asterisk/sip_general_custom.conf

jbenable=yes
jbforce=yes
jbmaxsize=1000

 

# rasterisk -x reload
# amportal admin reload

Hello the Net

Posted: February 16, 2016 in Coretan Dinding

Hello the Net, im a live

#!/bin/sh

################################################# #
# Parsing table routing IIX #
# #
# Tri Budi – tribudi@hijaunet.com #
# $ readIIX.sh, v.1.1 2010/05/21 14:38 $ #
##################################################

NICE=/etc/nice.rsc

cidr=`find $NICE -exec grep ‘[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*’ {} \;| sed ‘s/^[add list=nice address=”]*//’|perl -pe ‘s/.$//’`

for i in $cidr
do
echo “$cidr” >> /etc/iix
done

Download here

Seperti penjelasan di web nya,  release 4.7 melakukan perubahan di dalam rule PF.  Sedikit penjelasanya adalah sbg berikut :

pf(4) Perubahan syntax NAT

Menggantikan aturan fungsi nat/rdr/binat dengan aturan fungsi match/filter, contohnya sebagai berikut

nat on $ext_if from 10/8 -> ($ext_if)
 rdr on $ext_if to ($ext_if) -> 1.2.3.4

Menjadi

   match out on $ext_if from 10/8 nat-to ($ext_if)
   match in on $ext_if to ($ext_if) rdr-to 1.2.3.4

dan…

   binat on $ext_if from $web_serv_int to any -> $web_serv_ext

menjadi…

   match on $ext_if from $web_serv_int to any binat-to $web_serv_ext

Semoga bermanfaat….

Upgrade Guide: 4.6 to 4.7

#!/bin/sh
######################################################
#    Proses kompilasi kernel OpenBSD sebagai proxy   #
#                                                    #
#        Tri Budi - tribudi@hijaunet.com             #
#  $ compilekernel.sh, v.1.3 2010/05/19 23:53 $      #
######################################################

KERNPATH=/sys/arch/i386/conf
SERVER=ftp.openbsd.or.id
DIR='pub/OpenBSD/4.6/packages/i386'
HOSTNAME=`/bin/hostname -s`

# FTP & install dmassage
#-----------------------
get() {
ftplist="" # Set to null in case for second invocation
for item in $@ ; do
full_name=ftp://$SERVER/$DIR/$item
ftplist="$ftplist $full_name"
done

echo "About to get the following:"
echo "$ftplist"

ftp $ftplist
}
get dmassage*
pkg_add dmassage*

# End of process
#---------------

for i in {src,sys}.tar.gz; do
echo "Extract source kernel";
cd /home/
tar -zxf $i -C /usr/src
done

if ls $KERNPATH |grep 'GENERIC'; then
echo "Customize Kernel";
cd $KERNPATH;
dmassage -s GENERIC > $HOSTNAME
fi

echo "option BUFCACHEPERCENT=15" >> $KERNPATH/$HOSTNAME
echo "option MSGMNB=16384" >> $KERNPATH/$HOSTNAME
echo "option MSGMNI=60" >> $KERNPATH/$HOSTNAME
echo "option MSGSEG=4096" >> $KERNPATH/$HOSTNAME
echo "option MSGSSZ=64" >> $KERNPATH/$HOSTNAME
echo "option MSGTQL=1024" >> $KERNPATH/$HOSTNAME
echo "option MAXFILES=8192" >> $KERNPATH/$HOSTNAME

echo "Configuring new kernel" ;
cd $KERNPATH
config $HOSTNAME
cd ../compile/$HOSTNAME
make depend && make && make install
echo "Kernel install succesfully, system would be reboot";
reboot

# EOF

Download Here

Yg blom bener mohon direvisi !!!