[general]
clearglobalvars=no

[globals]
CongestionTimeout=10 ; Timeout waiting for Congestion to signal
AbsoluteTimeout=14460 ; Maximum channel lifetime - 4 hours + 1 minute

[pstn]
exten => _[+*0-9]!,1,Set(TIMEOUT(absolute)=${AbsoluteTimeout})
same => n,Stasis(bridge-dial,inbound,SIP/+18588675309@192.168.1.100)
same => n,Congestion(${CongestionTimeout})
same => n,HangUp

;Needed for OPTIONS
exten => s,1,HangUp

[subscriber]
exten => _[+*0-9]!,1,Set(TIMEOUT(absolute)=${AbsoluteTimeout})
;Disable subscriber context for now since we are open to the world
;same => n,Set(TIMEOUT(absolute)=${AbsoluteTimeout})
;same => n,Stasis(call-control)
same => n,Congestion(${CongestionTimeout});
same => n,HangUp
