First of all, it looks like you really don't understand how the Asterisk dialplan works. The code block that you installed there is simply incorrect, Asterisk will not complain - since dialplan should not do this.
Consider one by one:
[macro-queue] exten => s, 1, Queue(${ARG1}) [default] exten => s, 1, Answer exten => s/9999, 2 ,Hangup exten => s, 2, BackGround(welcome) exten => s, 3, Macro(queue,operator)
The reason this is wrong is because you cannot match the CALLERID on the same extension line - it should be complete. Technically, you will need:
[macro-queue] exten => s, 1, Queue(${ARG1}) [default] exten => s/9999, 1, Answer exten => s/9999, 2 ,Hangup exten => s/9999, 2, BackGround(welcome) exten => s/9999, 3, Hangup exten => s, 1, Answer exten => s, 2 ,Hangup exten => s, 2, BackGround(welcome) exten => s, 3, Macro(queue,operator)
Now this is not the right way to do this - simply because you will replicate the lines again and again. The correct way to do this is very similar to the previous answer, however, this is what I would do:
exten => s, 1, Answer exten => s, n, Gotoif($["${CALLERID(num)}" = "9999"]?reject:continue) exten => s, n(continue), Background(Welcome) exten => s, n, Macro(queue, operator) exten => s, n(reject), Hangup()
Now you can expand the various CALLERID numbers you want to block. Again, assuming that this is the result that you wanted to achieve.