[phones]
include => local
include => outgoing
[local]
exten => _0[1-9]XXX,1,Noop
same => n,Set(CALLEID(num)=01${CALLRID(num)})
same => n,Dial(SIP/SecretLine/${EXTEN},15,Tt)
same => n,HangUp()
exten => _XXX,1,Macro(recording,${CALLERID(num)},${EXTEN})
exten => _XXX,n,Dial(SIP/${EXTEN},60,tT)
exten => _XXX,n,Hangup()
exten => _XXX.,1,Goto(outgoing,${EXTEN},1)
[outgoing]
exten => _XXX.,1,Macro(recording,${CALLERID(num)},${EXTEN})
exten => _XXX.,n,Gosub(trunk_check,s,1(${EXTEN}))
[local]
exten => _0[1-9]XXX,1,Noop
same => n,Set(CALLEID(num)=08${CALLRID(num)})
same => n,Dial(SIP/SecretLine/${EXTEN},15,Tt)
same => n,HangUp()
exten => _0[1-9]XXXX,1,Noop
same => n,Set(CALLEID(num)=08${CALLRID(num)})
same => n,Dial(SIP/SecretLine/${EXTEN},15,Tt) same => n,HangUp()