dana.satriya

February 28, 2009

Netbsd di TS-7200

Filed under: oprekan iseng

TS-7200 adalah board keluaran embeddedarm. Karena satu dan lain hal, saya harus menggunakan board ini untuk membangun sistem telephony. Gambar dari board tersebut bisa dilihat pada gambar berikut.

TS-7200

Board ini sudah bundled dengan TS-Arm linux 2.4 pada flash memorynya. Saya memutuskan untuk menggunakan  usb flashdisk yang diisi dengan netbsd. Linux distro lain seperti dsl, ubuntu, puppy, yang diharapkan dapat bekerja pada usb tidak terdapat pada situs ini. dsl,ubuntu,maupun puppy merupakan distro x86, sedangkan TS-7200 menggunakan prosesor ARM, dan setiap sistem yang diharapkan berjalan pada TS-7200 harus dicompile untuk ARM.

USB yang saya gunakan (kingstone) berkapasitas 1 GB, dan bagi mereka yang ingin menggunakan usb 16 MB dapat mencoba berdiskusi di milis ini . Prosedur installasi netbsd pada usb adalah sebagai berikut

1. Hubungkan hyper terminal dan board ts-7200

2. Interupsi proses boot dengan menekan ctrl+c agar masuk ke script Redboot

3. Hubungkan usb pada board

4. Konfigurasi network bisa dilihat pada halaman ini

5. Ping

6. Download file netbsd dari ftp embeddedarm  dan cari file yang bernama netbsd-TS7200_INSTALL.bin. Buat mirror di situs lain dan uplot file tersebut. (misal : gunakan 192.168.0.2/~dana/netbsd-TS7200_INSTALL.bin. Hal ini diharapkan dapat mempercepat prosedur download ke ram board, daripada harus mendownload langsung dari ftp.

7. Pada redboot > load -v -r -b 0x00200000 -h 192.168.0.2 -m http /~dana/netbsd-TS7200_INSTALL.bin

8. Setelah file tersebut tersimpan sementara pada ram, ketikkan perintah pada redboot > go untuk melakukan installasi ke usb.

9. Ikuti prosedur installasi yang tertera di layar hyperterminal dengan melakukan partisi dan prosedur standar lainnya. Untuk installasi base system, bisa menggunakan  situs telah disediakan (http) atau gunakan mirror netbsd lokal (saya menggunakan mirror itb)

10. Setelah installasi ke dalam usb  berhasil, pada redboot > fis delete vmlinux

11. Redboot > fis create -b 0x00200000 -l 0x160000 -f 0x60660000 netbsd.gz

12. Untuk masuk ke # netbsd, pada Redboot > go 0x60660000

13. Untuk default boot netbsd, dapat dilihat di sini , dan di sini

 

Reference : 1,2,

Thanx to : 3

 

 

February 23, 2009

How to install Opensips in ubuntu server

Filed under: oprekan iseng

 

How to install OpenSIPS in ubuntu 8.04

1. install subversion gcc flex bison libmysqlclient15-dev make

2. if your are behind a proxy, configure it in /etc/subversion/servers. Change in [global] section

3. root@tampan:/usr/local/src/opensips# svn co https://opensips.svn.sourceforge.net/svnroot/opensips/branches/1.4 opensips14

4. root@tampan:/usr/local/src/opensips14# pico Makefile

//ctrl w , find excludemodules?=

//delete dbmysql from that line

5. root@tampan:/usr/local/src/opensips14# NICER=1 make all

6. root@tampan:/usr/local/src/opensips14# make install

7. root@tampan:/usr/local/sbin# ls
opensips  opensipsctl  opensipsdbctl  opensipsunix -> make sure they are on this folder

8. root@tampan:/usr/local/sbin# pico /usr/local/etc/opensips/opensipsctlrc

9. ## your SIP domain
uncomment SIP_DOMAIN=FILLINYOURIPADDRESSHERE

uncomment DBENGINE=MYSQL

10. root@tampan:/usr/local/sbin# opensipsdbctl create

MySQL password for root:
INFO: test server charset
INFO: creating database opensips …
INFO: Core OpenSIPS tables succesfully created.
Install presence related tables? (y/n): y
INFO: creating presence tables into opensips …
INFO: Presence tables succesfully created.
Install tables for imc cpl siptrace domainpolicy carrierroute userblacklist? (y/n): y
INFO: creating extra tables into opensips …
INFO: Extra tables succesfully created.


11. root@tampan:/usr/local/sbin# ls
opensips  opensipsctl  opensipsdbctl  opensipsunix
12. root@tampan:/usr/local/sbin# opensipsctl start

INFO: Starting OpenSIPS :
INFO: started (pid: 4723)

 *will post the routing diagram block of the configuration next time.. if i’m not too lazy emoticon *

kredit : 1. 2.

February 22, 2009

just another updates

Filed under: Me,oh only me..

updates : almost one month working.. and i am enjoying (and am very proud) of all of this. Still working on a VoIP network, using several different tools.

and also, re-reading headfirst-graphical-book (trying to make a 99-beers song haha)

February 12, 2009

How to play mp3 in your asterisk

Filed under: Asterisk

first of all, what we have to install in our asterisk server

mpg123 (either using port/using aptitude)

 @extensions.conf simply add this

 

[player]
exten => 12345,1,Answer()
exten => 12345,2,MP3Player(/var/spool/asterisk/tmp/santa.mp3)
exten => 12345,3,MP3Player(/usr/share/asterisk/mohmp3/Setia.mp3)

 

…. (and so on, depends on which file we want to add)


 

 @ sip.conf, add a user that is below the [player] context

 however, still can not figure how to shuffle that "playlist"..  got any idea anyone?emoticon

Get free blog up and running in minutes with Blogsome
Theme designed by Ian Main