XML Documentation

I have just rebuilt my Asterisk server on Ubuntu (Ver 20.04.1) using asterisk 20.1.0. I am getting the following errors and warning but after following the request to run xmldoc reload nothing changes. The log is as follows:

[Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘ignorestatechanges’ in modules ‘cdr’ not found!
[Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘ignoredialchanges’ in modules ‘cdr’ not found!
Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘security_mechanisms’ in modules ‘res_pjsip’ not found!
[Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘security_negotiation’ in modules ‘res_pjsip’ not found!
[Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘send_aoc’ in modules ‘res_pjsip’ not found!
[Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘all_codecs_on_empty_reinvite’ in modules ‘res_pjsip’ not found!
[Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘security_negotiation’ in modules ‘res_pjsip_outbound_registration’ not found!
[Feb 5 12:07:18] ERROR[1174] config_options.c: XML Documentation for option ‘security_mechanisms’ in modules ‘res_pjsip_outbound_registration’ not found!
[Feb 5 12:07:18] WARNING[1174] xmldoc.c: Couldn’t find function PJSIP_HEADER_PARAM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:18] WARNING[1174] xmldoc.c: Couldn’t find function PJSIP_HEADER_PARAM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application If in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application If in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application ElseIf in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application ElseIf in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application EndIf in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application EndIf in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application Else in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application Else in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application ExitIf in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find application ExitIf in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function TRIM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function TRIM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function LTRIM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function LTRIM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function RTRIM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function RTRIM in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function EXPORT in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation
[Feb 5 12:07:19] WARNING[1174] xmldoc.c: Couldn’t find function EXPORT in XML documentation If this module was recently built, run ‘xmldoc reload’ to refresh documentation

Any suggestions would be much appreciated.

How was Asterisk built and installed?

from source

Was Asterisk previously installed? Did you install it using “make install”?

The installed XML documentation doesn’t match the Asterisk that was built. It is the core-en_US.xml file, which on install by default goes to /var/lib/asterisk/documentation

Fresh server install.
install_prereq install
./configure
make menuselect
make
make install
make config
copy .conf files from v18 (previously installed)

I am in the UK and have most things set to UK language

The XML documentation is generated in the “doc” directory of the Asterisk source code directory during the install process. Does that match the system installed XML file? Because it really seems like you have an old version of the XML documentation and a new version of Asterisk.

/var/lib/asterisk/documentation/core-en_US.xml but everything else on the server is en_GB. I copied the /var/lib/asterisk folder from the old config. How could I recreate the new XML documentation?

We only do en_US.xml, that’s what it is. So you did overwrite the XML documentation with the old one. Re-running “make install” should reinstall it.

I also ran the following and wonder if uk should be changed to en or en_gb? Some of these files go back to 1990’s and I have never needed to update them previously.

grep -r uk *

iax.conf:language=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone = uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
pjsip.conf:language = uk
pjsip.conf:tone_zone=uk
sip.conf:language=uk ; Default language setting for all users/peers
sip-firewall.conf:language=uk ; Default language setting for all users/peers

Probably not? There have been no changes to any of that.

Thanks for your help - much appreciated

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