[general]

DYNAMIC_FEATURES => atxfer
DYNAMIC_FEATURES => blindxfer
DYNAMIC_FEATURES => automon

[default]
include => parkedcalls

exten => s,1,NoOp()
exten => s,n,Answer()
exten => s,n,Hangup()

exten => set_caller_id,1,NoOp()
exten => set_caller_id,n,Set(CALLERID(name)=Asterisk)
exten => set_caller_id,n,Set(CALLERID(num)=555-5555)
exten => set_caller_id,n,Return()

exten => *99,1,NoOp()
	same => n,Pickup(1000)
	same => n,Hangup()


exten => 900,1,NoOp()
exten => 900,n,Dial(iax2/test_1)
exten => 900,n,Hangup

exten => 901,1,NoOp()
exten => 901,n,Dial(SIP/foo)
exten => 901,n,Hangup()

exten => peer_pre_dial,1,NoOp()
	same => n,Set(CHANNEL(namedpickupgroup)=pickmeup@default)
	same => n,Return()

exten => 1000,1,NoOp()
exten => 1000,n,Verbose(1, Dialing digium01)
exten => 1000,n,GoSub(default,set_caller_id,1)
exten => 1000,n,Dial(SIP/digium01,15,hHkKtTb(peer_pre_dial^1))
exten => 1000,n,Hangup()

exten => 1001,1,NoOp()
exten => 1001,n,Verbose(1, Dialing digium01 w/ no settings)
exten => 1001,n,GoSub(default,set_caller_id,1)
exten => 1001,n,Dial(SIP/digium01,15)
exten => 1001,n,Hangup()

exten => 2000,1,NoOp()
exten => 2000,n,Verbose(1, Dialing digium02)
exten => 2000,n,GoSub(default,set_caller_id,1)
exten => 2000,n,Dial(SIP/digium02,15,hHkKtTgb(peer_pre_dial^1))
exten => 2000,n,Hangup()

exten => 2001,1,NoOp()
exten => 2001,n,Verbose(1, Dialing digium02 w/ no settings)
exten => 2001,n,GoSub(default,set_caller_id,1)
exten => 2001,n,Dial(SIP/digium02,15)
exten => 2001,n,Hangup()

exten => 3000,1,NoOp()
exten => 3000,n,Verbose(1, Dialing phone_a)
exten => 3000,n,GoSub(default,set_caller_id,1)
exten => 3000,n,Dial(SIP/phone_a,15,hHkKtT)
exten => 3000,n,Hangup()

exten => 3001,1,NoOp()
exten => 3001,n,Verbose(1, Dialing phone_a w/ no settings)
exten => 3001,n,GoSub(default,set_caller_id,1)
exten => 3001,n,Dial(SIP/phone_a,15)
exten => 3001,n,Hangup()

exten => 4000,1,NoOp()
exten => 4000,n,Verbose(1, Dialing phone_b)
exten => 4000,n,GoSub(default,set_caller_id,1)
exten => 4000,n,Dial(SIP/phone_b,15,hHkKtT)
exten => 4000,n,Hangup()

exten => 4001,1,NoOp()
exten => 4001,n,Verbose(1, Dialing phone_b w/ no settings)
exten => 4001,n,GoSub(default,set_caller_id,1)
exten => 4001,n,Dial(SIP/phone_b,15)
exten => 4001,n,Hangup()

exten => 5000,1,NoOp()
exten => 5000,n,Queue(sales)

exten => 5001,1,NoOp()
exten => 5001,n,Queue(support)

exten => 500004,1,NoOp()
exten => 500004,n,Dial(SIP/500004@panda,,tT)
exten => 500004,n,Hangup()

exten => h,1,NoOp()
exten => h,n,Wait(10)
exten => h,n,Set(CDR(matt_custom)=foobar)


[public]
exten => s,1,NoOp()
exten => s,n,Answer()
;exten => n,Background(demo-instruct)
exten => s,n,Wait(10)
exten => s,n,Hangup()


[agents]



exten => digium01,hint,SIP/digium01
exten => digium01,1,NoOp()
        same => n,Dial(SIP/digium01,15,hHkKtT)
        same => n,Hangup()

exten => digium02,hint,SIP/digium02
exten => digium02,1,NoOp()
        same => n,Dial(SIP/digium02,15,hHkKtT)
        same => n,Hangup()

