CID match not working in Asterisk 16

You must to put the dialplan in the context assign it to your device. The most common context is from-internal