Amit's Blog
  • Home
  • Videos
  • All Posts
  • Tags
  • About Me
Subscribe
Tagged

Asterisk

A collection of 3 posts

Asterisk

Asterisk Greetings Based on Time and Date

Place this in your agi-bin directory (usually /var/lib/asterisk/agi-bin): !/bin/sh TODAY=date +%m%d%y TODAYSHORT=date +%m%d DAY=date +%a HOUR=date +%H MINUTE=date +%M TIMENOW=$HOUR$MINUTE STATUS=closed case "$TODAYSHORT" in 0101 ) STATUS=holiday;; # New Years Day 0704 ) STATUS=holiday;; # July Forth

  • amit
amit Apr 9, 2010 • 2 min read
Asterisk

Time based Dial Plans in Asterisk

Syntax: include => context|||| e.g: include = day,08:00-16:59,mon-fri,, ; First, let's do the holidays include => holiday|||1|jan include => holiday|| |31|may include => holiday|||4|jul include => holiday|||6|sep include => holiday|17:00-23:59||24|nov include => holiday|||25|nov include => holiday|17:00-23:59||24|dec

  • amit
amit Apr 9, 2010 • 1 min read
Asterisk

Asterisk–Creating an Auto Attendant

Method One : using on/off service codes : Login with 111 and log out with 222 exten => *111,1,DBPUT(auto/attendant=1) exten => *222,1,DBPut(auto/attendant=0) Incoming calls- check if autoattendant is logged in, otherwise goto "auto" exten => s,1,DBGet(autoattendant=auto/attendant) exten => s,2,

  • amit
amit Apr 9, 2010 • 1 min read
Amit's Blog © 2023
Powered by Ghost