Sofia_reg.c:3210 Can't find user

ashishkush

New Member
Nov 11, 2025
2
0
1
25
Hello everyone,

I’m new to FreeSWITCH and FusionPBX. I’ve successfully installed both on my Debian 12 server, but I’m facing an issue with extension and gateway registration.

When I try to register an extension, I receive a 403 Forbidden error along with the following log message:

sofia_reg.c:3210 Can't find user [1021@172.26.XX.XX] from 122.XXX.XXX.XX You must define a domain called '172.26.XX.XXX' in your directory and add a user with the id="1021" attribute, and you must configure your device to use the proper domain in its authentication credentials

I’ve already verified the following:
  • The domain exists in FusionPBX.
  • The password is correct.
  • The extension is created under the correct domain.
  • The required ports are open.
  • The IP I’m registering from is whitelisted.
  • The domain and user XML files were manually created in the directory to check if it allows the registration.
  • ACL entries in FusionPBX are configured correctly.
Despite all this, I’m still getting the same error every time I attempt to register the extension.

Can anyone please help me identify what might be missing or misconfigured? I’ve searched existing threads, but none of the suggested solutions have resolved the issue.
 
What does this mean?
  • The domain and user XML files were manually created in the directory to check if it allows the registration.
What directory? You shouldn't be touching the filesystem.
 
What does this mean?
  • The domain and user XML files were manually created in the directory to check if it allows the registration.
What directory? You shouldn't be touching the filesystem.
Please ignore this line. I just wanted to mention that the domain is available; however, the logs are still showing an error indicating “add correct domain and directory.” I’m not sure why it’s not getting registered.