I’m using VirtualBox with the network in bridge mode.
MY_IP = My PC using MicroSIP (in the case of the port, it’s the source port)
IP_SERVER = FreePBX
As I said, I just installed it and when creating the extension I noticed a warning about using pjsip on port 5060.
In settings > Asterisk SIP Settings > chan_pjsip > (udp) Port to Listen On = 5060 (default)
In SIP Network I set it to my network, which is a /16 of public IPs.
I can capture it using wireshark/tcpdump, but the packet arrives at FreePBX and is rejected due to “authentication failure”.
I installed it twice without changing anything, I just created the extension and tried to authenticate with MicroSIP. I tried disabling the firewall and adding ignoreip in fail2ban. If it were a firewall or fail2ban, you wouldn’t see anything in the asterisk debug.
Does your physical ‘extension’ (consider a softhphone here as physical) have the same server, password, port and transport set as the FreePBX extension created?
Yes, if here it’s the dynamic port
I think, it happends when you don’t set the good port too. I don’t remoember correctly, One day I set 5061 instead of 5060 and I had this error too.
Anyway, there is no reason to get this error if the password is good.
Dicko, yes, I’m trying to authenticate a MicroSIP (which I already use for my extensions and they all work fine)
Stewart, I copied and pasted the secret into MicroSIP, replaced the secret with another one and also used CTRL+C/V in MicroSIP. I tried everything related to the password. Big, small password…
Franck, I tried to change the pjsip port and I couldn’t even connect (I didn’t understand). But the error is clear: authentication failure.
I also looked at sngrep which shows the same thing as the pjsip debug.
What I find strangest is that I did the installation twice using only the installation script and then (without changing anything) I created the extension.
I did a new installation (3rd) and disabled IPv6. This time, the creation of extensions worked, but the Bulk import continues with an authentication error.
Finally, I installed VirtualBox on another PC (Windows) and reinstalled debian12/Freepbx. I tested the creation of an extension and also the bulk import and both worked.
I confess that this is very curious, but the problem is not with FreePBX.