[general]
static=yes
writeprotect=yes
clearglobalvars=no


[globals]
;XLITE=SIP/1000
CONSOLE=Console/dsp				; Console interface for demo
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest					; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=Zap/G2					; Trunk interface

TRUNKMSD=1					; MSD digits to strip (usually 1 or 0)

;Include parkedcalls (or the context you define in features conf)
;to enable call parking.
include => parkedcalls

[default]
;
; By default we include the demo.  In a production system, you 
; probably don't want to have the demo there.
;
include => agentlogin
include => numberplan
;include => external
include => ip-only
include => default

[macro-stdexten]
exten=s,1,Dial(SIP/${MACRO_EXTEN},40,rt)
exten=s,n,Dial(USTM/${MACRO_EXTEN},40,rt)
exten=s,n,Goto(${DIALSTATUS},1)
exten=ANSWER,1,Hangup
exten=CANCEL,1,Hangup
exten=NOANSWER,1,playback(extension-not-avail)
exten=NOANSWER,2,Goto(Kundservice,s,1)
exten=CONGESTION,1,playback(extension-not-avail)
exten=CONGESTION,2,Goto(Kundservice,s,1)
exten=CHANUNAVAIL,1,playback(extension-not-avail)
exten=CHANUNAVAIL,2,Goto(Kundservice,s,1)



[numberplan] ;alla anknytningar for test


;h�r b�rjar test
exten => 6002,1,Dial(SIP/6002,50,rt)
exten => 6002,n,Hangup
exten => 6005,1,Dial(SIP/6005,20)
exten => 6005,n,VoiceMail(6005@default)
exten => 6005,n,PlayBack(vm-goodbye)
exten => 6005,n,Wait(2)
exten => 6005,n,HangUp()
exten => 6006,1,Dial(SIP/6006)
exten => 6999,1,Answer ;voicemail access
exten => 6999,n,VoiceMailMain(@default)
exten => 6999,n,Hangup()

exten => 228,1,Dial(SIP/228,40)
exten => 228,n,VoiceMail(228@default)
exten => 228,n,PlayBack(vm-goodbye)
exten => 228,n,Wait(2)
exten => 228,n,HangUp()

exten => 219,1,Dial(SIP/219,40)
exten => 219,n,VoiceMail(219@default)
exten => 219,n,PlayBack(vm-goodbye)
exten => 219,n,Wait(2)
exten => 219,n,HangUp()

exten => 223,1,Dial(SIP/223,40)
exten => 223,n,VoiceMail(223@default)
exten => 223,n,PlayBack(vm-goodbye)
exten => 223,n,Wait(2)
exten => 223,n,HangUp()

exten => 225,1,Dial(SIP/225,40)
exten => 225,n,VoiceMail(225@default)
exten => 225,n,PlayBack(vm-goodbye)
exten => 225,n,Wait(2)
exten => 225,n,HangUp()

exten => 222,1,Dial(SIP/222,40)
exten => 222,n,VoiceMail(222@default)
exten => 222,n,PlayBack(vm-goodbye)
exten => 222,n,Wait(2)
exten => 222,n,HangUp()

;exten => 229,1,Dial(SIP/229,40)
;exten => 229,n,VoiceMail(229@default)
;exten => 229,n,PlayBack(vm-goodbye)
;exten => 229,n,Wait(2)
;exten => 229,n,HangUp()

exten => 252,1,Dial(SIP/252,40)
exten => 252,n,VoiceMail(252@default)
exten => 252,n,PlayBack(vm-goodbye)
exten => 252,n,Wait(2)
exten => 252,n,HangUp()

exten => 221,1,Dial(SIP/221,40)
exten => 221,n,VoiceMail(221@default)
exten => 221,n,PlayBack(vm-goodbye)
exten => 221,n,Wait(2)
exten => 221,n,HangUp()

exten => 233,1,Dial(SIP/233,40)
exten => 233,n,VoiceMail(233@default)
exten => 233,n,PlayBack(vm-goodbye)
exten => 233,n,Wait(2)
exten => 233,n,HangUp()

exten => 249,1,Dial(SIP/249,40)
exten => 249,n,VoiceMail(249@default)
exten => 249,n,PlayBack(vm-goodbye)
exten => 249,n,Wait(2)
exten => 249,n,HangUp()

exten => 251,1,Dial(SIP/251,40)
exten => 251,n,VoiceMail(251@default)
exten => 251,n,PlayBack(vm-goodbye)
exten => 251,n,Wait(2)
exten => 251,n,HangUp()

