In order to avoid issues as described in bug #13296 I propose Asterisk matches before a peer (this is: matching the IP:port) than the user (mathing the “From”).It’s totally expected that a local user can’t be registered in the same IP as a SIP provider (a peer) so what I propose can’t have any negative impact (AFAIK).
