I have Kamailio 5.1 installed and running with 2 extensions, 201 and 202 registered. Both extensions can call each other perfectly. I have an inbound call from a carrier that arrives perfectly but ends up in this area of the cfg

case -3:
                                send_reply("404", "Not Found");
                                exit;

and sends a 404 not found. 

How do I :
  1. Associate the 10 digit DID to the 201 or 202?
  2. In the cfg, check if user is registered if 
    • yes, relay call to user
    • no relay call to VM server.
KamDev