V4 outbound not working contact URI invalid

Having all kinds of issues trying to get VitalPBX working. Followed the directions but seems to be for V3

Specifically it states the contact and match should be sip.telnyx.com but I get the following error.

[2024-01-25 11:05:38] ERROR[1497]: res_pjsip/location.c:615 permanent_uri_handler: Contact uri or hostname length exceeds pjproject limit or is not a sip(s) uri: sip.telnyx.com
[2024-01-25 11:05:38] ERROR[1497]: config_options.c:798 aco_process_var: Error parsing contact=sip.telnyx.com at line 312 of /etc/asterisk/vitalpbx/pjsip__50-1-trunks.conf
[2024-01-25 11:05:38] ERROR[1497]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type ‘aor’ with id ‘Telnyx1’ from configuration file ‘pjsip.conf’

Another post said it should be sip:sip.telnyx.com but get a different error.
[2024-01-25 11:13:01] ERROR[1497]: netsock2.c:303 ast_sockaddr_resolve: getaddrinfo(“sip”, “sip.telnyx.com”, …): Servname not supported for ai_socktype
[2024-01-25 11:13:01] ERROR[1497]: res_pjsip_endpoint_identifier_ip.c:553 ip_identify_apply: Identify ‘Telnyx1’ failed when adding resolution results of ‘sip:sip.telnyx.com’
[2024-01-25 11:13:01] ERROR[1497]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type ‘identify’ with id ‘Telnyx1’ from configuration file ‘pjsip.conf’
[2024-01-25 11:13:01] NOTICE[1497]: res_sorcery_config.c:434 sorcery_config_internal_load: Retaining existing configuration for object of type ‘identify’ with id ‘Telnyx1’
[2024-01-25 11:13:01] NOTICE[1497]: sorcery.c:1348 sorcery_object_load: Type ‘system’ is not reloadable, maintaining previous values

Also getting the following other errors on reload. one concern is its showing that dialplan.conf error at line 3384/3385 even though the file only has 575 lines. We don’t have any _ in our extension

[2024-01-25 11:13:01] WARNING[7698]: pbx_config.c:1879 pbx_load_config: The use of ‘_.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘X.’ instead at line 3384 of /etc/asterisk/vitalpbx/extensions__50-1-dialplan.conf
[2024-01-25 11:13:01] WARNING[7698]: pbx_config.c:1879 pbx_load_config: The use of '
.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘_X.’ instead at line 3385 of /etc/asterisk/vitalpbx/extensions__50-1-dialplan.conf
[2024-01-25 11:13:01] NOTICE[7698]: app_queue.c:9573 reload_queue_rules: No queuerules.conf file found, queues will not follow penalty rules
[2024-01-25 11:13:01] ERROR[7698]: res_sorcery_config.c:328 sorcery_config_internal_load: Unable to load config file ‘geolocation.conf’

Sharing your current trunk configurations might help to identify the issue in your configurations. Instructions for V3 also work on V4 because they are not too different.

Here’s the screenshot and seems identical to the instructions, other than the identify by which we’ve tried a few things. Getting this error on reload

[2024-01-26 09:05:50] ERROR[122097]: config_options.c:798 aco_process_var: Error parsing contact=sip.telnyx.com at line 313 of /etc/asterisk/vitalpbx/pjsip__50-1-trunks.conf
[2024-01-26 09:05:50] ERROR[122097]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type ‘aor’ with id ‘Telnyx1’ from configuration file ‘pjsip.conf’
[2024-01-26 09:05:50] NOTICE[122097]: res_sorcery_config.c:434 sorcery_config_internal_load: Retaining existing configuration for object of type ‘aor’ with id ‘Telnyx1’
[2024-01-26 09:05:50] NOTICE[122097]: sorcery.c:1348 sorcery_object_load: Type ‘system’ is not reloadable, maintaining previous values
[2024-01-26 09:05:50] ERROR[122097]: res_pjsip_outbound_registration.c:1976 sip_outbound_registration_apply: Server URI or hostname length exceeds pjproject limit or is not a sip(s) uri: ‘Telnyx1’
[2024-01-26 09:05:50] ERROR[122097]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type ‘registration’ with id ‘Telnyx1’ from configuration file ‘pjsip.conf’

I would recommend changing the password because now is public for everyone.

About your settings, the Telnyx screenshots are wrong. You must omit the parameters Contacts, Client URI, and Server URI.

Just changed thanks! Looks like it registered now and no errors so will further test.

So these instructions on the attachment are wrong.

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