Its commented out at the moment because its not working, sending all calls into the 1000 and getting the message and hangup.
nnn is the last digits of my number
exten => 6499744nnn,1,NoOp(${CALLERID}) ; log callerID string
exten => 6499744nnn,2,GotoIf($["foo${CALLERIDNUM}" = "foo"]?1000)
exten => 6499744nnn,3,Dial(SIP/richard,25,tr)
exten => 6499744nnn,4,Hangup
exten => 6499744nnn,1000,Answer
exten => 6499744nnn,1001,Wait(1)
exten => 6499744nnn,1002,Playback(privacy-screening-unidentified-calls)
exten => 6499744nnn,1003,Playback(goodbye)
exten => 6499744nnn,1004,Hangup
on incoming calls I get in the console
-- Executing [6499744nnn@mainmenu:1] NoOp("SIP/6499743yyy-081c4320", "") in new stack
-- Executing [6499744nnn@mainmenu:2] GotoIf("SIP/6499743yyy-081c4320", "1?1000") in new stack
-- Goto (mainmenu,6499744nnn,1000)
-- Executing [6499744nnn@mainmenu:1000] Answer("SIP/6499743yyy-081c4320", "") in new stack
-- Executing [6499744nnn@mainmenu:1001] Wait("SIP/6499743yyy-081c4320", "1") in new stack
-- Executing [6499744nnn@mainmenu:1002] Playback("SIP/6499743yyy-081c4320", "privacy-screening-unidentified-calls") in new stack
-- Playing 'privacy-screening-unidentified-calls' (language 'en')
== Spawn extension (mainmenu, 6499744nnn, 1002) exited non-zero on 'SIP/6499743yyy-081c4320'
The bold bit is my flatmates italk number which makes no sense since I am calling in on the old 025 mobile. Same thing goes on in there with or without 0197
if I change to having
exten => 6499744123,1,Dial(SIP/richard,30,Tr)then calls come thru to my ata just fine, with caller ID if allowed, and nothing if withheld.
