Extension registering using domain name instead of FQDN.

Status
Not open for further replies.

nickbh

Member
Sep 26, 2019
39
3
8
57
If this is answered anywhere, please point me to the right place. I have already worked with endpoints/extensions registering using fqdn (host.domain.name), I am trying to register with domain.name only. So far, I am able to register endpoint and able to registration. However, when I try to make a test call, it gets rejected at FS and on the phone it say FORBIDDEN. What I dont understand is why the number I call becomes the domain of the extension i.e. I dial *9664 to test and in the FS log it shows (2022-07-04 23:36:00.414277 98.20% [WARNING] sofia_reg.c:3223 Can't find user [200@*9664] from 7x.xx.xx.x)

1. I have SRV records setup:
1656979136613.png

2.
1656979281812.png

3. General Settings of the phone and it show that it is registered.
1656979355801.png

4. Log files associated with this issue:

+OK log level [7]
2022-07-04 23:36:00.179433 98.20% [NOTICE] switch_channel.c:1123 New Channel sofia/internal/200@a-nxxx.xxxx [0f77a7e0-fbf2-11ec-a4da-9fab8dd869b8]
2022-07-04 23:36:00.179433 98.20% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/200@a-nxxx.xxxx) Running State Change CS_NEW (Cur 1 Tot 10)
2022-07-04 23:36:00.179433 98.20% [INFO] sofia.c:10462 sofia/internal/200@a-nxxx.xxxx receiving invite from 7x.xx.xx.x:58850 version: 1.10.7 -release 64bit call-id: 357221923-5060-7@BA.A.CA.BAE
2022-07-04 23:36:00.179433 98.20% [DEBUG] sofia.c:10556 verifying acl "domains" for ip/port 7x.xx.xx.x:0.
2022-07-04 23:36:00.179433 98.20% [DEBUG] sofia.c:2419 detaching session 0f77a7e0-fbf2-11ec-a4da-9fab8dd869b8
2022-07-04 23:36:00.179433 98.20% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'internal' for [200@*9664] from ip 7x.xx.xx.x
2022-07-04 23:36:00.179433 98.20% [DEBUG] switch_core_state_machine.c:600 (sofia/internal/200@a-nxxx.xxxx) State NEW
2022-07-04 23:36:00.399371 98.20% [DEBUG] sofia.c:2532 Re-attaching to session 0f77a7e0-fbf2-11ec-a4da-9fab8dd869b8
2022-07-04 23:36:00.399371 98.20% [INFO] sofia.c:10462 sofia/internal/200@a-nxxx.xxxx receiving invite from 7x.xx.xx.x:58850 version: 1.10.7 -release 64bit call-id: 357221923-5060-7@BA.A.CA.BAE
2022-07-04 23:36:00.399371 98.20% [DEBUG] sofia.c:10556 verifying acl "domains" for ip/port 7x.xx.xx.x:0.
2022-07-04 23:36:00.414277 98.20% [WARNING] sofia_reg.c:3223 Can't find user [200@*9664] from 7x.xx.xx.x
You must define a domain called '*9664' in your directory and add a user with the id="200" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2022-07-04 23:36:00.414277 98.20% [NOTICE] sofia.c:2417 Hangup sofia/internal/200@a-nxxx.xxxx [CS_NEW] [CALL_REJECTED]
2022-07-04 23:36:00.414277 98.20% [WARNING] sofia_reg.c:1806 SIP auth failure (INVITE) on sofia profile 'internal' for [200@*9664] from ip 7x.xx.xx.x
2022-07-04 23:36:00.414277 98.20% [DEBUG] sofia.c:1527 Channel is already hungup.
2022-07-04 23:36:00.414277 98.20% [DEBUG] sofia.c:1527 Channel is already hungup.
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/200@a-nxxx.xxxx) Running State Change CS_HANGUP (Cur 1 Tot 10)
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:844 (sofia/internal/200@a-nxxx.xxxx) Callstate Change DOWN -> HANGUP
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:846 (sofia/internal/200@a-nxxx.xxxx) State HANGUP
2022-07-04 23:36:00.414277 98.20% [DEBUG] mod_sofia.c:468 Channel sofia/internal/200@a-nxxx.xxxx hanging up, cause: CALL_REJECTED
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:59 sofia/internal/200@a-nxxx.xxxx Standard HANGUP, cause: CALL_REJECTED
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:846 (sofia/internal/200@a-nxxx.xxxx) State HANGUP going to sleep
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:616 (sofia/internal/200@a-nxxx.xxxx) State Change CS_HANGUP -> CS_REPORTING
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/200@a-nxxx.xxxx) Running State Change CS_REPORTING (Cur 1 Tot 10)
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:932 (sofia/internal/200@a-nxxx.xxxx) State REPORTING
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:168 sofia/internal/200@a-nxxx.xxxx Standard REPORTING, cause: CALL_REJECTED
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:932 (sofia/internal/200@a-nxxx.xxxx) State REPORTING going to sleep
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:607 (sofia/internal/200@a-nxxx.xxxx) State Change CS_REPORTING -> CS_DESTROY
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_session.c:1753 Session 10 (sofia/internal/200@a-nxxx.xxxx) Locked, Waiting on external entities
2022-07-04 23:36:00.414277 98.20% [NOTICE] switch_core_session.c:1771 Session 10 (sofia/internal/200@a-nxxx.xxxx) Ended
2022-07-04 23:36:00.414277 98.20% [NOTICE] switch_core_session.c:1775 Close Channel sofia/internal/200@a-nxxx.xxxx [CS_DESTROY]
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:735 (sofia/internal/200@a-nxxx.xxxx) Running State Change CS_DESTROY (Cur 0 Tot 10)
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:745 (sofia/internal/200@a-nxxx.xxxx) State DESTROY
2022-07-04 23:36:00.414277 98.20% [DEBUG] mod_sofia.c:379 sofia/internal/200@a-nxxx.xxxx SOFIA DESTROY
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:175 sofia/internal/200@a-nxxx.xxxx Standard DESTROY
2022-07-04 23:36:00.414277 98.20% [DEBUG] switch_core_state_machine.c:745 (sofia/internal/200@a-nxxx.xxxx) State DESTROY going to sleep
2022-07-04 23:36:28.154274 96.17% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'internal' for [200@a-nxxx.xxxx] from ip 7x.xx.xx.x
freeswitch@fpbx.a-nxxx.xxxx>

Any help would be appreciated, thanks
 
Status
Not open for further replies.