December, 2009Archive for

Do not disturb for Asterisk

It is a common misconception (for some reason) that *78 and *79 is default for enable and disable do not disturb. This has to be configured in your dialplan like everything else: [dnd] ; Enable DnD exten => *78,1,Set(DB(SIP/DND/${CALLERID(num)})=1) exten => *78,n,Playback(beep) ; Disable DnD exten => *79,1,NoOp(${DB_DELETE(SIP/DND/${CALLERID(num)})}) exten => *79,n,Playback(beep) And then include in your dial macro/sub: exten => s,5,Set(LOCAL(dnd)=${DB("SIP/DND"/${ext})})...

All things cat

All systems administrators are well familiar with the concatenation tool 'cat', and some also know of the variants such as 'tac', 'supercat' and even the improved cat - 'dog'. A few more or less useful listing of concatenation tools: cat - the basic concatenation tool. supercat - Introduces coloring and can be used for syntax highlighting. tac - reverse cat. dog - improved cat. Can fetch the newspaper (http streams) hungrycat - Removes bytes as it concatenates leaving the file empty once co...