Created
May 2, 2011 21:37
-
-
Save moos3/952437 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[qoutcon] | |
exten => 1,1,NoOp("finding correct vm") | |
exten => 1,n,NoOp(${prefix}) | |
exten => 1,n,GotoIf($[${prefix} == "CSMQ"]?vmCsm) ; csm | |
exten => 1,n,GotoIf($[${prefix} == "REFQ"]?vmReflection) ; reflection | |
exten => 1,n,GotoIf($[${prefix} == "jams"]?vmJams) ; jams | |
exten => 1,n,GotoIf($[${prefix} == "voice"]?vmVoice) ; voice | |
exten => 1,n,GotoIf($[${prefix} == "horizons"]?vmHorizons) ; horizons | |
exten => 1,n,GotoIf($[${prefix} == "commq"]?vmComm) ; community | |
exten => 1,n,GotoIF($[${prefix} == "test"]?vmTest) ;testq | |
exten => 1,n(vmHorizons),Voicemail(107,b) | |
exten => 1,n,Hangup() | |
exten => 1,n(vmComm),Voicemail(106,b) | |
exten => 1,n,Hangup() | |
exten => 1,n(vmCsm),Voicemail(104,b) | |
exten => 1,n,Hangup() | |
exten => 1,n(vmReflection),Voicemail(109,b) | |
exten => 1,n,Hangup() | |
exten => 1,n(vmJams),Voicemail(103,b) | |
exten => 1,n,Hangup() | |
exten => 1,n(vmVoice),Voicemail(105,b) | |
exten => 1,n,Hangup() | |
exten => 1,n(vmTest),Voicemail(104,b) | |
exten => 1,n,Hangup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[support_queues] | |
exten => csm,1,Set(csmagents=${QUEUE_MEMBER_COUNT(csmsupportqueue)}) | |
exten => csm,n,GotoIfTime(18:00-09:00,mon-fri,*,*?vm); if between 6pm to 9am mon-fri go to voicemail | |
exten => csm,n,GotoIfTime(*,sat-sun,*,*?vm); if sat or sun go to voicemail | |
exten => csm,n,NoOp(${csmagents}) | |
exten => csm,n,Set(callerid=${IF($[${LEN(${CALLERID(name)})} < 3]?${CALLERID(num)}:${CALLERID(name)})}) | |
exten => csm,n,Set(__prefix=${IF($["${INCOMING}"="3141"]?REFQ:CSMQ)}) | |
exten => csm,n,NoOp(${prefix}) | |
exten => csm,n,Set(CALLERID(name)=${prefix}:${callerid}) | |
exten => csm,n,Set(playAudio=${IF($["${INCOMING}"="3141"]?symp/reflectionsupportqueue:symp/supportqueuebefore)}) | |
exten => csm,n,GotoIf($["${csmagents}" = "0"]?vm) ; If we have no agents available, then go to voicemail() | |
exten => csm,n,Playback(${playAudio}) ; Entry message | |
exten => csm,n,Playback(symp/ivr/atanytimepress1message) | |
exten => csm,n,Queue(csmsupportqueue,tT,,,60000) ; Place caller in queue for 5 min (300s) until exiting | |
exten => csm,n(vmb),Voicemail(104,b) ; Transfer user to busy voicemail | |
exten => csm,n,Hangup() ; hangup after voicemail if there are queue agents so next VM doesn't pick up | |
exten => csm,n(vm),Voicemail(104,u) ; Play unavail message since the queue is not available | |
exten => csm,n,Hangup() ; May want to change this to a voicemail prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Executing [1@menuProducts:1] Set("DAHDI/2-1", "__INCOMMING="7040"") in new stack | |
-- Executing [1@menuProducts:2] Goto("DAHDI/2-1", "support_queues,csm,1") in new stack | |
-- Goto (support_queues,csm,1) | |
-- Executing [csm@support_queues:1] Set("DAHDI/2-1", "csmagents=3") in new stack | |
-- Executing [csm@support_queues:2] GotoIfTime("DAHDI/2-1", "18:00-09:00,mon-fri,*,*?vm") in new stack | |
-- Executing [csm@support_queues:3] GotoIfTime("DAHDI/2-1", "*,sat-sun,*,*?vm") in new stack | |
-- Executing [csm@support_queues:4] NoOp("DAHDI/2-1", "3") in new stack | |
-- Executing [csm@support_queues:5] Set("DAHDI/2-1", "callerid=EXAMPLE") in new stack | |
-- Executing [csm@support_queues:6] Set("DAHDI/2-1", "__prefix=CSMQ") in new stack | |
-- Executing [csm@support_queues:7] NoOp("DAHDI/2-1", "CSMQ") in new stack | |
-- Executing [csm@support_queues:8] Set("DAHDI/2-1", "CALLERID(name)=CSMQ:EXAMPLE") in new stack | |
-- Executing [csm@support_queues:9] Set("DAHDI/2-1", "playAudio=exa,[;e/supportqueuebefore") in new stack | |
-- Executing [csm@support_queues:10] GotoIf("DAHDI/2-1", "0?vm") in new stack | |
-- Executing [csm@support_queues:11] Playback("DAHDI/2-1", "example/supportqueuebefore") in new stack | |
-- <DAHDI/2-1> Playing 'symp/supportqueuebefore.ulaw' (language 'en') | |
-- Executing [csm@support_queues:12] Playback("DAHDI/2-1", "example/ivr/atanytimepress1message") in new stack | |
-- <DAHDI/2-1> Playing 'example/ivr/atanytimepress1message.ulaw' (language 'en') | |
-- Executing [csm@support_queues:13] Queue("DAHDI/2-1", "csmsupportqueue,tT,,,60000") in new stack | |
-- Started music on hold, class 'manual', on DAHDI/2-1 | |
-- Called SIP/8232 | |
-- SIP/8232-00000aaf is ringing | |
-- User pressed digit: 1 | |
-- Stopped music on hold on DAHDI/2-1 | |
-- Executing [1@qoutcon:1] NoOp("DAHDI/2-1", ""finding correct vm"") in new stack | |
-- Executing [1@qoutcon:2] NoOp("DAHDI/2-1", "CSMQ") in new stack | |
-- Executing [1@qoutcon:3] GotoIf("DAHDI/2-1", "0?vmCsm") in new stack | |
-- Executing [1@qoutcon:4] GotoIf("DAHDI/2-1", "0?vmReflection") in new stack | |
-- Executing [1@qoutcon:5] GotoIf("DAHDI/2-1", "0?vmJams") in new stack | |
-- Executing [1@qoutcon:6] GotoIf("DAHDI/2-1", "0?vmVoice") in new stack | |
-- Executing [1@qoutcon:7] GotoIf("DAHDI/2-1", "0?vmHorizons") in new stack | |
-- Executing [1@qoutcon:8] GotoIf("DAHDI/2-1", "0?vmComm") in new stack | |
-- Executing [1@qoutcon:9] GotoIf("DAHDI/2-1", "0?vmTest") in new stack | |
-- Executing [1@qoutcon:10] VoiceMail("DAHDI/2-1", "107,b") in new stack | |
-- <DAHDI/2-1> Playing '/var/spool/asterisk/voicemail/default/107/busy.ulaw' (language 'en') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment