Autoprovision is using port 5062, VitalPBX is listening on 5060

I have something set wrong, I hope someone can point me to the fix.

When I setup a phone using Auto Provision, VitalPBX sent out a configuration using port 5062:
account.1.sip_server.1.port = 5062

When the remote phone wouldn’t register, I started troubleshooting and noticed the 5062 issue, so I changed it to 5060, now the phone registers.

What do I change to get Auto Provision & Extension/Devices to agree?

What brand and model are you provisioning?

What type of device are you creating? SIP or PJSIP?

We are seeing this behavior with the Yealink T52S and T54W using PJSIP

Side note: I have printed the manual, but have not read it cover to cover. Is there a “12 step process for setting up a VitalPBX phone system” in the manual? I am thinking something simple for those of us configuring one trunk with a dozen or so extensions.

Perhaps something here will provide a clue:
grep -ris “5060|5062” /etc | grep -vi “binary|moduli|trunks”
/etc/fail2ban/jail.conf:port = 5060,5061
/etc/fail2ban/jail.conf:port = 5060,5061
/etc/firewalld/services/vpbx_service_14.xml:
/etc/firewalld/services/vpbx_service_14.xml:
/etc/firewalld/services/vpbx_service_1.xml:
/etc/firewalld/services/vpbx_service_1.xml:
/etc/asterisk/vitalpbx/pjsip__20-transport.conf:bind=0.0.0.0:5060
/etc/asterisk/vitalpbx/pjsip__20-transport.conf:bind=[::]:5060
/etc/asterisk/vitalpbx/pjsip__20-transport.conf:bind=0.0.0.0:5060
/etc/asterisk/vitalpbx/pjsip__20-transport.conf:bind=[::]:5060
/etc/asterisk/vitalpbx/pjsip__20-transport.conf:bind=0.0.0.0:5060
/etc/asterisk/vitalpbx/sip__10-general.conf:udpbindaddr=0.0.0.0:5062
/etc/asterisk/vitalpbx/sip__10-general.conf:tcpbindaddr=0.0.0.0:5062
/etc/services:sip 5060/tcp # SIP
/etc/services:sip 5060/udp # SIP
/etc/services:na-localise 5062/tcp # Localisation access
/etc/services:na-localise 5062/udp # Localisation access

What value did you set in in the Provisioning->Server Settings → PJSIP Port?
image

Are you extension devices really set as PJSIP and not SIP?

We use Yealink devices on non standard (5060) ports and provisioning modules has no issue setting whatever port we configure for PJSIP.

1 Like

That’s my problem - thank you!
Provisioning->Server Settings → PJSIP Port was set to 5062
So, is it best to change the Server settings in the Provisioning module, or do I bind PJSIP to 5062?

Page 215 of the manual seems to prefer 5062 for PJSIP, page 21 seems to indicate 5060 is better. Looking for your expert opinion…

You can really use whatever you want the default is 5060 now for PJSIP in VitalPBX v3 and usuakky all other sip devices default to 5060 but everything is configurable so its your choice really.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.