Ok done, i've left only the main domani (not the subdomains) and the Provider IP, now i can call to extension and out correctly, but i can't get the inbound calls.
Here the logs.
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.931039 [NOTICE] switch_channel.c:1118 New Channel sofia/external/
xxxxxxxxxx@sip.domainIP [c93cedf7-b0a4-4fa6-af73-9945805795ec]
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.931039 [DEBUG] switch_core_state_machine.c:585 (sofia/external/
xxxxxxxxxx@sip.domainIP) Running State Change CS_NEW (Cur 1 Tot 27649)
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.931039 [DEBUG] sofia.c:10255 sofia/external/
xxxxxxxxxx@sip.domainIP receiving invite from sip.domainIP:5080 version: 1.10.2 -release-14-f7bdd3845a 64bit
2020-05-18 12:39:58.931039 [DEBUG] sofia.c:10349 verifying acl "domains" for ip/port sip.domainIP:0.
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.931039 [DEBUG] switch_core_state_machine.c:604 (sofia/external/
xxxxxxxxxx@sip.domainIP) State NEW
2020-05-18 12:39:58.931039 [DEBUG] sofia.c:2434 detaching session c93cedf7-b0a4-4fa6-af73-9945805795ec
2020-05-18 12:39:58.931039 [DEBUG] sofia.c:2544 Re-attaching to session c93cedf7-b0a4-4fa6-af73-9945805795ec
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.951013 [DEBUG] sofia.c:10255 sofia/external/
xxxxxxxxxx@sip.domainIP receiving invite from sip.domainIP:5080 version: 1.10.2 -release-14-f7bdd3845a 64bit
2020-05-18 12:39:58.951013 [DEBUG] sofia.c:10349 verifying acl "domains" for ip/port sip.domainIP:0.
2020-05-18 12:39:58.951013 [WARNING] sofia_reg.c:2929 Can't find user [
not-used@sip.domainIP] from sip.domainIP
You must define a domain called 'sip.domainIP' in your directory and add a user with the id="not-used" attribute
and you must configure your device to use the proper domain in its authentication credentials.
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.951013 [NOTICE] sofia.c:2432 Hangup sofia/external/
xxxxxxxxxx@sip.domainIP [CS_NEW] [CALL_REJECTED]
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] sofia.c:1548 Channel is already hungup.
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:585 (sofia/external/
xxxxxxxxxx@sip.domainIP) Running State Change CS_HANGUP (Cur 1 Tot 27649)
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:848 (sofia/external/
xxxxxxxxxx@sip.domainIP) Callstate Change DOWN -> HANGUP
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:850 (sofia/external/
xxxxxxxxxx@sip.domainIP) State HANGUP
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] mod_sofia.c:453 Channel sofia/external/
xxxxxxxxxx@sip.domainIP hanging up, cause: CALL_REJECTED
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:60 sofia/external/
xxxxxxxxxx@sip.domainIP Standard HANGUP, cause: CALL_REJECTED
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:850 (sofia/external/
xxxxxxxxxx@sip.domainIP) State HANGUP going to sleep
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:620 (sofia/external/
xxxxxxxxxx@sip.domainIP) State Change CS_HANGUP -> CS_REPORTING
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:585 (sofia/external/
xxxxxxxxxx@sip.domainIP) Running State Change CS_REPORTING (Cur 1 Tot 27649)
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:936 (sofia/external/
xxxxxxxxxx@sip.domainIP) State REPORTING
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:174 sofia/external/
xxxxxxxxxx@sip.domainIP Standard REPORTING, cause: CALL_REJECTED
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:936 (sofia/external/
xxxxxxxxxx@sip.domainIP) State REPORTING going to sleep
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:611 (sofia/external/
xxxxxxxxxx@sip.domainIP) State Change CS_REPORTING -> CS_DESTROY
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_session.c:1726 Session 27649 (sofia/external/
xxxxxxxxxx@sip.domainIP) Locked, Waiting on external entities
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [NOTICE] switch_core_session.c:1744 Session 27649 (sofia/external/
xxxxxxxxxx@sip.domainIP) Ended
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [NOTICE] switch_core_session.c:1748 Close Channel sofia/external/
xxxxxxxxxx@sip.domainIP [CS_DESTROY]
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:739 (sofia/external/
xxxxxxxxxx@sip.domainIP) Running State Change CS_DESTROY (Cur 0 Tot 27649)
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:749 (sofia/external/
xxxxxxxxxx@sip.domainIP) State DESTROY
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] mod_sofia.c:364 sofia/external/
xxxxxxxxxx@sip.domainIP SOFIA DESTROY
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:181 sofia/external/
xxxxxxxxxx@sip.domainIP Standard DESTROY
c93cedf7-b0a4-4fa6-af73-9945805795ec 2020-05-18 12:39:58.971062 [DEBUG] switch_core_state_machine.c:749 (sofia/external/
xxxxxxxxxx@sip.domainIP) State DESTROY going to sleep