Asterisk - slow to start/restart

I just upgraded from asterisk-30.16 to asterisk-16.30.1 and I noticed that starts / restart asterisk takes much much longer. I think it is due to errors I get, asterisk is looking for some configuration files that are not there.

Here are errors / warnings:

  • WARNING[28972]: res_phoneprov.c:1233 get_defaults: Unable to find a valid server address or name.
  • ERROR[28972]: ari/config.c:312 process_config: No configured users for ARI

Here is a complete “reload”:

reload
– Reloading module ‘extconfig’ (Configuration)
– Reloading module ‘logger’ (Logger)
Asterisk Queue Logger restarted
– Reloading module ‘res_config_sqlite3.so’ (SQLite 3 realtime config engine)
– Reloading module ‘cdr’ (CDR Engine)
[Jan 20 19:19:46] NOTICE[28972]: cdr.c:4585 cdr_toggle_runtime_options: CDR simple logging enabled.
– Reloading module ‘cel’ (CEL Engine)
– CEL logging disabled.
– Reloading module ‘dnsmgr’ (DNS Manager)
– Reloading module ‘dsp’ (DSP)
– Reloading module ‘enum’ (ENUM Support)
– Reloading module ‘features’ (Call Features)
– Reloading module ‘http’ (Built-in HTTP Server)
– Reloading module ‘indications’ (Indication Tone Handling)
– Reloading module ‘acl’ (Named ACL system)
– Reloading module ‘manager’ (Asterisk Manager Interface)
– Reloading module ‘plc’ (PLC)
– Reloading module ‘udptl’ (UDPTL)
– Reloading module ‘res_geolocation.so’ (res_geolocation Module for Asterisk)
– Reloading module ‘res_phoneprov.so’ (HTTP Phone Provisioning)
[Jan 20 19:19:46] WARNING[28972]: res_phoneprov.c:1233 get_defaults: Unable to find a valid server address or name.
– Reloading module ‘res_stun_monitor.so’ (STUN Network Monitor)
– Reloading module ‘res_rtp_asterisk.so’ (Asterisk RTP Stack)
– Reloading module ‘res_musiconhold.so’ (Music On Hold Resource)
– Reloading module ‘res_crypto.so’ (Cryptographic Digital Signatures)
– Reloading module ‘res_smdi.so’ (Simplified Message Desk Interface (SMDI) Resource)
– Reloading module ‘chan_sip.so’ (Session Initiation Protocol (SIP))
– Reloading module ‘chan_iax2.so’ (Inter Asterisk eXchange (Ver 2))
Reloading SIP
– Reloading module ‘res_pktccops.so’ (PktcCOPS manager for MGCP)
– Reloading module ‘chan_mgcp.so’ (Media Gateway Control Protocol (MGCP))
– Reloading module ‘chan_skinny.so’ (Skinny Client Control Protocol (Skinny))
[Jan 20 19:19:46] NOTICE[28972]: chan_skinny.c:8482 config_load: Configuring skinny from skinny.conf
Reloading MGCP
– Reloading module ‘res_fax.so’ (Generic FAX Applications)
– Reloading module ‘res_ari.so’ (Asterisk RESTful Interface)
[Jan 20 19:19:46] ERROR[28972]: ari/config.c:312 process_config: No configured users for ARI
– Reloading module ‘res_adsi.so’ (ADSI Resource)
– Reloading module ‘app_confbridge.so’ (Conference Bridge Application)
– Reloading module ‘res_parking.so’ (Call Parking Resource)
– Reloading module ‘app_agent_pool.so’ (Call center agent pool applications)
– Reloading module ‘cel_manager.so’ (Asterisk Manager Interface CEL Backend)
– Reloading module ‘cdr_manager.so’ (Asterisk Manager Interface CDR Backend)
– Reloading module ‘cdr_csv.so’ (Comma Separated Values CDR Backend)
– Reloading module ‘cel_custom.so’ (Customizable Comma Separated Values CEL Backend)
[Jan 20 19:19:46] NOTICE[28972]: cel_custom.c:92 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
Added CEL CSV mapping for 0 files.
– Reloading module ‘cdr_custom.so’ (Customizable Comma Separated Values CDR Backend)
– Reloading module ‘app_amd.so’ (Answering Machine Detection Application)
– Reloading module ‘app_minivm.so’ (Mini VoiceMail (A minimal Voicemail e-mail System))
– Reloading module ‘app_voicemail.so’ (Comedian Mail (Voicemail System))
– Reloading module ‘pbx_dundi.so’ (Distributed Universal Number Discovery (DUNDi))
– Reloading module ‘app_alarmreceiver.so’ (Alarm Receiver for Asterisk)
– Reloading module ‘app_followme.so’ (Find-Me/Follow-Me Application)
– Reloading module ‘chan_unistim.so’ (UNISTIM Protocol (USTM))
– Reloading module ‘res_clialiases.so’ (CLI Aliases)
– Reloading module ‘app_playback.so’ (Sound File Playback Application)
– Reloading module ‘pbx_ael.so’ (Asterisk Extension Language Compiler)
Reloading unistim.conf…
== Setting global variable ‘CONSOLE-AEL’ to ‘“Console/dsp”’
== Setting global variable ‘IAXINFO-AEL’ to ‘guest’
== Setting global variable ‘OUTBOUND-TRUNK’ to ‘“Zap/g2”’
== Setting global variable ‘OUTBOUND-TRUNKMSD’ to ‘1’
– Including switch ‘DUNDi/e164’ in context ‘ael-dundi-e164-switch’
– Time to scan old dialplan and merge leftovers back into the new: 0.000224 sec
– Time to restore hints and swap in new dialplan: 0.000002 sec
– Time to delete the old dialplan: 0.000040 sec
– Total time merge_contexts_delete: 0.000266 sec
– pbx_ael successfully loaded 65 contexts (enable debug for details).
– Reloading module ‘pbx_config.so’ (Text Extension Configuration)
== Setting global variable ‘clinic_server’ to ‘192.168.143.1’
== Setting global variable ‘sales_support’ to ‘SIP/55’
== Setting global variable ‘accounting’ to ‘SIP/322’
== Setting global variable ‘clinic_fax’ to ‘SIP/369’
== Setting global variable ‘family’ to ‘SIP/218’
== Setting global variable ‘kathy’ to ‘SIP/711’
== Setting global variable ‘cell_phone’ to ‘SIP/587-402-8232@pstn-5665’
– Including switch ‘DUNDi/e164’ in context ‘ael-dundi-e164-switch’
– Time to scan old dialplan and merge leftovers back into the new: 0.000076 sec
– Time to restore hints and swap in new dialplan: 0.000002 sec
– Time to delete the old dialplan: 0.000035 sec
– Total time merge_contexts_delete: 0.000113 sec
– pbx_config successfully loaded 65 contexts (enable debug for details).
– Reloading module ‘app_queue.so’ (True Call Queueing)
[Jan 20 19:19:46] NOTICE[28972]: app_queue.c:9449 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
I think I have to turn OFF some setting in configuration file, but which one?

Maybe try a non-EOL version?

OK, I got rid of one, " No configured users for ARI"

But I can not get rid of:
WARNING[28972]: res_phoneprov.c:1233 get_defaults: Unable to find a valid server address or name.

Which config is it?

Asterisk-16.30.1 is still mark stable and current in Gentoo.

Then you should ask Gentoo for help, shouldn’t you? You can’t expect the upstream developers to cater for what distro maintainers may do with their code, particularly old code.

1 Like

You know what is the main difference between gentoo user forum and all other distros!
If somebody can not provide a solution to a problem they don’t butt-in with useless suggestions.

The suggestion was correct.

Which version of Asterisk is still supported here?
The newest one in Gentoo portage is: “asterisk-18.18.1”
will it be compatible with my old asterisk dial plan?

heck syscon, even Asterisk 11 is working just fine. As for “supported” that’s a whole different issue. & to answer your question about “Dialplan” it should be “compatible” there’s no reason it should not be.

Have a look here for supported versions
https://docs.asterisk.org/About-the-Project/Asterisk-Versions/
As far as dial plan changes have a look at the UPGRADES file between versions. You should be good from 16 to 18.

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