Shell script to show calender

Use your vi  editor to create shell script, script.sh . This script runs three echo commands and shows the use of variable evaluation and command substitution. It also prints the calender of the current month. #!/bin/sh echo “Today’s date : `date` ” echo “This month’s calender:” cal `date “+%m 20%y` echo “My shell : $SHELL” … Read more

VI editor – Linux command line editor

http://blog.eduguru.in/linux-2/the-vi-editor http://t4test.com/blog/unix-linux-shell-script-introduction-to-shell-scripting/ http://t4test.com/blog/cpio-a-backup-program/ http://t4test.com/blog/read-making-shell-script-interactive/ http://t4test.com/blog/root-system-administrator-super-user-part-1/ http://t4test.com/blog/etchosts-the-host-file/ VI editor  VI operates in three modes for performing different functions. —-The Command Mode is used to enter commands that operates on text or control cursor motion. —-The Input Mode is used to enter text. —-The ex Mode (or last line mode) is used for line handling and substitution. … Read more

call transfer or call forwarding in asterisk

call transfer or call forwarding in asterisk [test] exten => 1000,1,Dial(SIP/User1) exten => 1000,n,Hangup() exten => 2000,1,Dial(SIP/User2) exten => 2000,n,Hangup() exten => 3000,1,Dial(SIP/User3) exten => 3000,n,Hangup() ;call forwarding exten => _*21*X.,1,NoCDR exten => _*21*X.,2,Set(DB(CFIM/${CALLERID(NUM)}=${EXTEN:4}) exten => _*21*X.,3,Playback(vm-saved) exten => _*21*X.,4,Hangup()    

Dialer in one hour

Expertise in : OPEN SOURCE Dialer DEVELOPMENT Features:- Reports :  Optimized dialer reporting, Real-time and summary reports, Hourly Totals by Status, Category on Real Time report Call report Lead performance by campaign report Agent performance report Call Features: Call conference , Call Transfer Call Barge, Whisper, Call monitor (snoop or silent) Click to Call / … Read more

saving data into custom cdr field – add new filed in cdr

I created custom field “rec_name” id table “cdr”, database “asteriskcdrdb”. In this field I want to store recording name. I know i should do it by adding this line in one of .conf files, but where? exten => s,1,set(CDR(rec_name)=${CALLFILENAME}) I can do it by sql statement, too, but i don’t know where is the file … Read more

Find Linux RAM Information Command and system information

  You need to use the free command: # free # free -m total used free shared buffers cached Mem: 7930 4103 3826 0 59 2060 -/+ buffers/cache: 1983 5946 Swap: 15487 0 15487 For system information: You need to use the dmidecode command: # dmidecode –type 17 OR # dmidecode –type memory OR # … Read more

Asterisk : Creating a Simple IVR Menu

[demo-menu] exten => s,1,Answer(500)    same => n(loop),Background(press-1&or&press-2)    same => n,WaitExten() exten => 1,1,Playback(you-entered)    same => n,SayNumber(1)    same => n,Goto(s,loop) exten => 2,1,Playback(you-entered)    same => n,SayNumber(2)    same => n,Goto(s,loop) [from-pstn] exten => 6598,1,Goto(demo-menu,s,1)