[Asterisk-Users] Call-in/Call-out
Crystal Stream, Incorporated
crystalstreaminc at yahoo.com
Tue Oct 4 10:29:16 MST 2005
Here is my extensions.conf file. Things have been left
out or changed to protect the innocent.
Why isn't it working when I call from the outside that
when I press 124 it repeats the menu and doesn't
initiate DISA correctly to dial out?
[general]
static=yes
writeprotect=yes
[globals]
[voicepulse-in]
exten => ${OURVOIP1},1,Noop(${DATETIME} ${CALLERID})
exten => ${OURVOIP1},2,Answer
exten => ${OURVOIP1},3,Goto(main-menu,s,2)
exten => ${OURVOIP1},4,Hangup
[nufone-in]
exten => ${OURVOIP3},1,Noop(${DATETIME} ${CALLERID})
exten => ${OURVOIP3},2,Answer
exten => ${OURVOIP3},3,Goto(main-menu,s,2)
exten => ${OURVOIP3},4,Hangup
[incoming-sip]
include => voicepulse-in
include => nufone-in
exten => s,1,Noop(${DATETIME} ${CALLERID})
exten => s,2,Answer
exten => s,3,Goto(main-menu,s,6)
exten => s,4,Hangup
;;;; MAIN MENU ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[main-menu]
include => operator
include => queues
; if pressed 4-digit extension:
include => local
; conferences from outside:
include => conferences-external
; for main menu selections:
exten => 1,1,Goto(office-day,1,1)
exten => 2,1,Goto(office-day,2,1)
exten => 3,1,Goto(office-day,3,1)
exten => 4,1,Goto(office-day,4,1)
exten => 5,1,Goto(office-day,5,1)
exten => s,1,Noop(${DATETIME} ${CALLERID})
exten => s,2,Wait(${WAIT_AFTER_ANSWER})
exten => s,3,SetCallerID(${CALLERID})
exten => s,4,DigitTimeout,2
exten => s,5,ResponseTimeout,7
exten =>
s,6,Background(/usr/local/etc/asterisk/ivr/UPGRADEPHONES)
exten =>
s,7,Background(/usr/local/etc/asterisk/ivr/GREETING)
exten => s,8,WaitExten(1.2)
exten => s,9,SetGlobalVar(prompt_loops=0)
exten =>
s,10,GotoIfTime(07:00-18:00|mon-thu|*|*?office-day,s,2)
exten =>
s,11,GotoIfTime(10:00-16:30|fri|*|*?office-day,s,2)
exten => s,12,Goto(office-night,s,1)
exten => t,1,Goto(main-menu,#,1) ; If they
take too long, go to hangup
; invalid
exten => i,1,Wait(1)
exten => i,2,Playback(invalid) ; "That's not valid,
try again"
exten => i,3,Wait(1)
exten => i,4,Goto(s,6)
; #=hangup
exten => #,1,Wait(1)
exten => #,2,Playback(vm-goodbye)
exten => #,3,Wait(2)
exten => #,4,Hangup
[office-day]
include => operator
include => queues
; if pressed 3-digit extension:
include => local
; conferences from outside:
include => conferences-external
; for accessing voicemail:
include => voicemail
exten => s,1,SetGlobalVar(prompt_loops=1)
exten => s,2,WaitExten(${BETWEEN_PROMPTS})
exten =>
s,3,Background(/usr/local/etc/asterisk/ivr/MAINMENU)
exten => s,4,WaitExten(4)
exten =>
s,5,SetGlobalVar(prompt_loops=$[${prompt_loops} + 1])
exten => s,6,GotoIf($[${prompt_loops} <
${MAX_MENU_LOOPS}] ? 2:23)
exten => s,7,Goto(operator,0,1)
; invalid
exten => i,1,Playback(invalid) ; "That's not valid,
try again"
exten => i,2,Wait(1)
exten => i,3,Goto(s,7)
; timeout
exten => t,1,Goto(operator,0,1)
[office-night]
include => operator
include => queues
; if pressed 3-digit extension:
include => local
; conferences from outside:
include => conferences-external
; for accessing voicemail:
include => voicemail
exten => s,1,SetGlobalVar(prompt_loops=1)
exten => s,2,WaitExten(${BETWEEN_PROMPTS})
exten =>
s,3,Background(/usr/local/etc/asterisk/ivr/MAINMENU)
exten => s,4,WaitExten(4)
exten =>
s,5,SetGlobalVar(prompt_loops=$[${prompt_loops} + 1])
exten => s,6,GotoIf($[${prompt_loops} <
${MAX_MENU_LOOPS}] ? 2:23)
exten => s,7,Goto(operator,0,1)
; invalid
exten => i,1,Wait(1)
exten => i,2,Playback(invalid) ; "That's not valid,
try again"
exten => i,3,Wait(1)
exten => i,4,Goto(s,4)
; timeout
exten => t,1,Goto(main-menu,#,1) ; If they
take too long, go to hangup
[local]
; Directory:
exten => 411,1,Directory(crystal-sip|local)
exten => 411,2,Hangup
; DISA
exten => 124,1,Answer
exten => 124,2,DigitTimeout(5)
exten => 124,3,ResponseTimeout(10)
exten => 124,4,Authenticate(16435679)
exten => 124,DISA(4376194673164379|crystal-sip)
; ##### REAL LOCAL EXTENSIONS
###########################
exten => 9050,1,Macro(sipline,${SIP9050})
exten => 9061,1,Macro(sipline,${SIP9061})
exten => 9072,1,Macro(sipline,${SIP9072})
exten => 9083,1,Macro(sipline,${SIP9083})
exten => 9094,1,Macro(sipline,${SIP9094})
exten => 8005,1,Macro(sipline,${SIP8005})
exten => 8016,1,Macro(sipline,${SIP8016})
; invalid
exten => i,1,Playback(invalid) ; "That's not valid,
try again"
exten => i,2,Wait(1)
exten => i,3,Goto(0,2)
[agent_con]
exten => _3XXX,1,SetGroup(${EXTEN})
exten => _3XXX,2,CheckGroup(1)
exten => _3XXX,3,Dial(SIP/${EXTEN})
exten => _3XXX,103,Busy
[agents]
exten =>
1000,1,AgentCallbackLogin(${CALLERIDNUM}@agent_con)
exten => 1000,2,Hangup
exten =>
1001,1,AgentCallbackLogin(2101|${CALLERIDNUM}@agent_con)
exten => 1001,2,Hangup
exten =>
1002,1,AgentCallbackLogin(2202|${CALLERIDNUM}@agent_con)
exten => 1002,2,Hangup
exten =>
1003,1,AgentCallbackLogin(2303|${CALLERIDNUM}@agent_con)
exten => 1003,2,Hangup
exten => 1091,1,AgentCallbackLogin(2401)
exten => 1091,2,Hangup
exten => 1092,1,AgentCallbackLogin(2502)
exten => 1092,2,Hangup
exten => 1093,1,AgentCallbackLogin(2603)
exten => 1093,2,Hangup
[operator]
exten => 1,1,Background(queue-thankyou)
exten => 1,2,Dial(${SUPPORT_LIST}|30)
exten => 1,3,Goto(main-menu,5,1)
[queues]
; 2: support
exten =>
2,1,Playback(/usr/local/etc/asterisk/ivr/HIGHCALLVOLUMES)
exten => 2,2,Queue(q_support|tT|||300)
exten => 2,3,Playback(queue-thankyou)
exten => 2,4,Voicemail(s1234)
; 3: cust.service
exten =>
3,1,Playback(/usr/local/etc/asterisk/ivr/HIGHCALLVOLUMES)
exten => 3,2,Queue(q_custserv|tT|||300)
exten => 3,3,Playback(queue-thankyou)
exten => 3,4,Voicemail(s1234)
; 4: sales
exten =>
4,1,Playback(/usr/local/etc/asterisk/ivr/HIGHCALLVOLUMES)
exten => 4,2,Queue(q_sales|tT|||300)
exten => 4,3,Playback(queue-thankyou)
exten => 4,4,Voicemail(s1234)
; 5: billing
exten =>
5,1,Playback(/usr/local/etc/asterisk/ivr/HIGHCALLVOLUMES)
exten => 5,2,Queue(q_bill|tT|||300)
exten => 5,3,Playback(queue-thankyou)
exten => 5,4,Voicemail(s1234)
; 6: HR & press
exten =>
6,1,Playback(/usr/local/etc/asterisk/ivr/HIGHCALLVOLUMES)
exten => 6,2,Queue(q_hrpr|tT|||300)
exten => 6,3,Playback(queue-thankyou)
exten => 6,4,Voicemail(s1234)
; 9: account system
exten =>
9,1,Playback(/usr/local/etc/asterisk/ivr/HIGHCALLVOLUMES)
exten => 9,2,Queue(q_accsys|tT|||300)
exten => 9,3,Playback(queue-thankyou)
exten => 9,4,Voicemail(s1234)
[macro-conference]
exten => s,1,Answer
exten => s,2,Wait(0.5)
exten => s,3,Authenticate(${ARG2})
exten => s,4,MeetMe(${ARG1}|piqM)
exten => s,5,Playback(vm-goodbye)
exten => s,6,Hangup
[conferences-internal]
exten => #6501,1,MeetMe(${CONF1}|piqMas) ; Main
Conference - Prefixed #
exten => *6502,1,MeetMe(${CONF2}|piqMas)
exten => *6503,1,MeetMe(${CONF3}|piqMas)
exten => *6504,1,MeetMe(${CONF4}|piqMas)
exten => *6505,1,MeetMe(${CONF5}|piqMas)
exten => *6506,1,MeetMe(${CONF6}|piqMas)
exten => *6507,1,MeetMe(${CONF7}|piqMas)
exten => *6508,1,MeetMe(${CONF8}|piqMas)
exten => *6509,1,MeetMe(${CONF9}|piqMas)
[conferences-external]
; conferences from outside:
exten => *6501,1,Macro(conference,${CONF1},${CPIN1})
exten => *6502,1,Macro(conference,${CONF2},${CPIN2})
exten => *6503,1,Macro(conference,${CONF3},${CPIN3})
exten => *6504,1,Macro(conference,${CONF4},${CPIN4})
exten => *6505,1,Macro(conference,${CONF5},${CPIN5})
exten => *6506,1,Macro(conference,${CONF6},${CPIN6})
exten => *6507,1,Macro(conference,${CONF7},${CPIN7})
exten => *6508,1,Macro(conference,${CONF8},${CPIN8})
exten => *6509,1,Macro(conference,${CONF9},${CPIN9})
[voip-outgoing]
exten => _91NXXNXXXXXX,1,Macro(outvoip,${EXTEN:1})
exten => _91NXXNXXXXXX,2,Congestion
exten => _9NXXNXXXXXX,1,Macro(outvoip,1${EXTEN:1})
exten => _9NXXNXXXXXX,2,Congestion
[voip-outgoing-2]
exten => _81NXXNXXXXXX,1,Macro(outvoip-2,${EXTEN:1})
exten => _81NXXNXXXXXX,2,Congestion
exten => _8NXXNXXXXXX,1,Macro(outvoip-2,1${EXTEN:1})
exten => _8NXXNXXXXXX,2,Congestion
[crystal-sip]
include => local
include => voicemail
include => agents
include => operator
include => queues
include => voip-outgoing
include => voip-outgoing-2
include => conferences-internal
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the asterisk-users
mailing list