If the incoming call is one of the numbers send them to custom-screen. Ideally I would like to send the call to a group but it is currently not working. I am using Trixbox.
[custom-incoming]
exten => s,1,Answer
exten => s,n,AGI([login to view URL])
exten => s,n,GotoIf($["${CALLERID(num)}" = "XXXXXXXXXX"]?custom-screen,s,1)
exten => s,n,Goto(ivr-2,s,1)
exten => s,n,Hangup
[cusom-screen]
exten => s,1,Wait(1)
exten => s,n,Dial(SIP/7045,30,m)
;exten => s,n,Goto(ext-group,9900,1) ring grp to ring to private no agents
exten => s,n,Hangup
Thanks
Sam