Monitoring calls

Hi everyone,
i have an issue. I would like to monitor calls from outbound of my Asterisk. For example if someone call me from a mobile phone, or from another company, I would like to monitor this calls. Or monitoring calls, that callerID start with for example with 7XX or 23XX.
Can someone give me an advice how to do that? Now I am able to monitor all calls only on specific extentions thanks command Monitor().

exten => 1122,1,Answer()
exten => 1122,n,Ringing
exten => 1122,n,Wait(3)
exten => 1122,n,Monitor(wav,${STRFTIME(EPOCH,%Y%m%d-%H:%M:%S)} Call_on_1122_z_${CALLERID(all)},m)
exten => 1122,n,Dial(SIP/1122)
exten => 1122,n,HangUp

Thanks.

Google asterisk ex-girlfriend logic. Also note that you can use s or n-1 for the priority.

PS This is the wrong forum for support questions, like this.

Beside of the asterisk ex-girlfriend logic would be also more practical if do a Gobsub()