Error Creating SIP UA for profile: default

Hi team,
I have setup the ASTPP community edition. I can able to access the Admin Portal. Under SIP Profile section, I have modified the SIP IP to public ip instead of $${local_ip_v4}. Then when i reload the mod_sofia in FREESWITCH Console. I’m seeing this error.

2022-02-18 06:01:09.456651 95.37% [NOTICE] sofia.c:6356 Started Profile default [sofia_reg_default]
2022-02-18 06:01:09.456651 95.37% [DEBUG] mod_sofia.c:6698 Waiting for profiles to start
2022-02-18 06:01:09.456651 95.37% [DEBUG] sofia.c:3156 Creating agent for default
2022-02-18 06:01:09.456651 95.37% [ERR] sofia.c:3296 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp) ATTEMPT 1 (RETRY IN 5 SEC)
2022-02-18 06:01:10.956662 94.73% [NOTICE] switch_loadable_module.c:681 Adding Management interface ‘mod_sofia’ OID[.1.3.6.1.4.1.27880.1001]
2022-02-18 06:01:14.456676 94.63% [ERR] sofia.c:3296 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)
freeswitch@ip-172-31-15-207>
freeswitch@ip-172-31-15-207>
freeswitch@ip-172-31-15-207>
2022-02-18 06:01:19.456669 94.50% [ERR] sofia.c:3296 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2022-02-18 06:01:19.456669 94.50% [ERR] sofia.c:3307 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp)
The likely causes for this are:

  1. Another application is already listening on the specified address.
  2. The IP the profile is attempting to bind to is not local to this system.

Also in vars.xml, I have modified the domain=Public Ip(XX.XX.XX.XX) instead of $${local_ip_v4}. Again when i reload I’m seeing same error.

2022-02-18 05:49:05.674198 97.50% [NOTICE] sofia.c:6356 Started Profile default [sofia_reg_default]
2022-02-18 05:49:05.674198 97.50% [DEBUG] mod_sofia.c:6698 Waiting for profiles to start
2022-02-18 05:49:05.674198 97.50% [DEBUG] sofia.c:3156 Creating agent for default
2022-02-18 05:49:05.674198 97.50% [WARNING] sofia.c:2290 MSG Thread 0 Started
2022-02-18 05:49:05.694198 97.50% [ERR] sofia.c:3296 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp) ATTEMPT 1 (RETRY IN 5 SEC)
2022-02-18 05:49:10.694216 96.60% [ERR] sofia.c:3296 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)
2022-02-18 05:49:15.694199 96.70% [ERR] sofia.c:3296 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2022-02-18 05:49:15.694199 96.70% [ERR] sofia.c:3307 Error Creating SIP UA for profile: default (sip:mod_sofia@172.31.15.207:5060;maddr=XX.XX.XX.XX;transport=udp,tcp)
The likely causes for this are:

  1. Another application is already listening on the specified address.
  2. The IP the profile is attempting to bind to is not local to this system.

Please help me to resolve the issue.

Hello @Nanthagopal
As per 2nd cause: 'The IP the profile is attempting to bind to is not local to this system."
You need to have interface on the server configuring with IP which you are configuring as ‘sip-ip’ so you need to let private ip there as ‘sip-ip’ if you like and as per your flow if needed then you may replace ‘ext-sip-ip’ as public ip

Thank you very much for your suggestion. The issue has been resolved. Now SIP Profile reloaded successfully!.

@Nanthagopal Sir, will you please share the process of resolving it? I am getting the same issue and struggling with it. TIA.

Regards.

The answer is here. It is showing in this case the IP profile is trying to bind to a Public IP address which the server is not assigned to. Rather the server is on a LAN with a private IP IP address.

You have to set the SIP profile to use the LAN Private IP address, and set ext-sip-ip to the Public IP address.