Extension does not want to register

Status
Not open for further replies.

dcitelecom

Member
Oct 20, 2021
129
3
18
60
I have one extension that simply does not want to register. The username and passcode are correct and I can see the auth challenge in the log but it does not tell me why the registration is failing. I already turned off or restarted fail2ban, iptables and freeswitch just to see if anything changes but the problem continues. Is there any other log I can look at that would provide more information?

2023-03-20 14:15:26.116015 98.70% [DEBUG] sofia_reg.c:1857 Send challenge for [514@mypbx.com]
2023-03-20 14:15:26.116015 98.70% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'internal' for [514@mypbx.com] from ip xx.xxx.xxx.xxx
2023-03-20 14:16:04.596024 98.97% [DEBUG] sofia_reg.c:1857 Send challenge for [514@mypbx.com]
2023-03-20 14:16:04.596024 98.97% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'internal' for [514@mypbx.com] from ip xx.xxx.xxx.xxx
2023-03-20 14:16:43.076019 98.93% [DEBUG] sofia_reg.c:1857 Send challenge for [514@mypbx.com]
2023-03-20 14:16:43.076019 98.93% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'internal' for [514@mypbx.com] from ip xx.xxx.xxx.xxx
...
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,388
364
83
Get a packet capture (sngrep if your switch is not too busy). Check the Contact header, is the auth challenge going to the correct place? Is it being received by the phone?
 

dcitelecom

Member
Oct 20, 2021
129
3
18
60
Sngrep says 401 unauthorized for the Register attempt from that adapater, but when I provision another adapter with the exact same settings, it registers just fine from our office. It seems to be something at that specific location. Since the IP is not blocked, it's maybe the on site router. It's really frustrating.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,388
364
83
You need to note IP address and port that the REGISTER request came from. Then compare that with the IP address and port specified in the Contact header. Then check what IP address and port the 401 unauthorized was sent to. This is how I would start to diagnose this issue. One message in sngrep is not very helpful without the context of the rest of the message exchange. I hope that makes sense.
 

DavidDec

Member
Jan 30, 2020
32
3
8
37
United Kingdom
Is this one extension a home worker? We've got satellite sites for clients all over, and from memory the only time I saw a single extension refusing to register was from a home router where we had to disable sip ALG from the command line using putty, as even after a restart it wouldn't disable from the gui.
 
  • Like
Reactions: dcitelecom

dcitelecom

Member
Oct 20, 2021
129
3
18
60
Is this one extension a home worker? We've got satellite sites for clients all over, and from memory the only time I saw a single extension refusing to register was from a home router where we had to disable sip ALG from the command line using putty, as even after a restart it wouldn't disable from the gui.
Yes. It's an old Grandstream HT286 ATA connected to a Thomson Speedtouch ST546 v6 DSL modem/router and I was able to duplicate the issue in our office. Something is blocking the registration on the fusionpbx side. However, using the same DSL modem and ATA with same SIP settings, it registers fine with our Asterisk server. Why would the SIP account register in Asterisk but not in freeswitch (fusionpbx) given that everything else is the same?
 

DavidDec

Member
Jan 30, 2020
32
3
8
37
United Kingdom
Reading the manual for that device I think I'd be finding a refurbished Yealink setting it up for the user and telling them to get used to it, we only use one Grandstream now and its a WIFI "dect" phone, no base stations no repeaters nice and simple.
 

dcitelecom

Member
Oct 20, 2021
129
3
18
60
Yes. We'll change either the DSL modem or the ATA but I don't get why it works in Asterisk and doesn't work in Freeswitch.
I can see in the log that the modem is refusing the UDP connection from FreeSWITCH but will accept it from Asterisk so what is different in the SIP connection?

tport_type_udp.c:521 tport_udp_error() reported by [xxx.xxx.xxx.xxx]:0
nta.c:2758 agent_tp_error() nta_agent: tport: xxx.xxx.xxx.xxx:44618: Connection refused
 

DavidDec

Member
Jan 30, 2020
32
3
8
37
United Kingdom
Found the following, worth a bash?

To disable SIP ALG on a Technicolor, Thomson, or SpeedTouch router you will need to Telnet into the router and unbind SIP from port 5060. If you have a Telnet Client installed, you simply need to run the following commands in the command prompt, which can be accessed by pressing Windows Key + R, then typing cmd, if using Windows. If you are using Mac OS X or Linux, simply open a terminal window.

telnet 192.168.1.254
connection unbind application=SIP port=5060
saveall

NB: The IP address 192.168.1.254 is often the default address for this router, if a different IP address has been set on the router, use that instead.
 

dcitelecom

Member
Oct 20, 2021
129
3
18
60
so in this particular case, we had to "enable" SIP ALG for this to work. It was disabled to work with Asterisk but for FusionPBX we had to "enable" it to work. Now the extension registers fine. Incoming and outgoing calls are ok. Can't imagine that many people are still using this modem but at least it's documented now in case anyone else ever runs into the same problem. Thomson Speedtouch ST546 v6 DSL modem/router

telnet 192.168.1.254.
connection bind application=SIP port=5060
saveall
 
  • Like
Reactions: DavidDec

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,388
364
83
I am very glad you have got this working, however non of this makes much sense without the context of before and after packet captures for comparison.
 

hfoster

Active Member
Jan 28, 2019
674
80
28
34
"Thomson Speedtouch ST546 v6 DSL modem/router"

Holy shit, a 546! That was my first router I dabbled with back on the support desk days. No WiFi on the bugger, but it did have an SNMP responder!
 
Status
Not open for further replies.