Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; This file contains the contexts the agents login for the module call center.
- ; and contains the context conferences for module conferences of elastix 1.0.
- [from-internal-custom]
- exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
- exten => 1234,2,Hangup()
- exten => h,1,Hangup()
- include => agentlogin
- include => conferences
- include => calendar-event
- include => weather-wakeup
- include => emergency-notify-1
- exten=>_2XXX,1,Answer()
- same=>n,Set(PARKINGEXTEN=${EXTEN:2})
- same=>n,park()
- same=>n,Set(CALLERID(name)=Failed Parking Lot)
- same=>n,Noop( checking var ${BLINDTRANSFER:0:7})
- same=>n,Dial(${BLINDTRANSFER:0:7})
- exten => 725,1,Answer
- exten => 725,2,MusicOnHold(JAZZ)
- exten => 725,3,Hangup
- exten => 726,1,Answer
- exten => 726,2,MusicOnHold(XM-Radio)
- exten => 726,3,Hangup
- [agentlogin]
- exten => _*8888.,1,Set(AGENTNUMBER=${EXTEN:5})
- exten => _*8888.,n,NoOp(AgentNumber is ${AGENTNUMBER})
- exten => _*8888.,n,AgentLogin(${AGENTNUMBER})
- exten => _*8888.,n,Hangup()
- [mm-announce]
- exten => 9999,1,Set(CALLERID(name)="MMGETOUT")
- exten => 9999,n,Answer
- exten => 9999,n,Playback(conf-will-end-in)
- exten => 9999,n,Playback(digits/5)
- exten => 9999,n,Playback(minutes)
- exten => 9999,n,Hangup
- [conferences]
- ;Used by cbEnd script to play end of conference warning
- exten => 5555,1,Answer
- exten => 5555,n,Wait(3)
- exten => 5555,n,CBMysql()
- exten => 5555,n,Hangup
- [calendar-event]
- exten => _*7899,1,Answer
- exten => _*7899,2,Playback(${FILE_CALL})
- exten => _*7899,3,Wait(2)
- exten => _*7899,4,Hangup()
- [weather-wakeup]
- exten => *61,1,Answer
- exten => *61,2,AGI(nv-weather.php)
- exten => *61,3,Hangup
- exten => *62,1,Answer
- exten => *62,2,AGI(wakeup.php)
- exten => *62,3,Hangup
- [emergency-notify-1]
- exten => 911,1,Macro(user-callerid)
- exten => 911,2,System(echo -e "Subject:911 Alert! \n\n 911 call from Extension ${CALLERID(NUM)} - ${CALLERID(NAME)} on $(date +"%a %b %d at %r")\n" | sendmail -r PBX@travispattern.com -F "TPF 911" dgarske@travispattern.com,5099816969@txt.att.net,Scott.chaffin@travispattern.com,5092208558@vtext.com,gregk@travispattern.com,5097239910@vtext.com,kristas@travispattern.com,5092208905@vtext.com,r.fallstrom@travispattern.com,5092760298@msg.fi.google.com,5092514142@msg.fi.google.com,guentha@gmail.com,5092307062@vtext.com,5099940259@txt.att.net,5097239449@vtext.com )
- [from-restricted]
- ;can dial 911
- exten => 911,1,goto(from-internal,911,1)
- ;this will match all 3 digit extens starting with 1
- exten => _1XX,1,goto(from-internal,${EXTEN},1)
- ; hangup all other calls
- exten => _.,1,hangup()
- [custom-test_transfer]
- exten => _X.,1,NOOP(entering custom-test_transfer)
- exten => _X.,n,set(timeoutd=25) ; set timeout in seconds
- exten => _X.,n,set(extLeng=${LEN(${EXTEN})})
- exten => _X.,n,noop(the extenlength is ${extLeng})
- exten => _x.,n,dial(local/${EXTEN}@from-internal,${timeoutd})
- exten => _X.,n,Gotoif($[β$\{DIALSTATUS}β=βANSWERβ]?hangup,callback)
- exten => _X.,n,Set(CALLERID(name)=Return:${CALLERID(name)})
- exten => _X.,n(callback),dial(local/${BLINDTRANSFER:4:${extLeng}}@from-internal)
- exten => _X.,n(hangup),hangup()
- exten => _*X.,1,dial(local/${EXTEN}@from-internal,15)
- exten => _*X.,n,hangup()
- [ringback]
- exten=>s,1,Noop(Calling my code)
- same=>n,Noop( checking var ${BLINDTRANSFER:0:7})
- same=>n,SIPAddHeader(Alert-Info: <http://127.0.0.1>\;info=Ring2)
- same=>n,Dial(${BLINDTRANSFER:0:7})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement