extension.conf
[general]
static=yes
writeprotect=yes
[default]
include => sip
include => isdn_out
[sip]
exten => 10,hint,SIP/10
exten => 11,hint,SIP/11
exten => 12,hint,SIP/12
exten => 15,hint,SIP/15
exten => 20,hint,SIP/20
exten => 30,hint,SIP/30
exten => 35,hint,SIP/35
exten => 40,hint,SIP/40
exten => 50,hint,SIP/50
exten => 51,hint,SIP/51
exten => 52,hint,SIP/52
exten => 98,hint,SIP/98
exten => 100,1,VoiceMailMain(s${CALLERIDNUM})
exten => 100,n,Hangup
exten => 101,1,VoiceMailMain(s0)
exten => 101,n,Hangup
;exten => 101,1,VoiceMailMain()
;exten => 101,n,Hangup
exten => 200,1,AgentCallbackLogin(${CALLERIDNUM}|'#')
exten => 300,1,MeetMe(1)
exten => 300,n,Hangup
exten => 400,1,Answer
exten => 400,n,Wait(2)
exten => 400,n,Record(/tmp/asterisk-recording:gsm)
exten => 400,n,Wait(2)
exten => 400,n,Playback(/tmp/asterisk-recording)
exten => 400,n,Wait(2)
exten => 400,n,Hangup
exten => 401,1,Answer
exten => 401,n,Wait(2)
exten => 401,n,Record(/var/lib/asterisk/sounds/custom/willkommen:gsm)
exten => 401,n,Wait(2)
exten => 401,n,Playback(/var/lib/asterisk/sounds/custom/willkommen)
exten => 401,n,Wait(2)
exten => 401,n,Hangup
exten => 402,1,Answer
exten => 402,n,Wait(2)
exten => 402,n,Record(/var/lib/asterisk/sounds/custom/feierabend:gsm)
exten => 402,n,Wait(2)
exten => 402,n,Playback(/var/lib/asterisk/sounds/custom/feierabend)
exten => 402,n,Wait(2)
exten => 402,n,Hangup
exten => _**.,1,DPickup(${EXTEN:2}@sip) ; Grandstream GXP Feature
exten => _*3.,1,DPickup(${EXTEN:2}@sip)
;exten => _**.,1,Pickup(${EXTEN:2}@sip) ; Grandstream GXP Feature
;exten => _*3.,1,Pickup(${EXTEN:2}@sip)
exten => 10,1,Dial(SIP/10,45,rtT)
exten => 10,n,Voicemail(u10)
exten => 10,n,Hangup
exten => 11,1,Dial(SIP/11,45,rtT)
exten => 11,n,Voicemail(u11)
exten => 11,n,Hangup
exten => 12,1,Dial(SIP/12,45,rtT)
exten => 12,n,Voicemail(u12)
exten => 12,n,Hangup
exten => 13,1,Dial(SIP/13,90,rtT)
exten => 13,n,Hangup
exten => 14,1,Dial(SIP/14,90,rtT)
exten => 14,n,Hangup
exten => 15,1,Dial(SIP/15,45,rtT)
exten => 15,n,Voicemail(u15)
exten => 15,n,Hangup
exten => 20,1,Dial(SIP/20,45,rtT)
exten => 20,n,Voicemail(u20)
exten => 20,n,Hangup
exten => 21,1,Dial(SIP/21,90,rtT)
exten => 21,n,Hangup
exten => 30,1,Dial(SIP/30,45,rtT)
exten => 30,n,Voicemail(u30)
exten => 30,n,Hangup
exten => 35,1,Dial(SIP/35,120,rtT)
exten => 35,n,Hangup
exten => 40,1,Dial(SIP/40,15,rtT)
exten => 40,n,Voicemail(u40)
exten => 40,n,Hangup
exten => 50,1,Dial(SIP/50,120,rtT)
exten => 50,n,Hangup
exten => 51,1,Dial(SIP/51,120,rtT)
exten => 51,n,Hangup
exten => 52,1,Dial(SIP/52,120,rtT)
exten => 52,n,Hangup
exten => 98,1,Dial(SIP/98,120,rtT)
exten => 98,n,Hangup
exten => 99,1,Dial(SIP/99,120,rtT)
exten => 99,n,Hangup
include => isdn_out
[isdn_out]
exten => _0.,1,SetCallerID(239595${CALLERIDNUM})
exten => _0.,2,SetCallerPres(allowed_passed_screen)
exten => _0.,3,Dial(ZAP/g1/${EXTEN:1},120,rtT)
exten => _0.,n,Dial(ZAP/g2/${EXTEN:1},120,rtT)
exten => _0.,n,Dial(ZAP/g3/${EXTEN:1},120,rtT)
exten => _0.,n,Hangup
....