[2017-05-17 17:25:02] NOTICE[5211][C-00009415]: chan_sip.c:25649 handle_request_invite: Call from ‘282’ (192.168.5.187:5060) to extension ‘*66388XXXXXXX’ rejected because extension not found in context ‘from-internal1’.
Please supply the contents of your from_internal context, or, if using FreePBX, tell us that as it can completely disrupt the interpretation of dialplans
If you are not using FreePBX, you will also need to explicitly include extensions_custom.conf, as the only file that Asterisk knows about is the one in asterisk.conf, which is normally extensions.conf.
Those context doesn’t include the rule *66 or for that matter the modification of the way of dialing. So its kind difficult to provide help with random data ¯_(ツ)_/¯