After running module updates, yum update, reboot pjsip trunk does not register.
Here is trunk config:
[anveo]
type=registration
transport=0.0.0.0-udp
outbound_auth=anveo
retry_interval=60
fatal_retry_interval=30
forbidden_retry_interval=30
max_retries=10000
expiration=180
auth_rejection_permanent=no
line=yes
endpoint=anveo
contact_user=actualUserName
server_uri=sip:sip.anveo.com:5010
client_uri=sip:[email protected]:5010
I get:
[2021-07-11 09:58:46] ERROR[5085]: res_pjsip.c:3510 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport ā0.0.0.0-udpā
[2021-07-11 09:58:46] ERROR[5085]: res_pjsip.c:4350 endpt_send_request: Error 320047 āNo answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC)ā sending OPTIONS request to endpoint anveo
I found an older post that said get rid of transport in trunk config, but thatās not possible in GUI.
I have transport enabled in pjsip āasterisk settingsā (udp - 0.0.0.0 - All = yes).
I strictly use the GUI for config. The above was from pjsip.registration.conf.
Iām not sure which file to find the setting ātype=ā.
I didnāt find the setting ātypeā in the GUI for the pjsip trunk config.
Iām not sure what to do now. I saw a warning that Zulu was disabled and needing an update.
I tried enable and update but it seems to just hang. I tried restarting httpd which took a few minutes.
Apply config was still red in gui. When running apply config it appears to hang and I see this
looping in freepbx.log.
[root@stuartpbx asterisk]# tail -f freepbx.log
[2021-07-11 11:58:02] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2021-07-11 11:58:02] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2021-07-11 11:58:02] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2021-07-11 11:58:03] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:03] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:03] [freepbx.INFO]: Deprecated way to add Console commands for module iotserver, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:03] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:03] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:03] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:03] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:06] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2021-07-11 11:58:06] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2021-07-11 11:58:07] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:07] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:07] [freepbx.INFO]: Deprecated way to add Console commands for module iotserver, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:07] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:07] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:07] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:58:07] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:02] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2021-07-11 11:59:02] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2021-07-11 11:59:03] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2021-07-11 11:59:03] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2021-07-11 11:59:04] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:04] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:04] [freepbx.INFO]: Deprecated way to add Console commands for module iotserver, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:04] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:04] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:04] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:04] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:05] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2021-07-11 11:59:05] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2021-07-11 11:59:06] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:06] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:06] [freepbx.INFO]: Deprecated way to add Console commands for module iotserver, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:06] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:06] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:06] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-07-11 11:59:06] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
Is your system otherwise running ok? Iāve been seeing this crap in the log every minute for months. Iāve never bothered to track it down, because it only wastes a few hundred MB of disk space.
Regarding Anveo, I donāt know whatās wrong but suggest that you delete the trunk and start over. Just for laughs, I set up an Anveo trunk with just 3 non-default settings:
I sure had an issue with transport. After the update Asterisk is no longer
allowing ābogusā entries for ālocal networksā. For some unknown reason,
the IT personnel decided it was a good idea to use 35.1.3.1.0/24 subnet for LAN!
Iāve had that subnet listed as an additional local network for nearly two years.
It is now rejected and causes transport to fail.
[2021-07-10 12:06:21] ERROR[940] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2021-07-10 12:06:21] ERROR[940] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2021-07-10 12:06:21] WARNING[940] acl.c: Invalid IP address: 35.1.3.1.0
[2021-07-10 12:06:21] ERROR[940] config_options.c: Error parsing local_net=35.1.3.1.0/24 at line 21 of /etc/asterisk/pjsip.transports.conf
[2021-07-10 12:06:21] ERROR[940] res_sorcery_config.c: Could not create an object of type 'transport' with id '0.0.0.0-udp' from configuration file 'pjsip.conf'
[2021-07-10 12:06:21] NOTICE[940] res_sorcery_config.c: Retaining existing configuration for object of type 'transport' with id '0.0.0.0-udp'
[2021-07-10 12:06:21] ERROR[940] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2021-07-10 12:06:21] ERROR[940] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'
[2021-07-10 12:06:21] NOTICE[940] sorcery.c: Type 'system' is not reloadable, maintaining previous values
After removing the offending entry, transports now load and my IP phones are now registering. I still have the issue with trunk though.
With logger set on this is still the only output I get:
[2021-07-11 15:27:30] WARNING[2608]: res_pjsip_outbound_registration.c:841 schedule_retry: No response received from 'sip:sip.anveo.com:5010' on registration attempt to 'sip:[email protected]:5010', retrying in '60'
`[2021-07-11 15:27:32] ERROR[2608]: res_pjsip.c:4350 endpt_send_request: Error 320047 'No answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC)' sending OPTIONS request to endpoint anveo`
I still donāt know if this is an Asterisk issue or Anveo issue.
I donāt actually see any registration attempts. Perhaps there is something wrong with my
tcpdump command (192.168.35.7 is the Freepbx server IP on eth0)
tcpdump -ni eth0 -s0 -w tcpDump.pcap host 192.168.35.7 and udp
I see all other sip traffic between endpoints on the LAN but nothing going outside the LAN.
After rebooting the server, I can now register with Anveo. Iām not sure
if it had already stopped trying due to no response or if it was a different issue.
All is well now.
Thanks again.
They will definitely need to change the subnet to a private range. I think there was only one or two devices that were on that LAN (wiring constraints forced them to use the DATA lan vs VOIP vLAN).
Yeah, that poor choice to use 35.1.3.1.0/24 was made over ten years ago!
I love having that conversationā¦ ābut itās been working fine for over ten yearsā.