Asterisk App DISA usage and programing control 

DISA: Direct Inward System Access, application allows someone from outside the telephone switch (PBX) to obtain an <emphasis>internal</emphasis> system dialtone and to place calls from it as if they were placing a call from within the switch.
Sampel Extension Usage:

exten => 123,1,DISA(111,disa-context,,123@default,np)
or
exten => 123,1,DISA(/etc/asterisk/passcode.txt)

passcode.txt is like this:

111,disa-context,,123@default
222,disa-context,,123@default

In the for loop, when k is either 00, or 10, the loop would be in password state, entered digit saved in f->subclass and assigned to j, later saved in array exten[i++]=j. when password end with #, k would be set to k|=1 to 3(11), i reset to 0, the password state test k&1 would be all false,so skips all the password state instruction, and do the exten[i++]=j to save entered extension number to array exten, when # entered, break the loop and go to check if k==3.
[ add comment ] permalink ( 3 / 5 )
Tip to turn on vim syntax highlighting on os x 10.5 

$HOME/.vimrc, put "syntax enable"
[ add comment ] permalink ( 3 / 20 )
mp3 to audio cd converter on Linux 

I bought a cheap FM/AM and CD player for my little baby, the CD part could not play mp3 format music. Since I have a lot of MP3 music files, I need to convert them to audio CD so that my baby could enjoy the music, I found that mp3cd (written in Perl) is quite intuitive to automatically convert mp3 to CD.

http://outflux.net/unix/software/mp3cd/
[ add comment ] permalink ( 2.9 / 21 )
Linux filesystem events API 

Here is Linux file sytem events API you could use to monitor Linux folder/files changes.

inotify
[ add comment ] permalink ( 3.1 / 22 )
tcpdump and libpcap patch and package for IP04 

I created tcpdump package for IP04 to capture raw packets

http://bl0g.blogdns.com/ip04/tcpdump.mk
http://bl0g.blogdns.com/ip04/libpcap.mk
[ add comment ] permalink ( 3 / 33 )

Back Next