I mentioned in my previous post that I’m porting a number to voip.ms but I have not had any success getting a trunk to register. I have a working trunk with Anveo so my infrastructure is not broken.
I’m using the voip.ms main account only as I need just one trunk and one DID so I have not done anything with subaccounts. I do not have a DID at this time as I am trying to get the trunk up before the porting request.
Reports → PBX Reports → PJSIP Endpoints - shows sip:33####@dallas2.voip.ms is reachable. The 33#### is the Endpoint and my Main SIP user id.
Reports → PBX Reports → Registrations - lists both trunks (Anveo and voip.ms) but no registration for voip.ms
When I save the config and reload, asterisk gives this error.
[2023-10-06 16:19:22] ERROR[8275]: res_pjsip_outbound_registration.c:1984 sip_outbound_registration_apply: Client URI or hostname length exceeds pjproject limit or is not a sip(s) uri: 'voipms'
[2023-10-06 16:19:22] ERROR[8275]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type 'registration' with id 'voipms' from configuration file 'pjsip.conf'
The only place I have “voipms” on the trunk config page is in the Local username.
I’m running pfSense as the firewall and for outbound connections I don’t think I need to do anything special.
Could anybody share a working config or screenshots for this?
Hi BossyBear, hope your having a wonderful day!.. I have a voip.ms trunk configured and working. There are 2 ways to create a trunk with VOIP.MS
PJSIP using User and Password Authentication
PJSIP using IP Authentication FOR ADVANCED USERS (to be able to use IP authentication you will need to create a sub-account. The main account is not capable of handling this type of authentication)
I’m using option 2 since i have a static IP using PalAlto Networks. Ill send screenshots to both just incase you choose either one.
@danny Thank you for your pics. These look familiar and I am trying to use option 1 with the main account. The Outbound default route is still to Anveo because that’s working. Inbound is working. But I don’t think either of those settings matter with regard to the outbound registration for an additional trunk.
I see some issues on your screenshots… Is the username 384609 or 385609 ?
Remove voipms under Local Username to > 384609 or 385609 which ever one is correct.
Remove From Domain and change it to dallas2.voip.ms
fix Contacts with the correct username sip:384609@dallas2.voip.ms
*IMPORTANT: The Main and Sub-Accounts use codec G.711u as priority by default. To use G.722 go to the advanced settings of the account you’ll configure in the trunk.
Also don’t forget to whitelist voipms in VitalPBX and your Firewall dallas2.voip.ms
Admin >> Firewall >> Access Control
Thanks @danny it’s 384 and I’ve fixed that. I’ve typed it so many times on that page trying to get anything to work I just fat fingered it.
Changed local Username.
Changed From domain.
Changed Contacts.
Updated the trunk to g.722 since I don’t see G.711u in VitalPBX.
I’ve whitelisted the voip.ms server but I don’t know if that is for outbound or just inbound. I don’t have anveo added there and it works fine.
On reload asterisk says…
ERROR[31376]: res_pjsip_outbound_registration.c:1984 sip_outbound_registration_apply: Client URI or hostname length exceeds pjproject limit or is not a sip(s) uri: '384609'
Ok this is interesting. I got it to register by using the same fields that were working in Anveo and it is substantially different than anything here or in the wiki.