Play announcement only for External Calls

I have Elastix 2.5.0-8
In Follow Me settings of Extension of a user I set an announcement, but all internal and external users may listen it. I want this sound file plays ONLY for users from external calls (city/mobile/international numbers)

This forum doesn’t support GUIs. Unfortunately the links to peer support on the Elastix Forum are dead, so you may need to buy support from them.

In bare Asterisk you use contexts and/or tests on ${CALLERID(num)}.

I’ve decided the problem

just added this code below the section to extensions_additional.conf:


exten => 566,1,Macro(blkvm-clr,)
exten => 566,2,Playback(./custom/custom_announcement)
exten => 566,n,Set(__NODEST=)
exten => 566,n,Goto(from-did-direct,566,1)

When external call comes, it goes to IVR or call center operator, then goes to Extension 566 (plays custom sound, then rings then extension phone). Internal calls are not affected.