exten => 235,1,Dial(SIP/235,40)
exten => 235,n,VoiceMail(235@default)
exten => 235,n,PlayBack(vm-goodbye)
exten => 235,n,Wait(2)
exten => 235,n,HangUp()

exten => 256,1,Dial(SIP/256,40)
exten => 256,n,VoiceMail(256@default)
exten => 256,n,PlayBack(vm-goodbye)
exten => 256,n,Wait(2)
exten => 256,n,HangUp()

exten => 218,1,Dial(SIP/218,40)
exten => 218,n,VoiceMail(218@default)
exten => 218,n,PlayBack(vm-goodbye)
exten => 218,n,Wait(2)
exten => 218,n,HangUp()

exten => 258,1,Dial(SIP/258,40)
exten => 258,n,VoiceMail(258@default)
exten => 258,n,PlayBack(vm-goodbye)
exten => 258,n,Wait(2)
exten => 258,n,HangUp()

exten => 226,1,Dial(SIP/226,40)
exten => 226,n,VoiceMail(226@default)
exten => 226,n,PlayBack(vm-goodbye)
exten => 226,n,Wait(2)
exten => 226,n,HangUp()

exten => 261,1,Dial(SIP/261,40)
exten => 261,n,VoiceMail(261@default)
exten => 261,n,PlayBack(vm-goodbye)
exten => 261,n,Wait(2)
exten => 261,n,HangUp()

exten => 248,Dial(SIP/248,40)
exten => 248,n,VoiceMail(248@default)
exten => 248,n,PlayBack(vm-goodbye)
exten => 248,n,Wait(2)
exten => 248,n,HangUp()

exten => 255,1,Dial(SIP/255,40)
exten => 255,n,VoiceMail(255@default)
exten => 255,n,PlayBack(vm-goodbye)
exten => 255,n,Wait(2)
exten => 255,n,HangUp()

exten => 224,1,Dial(SIP/224,40)
exten => 224,n,VoiceMail(224@default)
exten => 224,n,PlayBack(vm-goodbye)
exten => 224,n,Wait(2)
exten => 224,n,HangUp()

exten => 241,1,Dial(SIP/241,40)
exten => 241,n,VoiceMail(241@default)
exten => 241,n,PlayBack(vm-goodbye)
exten => 241,n,Wait(2)
exten => 241,n,HangUp()

exten => 244,1,Dial(SIP/244,40)
exten => 244,n,VoiceMail(244@default)
exten => 244,n,PlayBack(vm-goodbye)
exten => 244,n,Wait(2)
exten => 244,n,HangUp()

exten => 237,1,Dial(SIP/237,40)
exten => 237,n,VoiceMail(237@default)
exten => 237,n,PlayBack(vm-goodbye)
exten => 237,n,Wait(2)
exten => 237,n,HangUp()

exten => 245,1,Dial(SIP/245,40)
exten => 245,n,VoiceMail(245@default)
exten => 245,n,PlayBack(vm-goodbye)
exten => 245,n,Wait(2)
exten => 245,n,HangUp()

exten => 253,1,Dial(SIP/253,40)
exten => 253,n,VoiceMail(253@default)
exten => 253,n,PlayBack(vm-goodbye)
exten => 253,n,Wait(2)
exten => 253,n,HangUp()

exten => 236,1,Dial(SIP/236,40)
exten => 236,n,VoiceMail(236@default)
exten => 236,n,PlayBack(vm-goodbye)
exten => 236,n,Wait(2)
exten => 236,n,HangUp()

exten => 249,1,Dial(SIP/249,40)
exten => 249,n,VoiceMail(249@default)
exten => 249,n,PlayBack(vm-goodbye)
exten => 249,n,Wait(2)
exten => 249,n,HangUp()

exten => 257,1,Dial(SIP/257,40)
exten => 257,n,VoiceMail(257@default)
exten => 257,n,PlayBack(vm-goodbye)
exten => 257,n,Wait(2)
exten => 257,n,HangUp()

exten => 247,1,Dial(SIP/247,40)
exten => 247,n,VoiceMail(247@default)
exten => 247,n,PlayBack(vm-goodbye)
exten => 247,n,Wait(2)
exten => 247,n,HangUp()

exten => 221,1,Dial(SIP/221,40)
exten => 221,n,VoiceMail(221@default)
exten => 221,n,PlayBack(vm-goodbye)
exten => 221,n,Wait(2)
exten => 221,n,HangUp()

exten => 231,1,Dial(SIP/231,40)
exten => 231,n,VoiceMail(231@default)
exten => 231,n,PlayBack(vm-goodbye)
exten => 231,n,Wait(2)
exten => 231,n,HangUp()

exten => 239,1,Dial(SIP/239,40)
exten => 239,n,VoiceMail(239@default)
exten => 239,n,PlayBack(vm-goodbye)
exten => 239,n,Wait(2)
exten => 239,n,HangUp()

exten => 227,1,Dial(SIP/227,40)
exten => 227,n,VoiceMail(227@default)
exten => 227,n,PlayBack(vm-goodbye)
exten => 227,n,Wait(2)
exten => 227,n,HangUp()

exten => 232,1,Dial(SIP/232,40)
exten => 232,n,VoiceMail(232@default)
exten => 232,n,PlayBack(vm-goodbye)
exten => 232,n,Wait(2)
exten => 232,n,HangUp()

exten => 243,1,Dial(SIP/243,40)
exten => 243,n,VoiceMail(243@default)
exten => 243,n,PlayBack(vm-goodbye)
exten => 243,n,Wait(2)
exten => 243,n,HangUp()

exten => 290,1,Answer
exten => 290,n,Dial(USTM/190@black,40)
exten => 290,n,VoiceMail(229@default)
exten => 290,n,PlayBack(vm-goodbye)
exten => 290,n,Wait(2)
exten => 290,n,HangUp()

[ip-only]
exten=_6XXX,1,macro(stdexten,${EXTEN})
exten=_2XX,1,macro(stdexten,${EXTEN})
exten=_3XX,1,macro(stdexten,${EXTEN})
exten=_0X.,1,Set(CALLERID(name)=)
exten=_0X.,2,Set(CALLERID(num)=0840303390)
exten=_0X.,3,Dial(SIP/outgoing/${EXTEN:1})
Exten=9205,1,Wait(2)
Exten=9205,2,Record(/tmp/asterisk-recording:gsm)
Exten=9205,3,Wait(2)
Exten=9205,4,Playback(/tmp/asterisk-recording)
Exten=9205,5,wait(2)
Exten=9205,6,Hangup
;h�r b�rjar extentions f�r grupper
exten => 0840303390,1,Set(MONITOR_FILENAME=/var/spool/asterisk/queuecalls/QSAMPLE-${UNIQUEID})
exten => 0840303390,n,Answer
exten => 0840303390,n,Ringing
exten => 0840303390,n,Wait(2)
exten => 0840303390,n,Queue(Kundservice)
exten => 0840303390,n,Hangup

exten => 0840303395,1,Set(MONITOR_FILENAME=/var/spool/asterisk/queuecalls/QSAMPLE-${UNIQUEID})
exten => 0840303395,n,Answer
exten => 0840303395,n,Ringing
exten => 0840303395,n,Wait(2)
exten => 0840303395,n,Queue(Drift)
exten => 0840303395,n,Hangup
;h�r b�rjar extentions f�r anv�ndare
exten => 0840303391,1,Answer
exten => 0840303391,n,Dial(USTM/190@black,40)
exten => 0840303391,n,VoiceMail(229@default)
exten => 0840303391,n,PlayBack(vm-goodbye)
exten => 0840303391,n,Wait(2)
exten => 0840303391,n,HangUp()

exten => 0840303392,1,Answer
exten => 0840303392,n,Dial(SIP/243,40)
exten => 0840303392,n,VoiceMail(243@default)
exten => 0840303392,n,PlayBack(vm-goodbye)
exten => 0840303392,n,Wait(2)
exten => 0840303392,n,HangUp()

exten => 0840303393,1,Answer
exten => 0840303393,n,Dial(SIP/228,40)
exten => 0840303393,n,VoiceMail(228@default)
exten => 0840303393,n,PlayBack(vm-goodbye)
exten => 0840303393,n,Wait(2)
exten => 0840303393,n,HangUp()

exten => 0840303394,1,Answer
exten => 0840303394,n,Dial(USTM/191@yellow,40)
exten => 0840303394,n,VoiceMail(229@default)
exten => 0840303394,n,PlayBack(vm-goodbye)
exten => 0840303394,n,Wait(2)
exten => 0840303394,n,HangUp()








