I have a freshly installed FreePBX. I’m trying to see SIP peers and registrations but I’m getting errors:
[root@freepbx ~]# asterisk -r
Connected to Asterisk 13.22.0 currently running on freepbx (pid = 11663)
freepbxCLI> pjsip show peers
No such command ‘pjsip show peers’ (type ‘core show help pjsip show’ for other possible commands)
freepbxCLI> show iax2 registery
No such command ‘show iax2 registery’ (type ‘core show help show iax2’ for other possible commands)
freepbx*CLI> sip show peers
No such command ‘sip show peers’ (type ‘core show help sip show’ for other possible commands)
How did you install this? None of those Asterisk modules are loaded/running which would be a huge bug if this was installed via the ISO or other issues during the install process.
If this was a manual install, steos could have been missed.
There is no such command as pjsip show peers. Perhaps you want pjsip show endpoints or pjsip show contacts .
Likewise, you probably want iax2 show registry (note spelling).
However, as @BlazeStudios noted, you likely don’t have chan_sip module loaded and running. If pjsip meets your requirements, chan_sip may not be needed.
In the GUI, go to Reports -> Asterisk Info and then click Peers to see all your endpoints.
module show like sip <-- This will show all the modules that have “sip” in their name. This will show if chan_sip.so and chan_pjsip.so are actually loaded and running.
module show like iax <-- Same deal but will do it for the IAX module.
OK, that is just the FreePBX version. A non-ISO install would still have that information. You are going to need to find out a few things.
First, SSH in and do cat /etc/sangoma-release which should give you this: Sangoma Linux release 7.5.1805 (Core)
You can also do cat /etc/schmooze/pbx-version which should give you something like this: 12.7.5-1807-1.sng7
If those don’t exist then this was a manual install and whoever installed it did not do it right. If they do exist, then really it’s the same thing. The install and/or followup configuration of the PBX was not done correctly.
[root@freepbx ~]# cat /etc/sangoma-release
Sangoma Linux release 7.5.1805 (Core)
[root@freepbx ~]# /etc/schmooze/pbx-version
/etc/schmooze/pbx-version: line 1: 12.7.5-1807-1.sng7: command not found
[2018-11-27 02:55:05] WARNING[2529]: iax2/firmware.c:237 iax_firmware_reload: Error opening firmware directory ‘/var/lib/asterisk/firmware/iax’: No such file or directory
[2018-11-27 02:55:05] NOTICE[2529]: iax2/provision.c:562 iax_provision_reload: No IAX provisioning configuration found, IAX provisioning disabled.
[2018-11-27 02:55:05] NOTICE[2529]: chan_console.c:1445 load_config: Unable to open configuration file console.conf!
[2018-11-27 02:55:05] NOTICE[2529]: chan_mgcp.c:4697 reload_config: Unable to load config mgcp.conf, MGCP disabled
SIP channel loading…
[2018-11-27 02:55:05] NOTICE[2529]: chan_sip.c:31569 build_peer: The ‘username’ field for sip peers has been deprecated in favor of the term ‘defaultuser’
[2018-11-27 02:55:06] WARNING[2529]: chan_sip.c:32064 display_nat_warning: !!! PLEASE NOTE: Setting ‘nat’ for a peer/user that differs from the global setting can make
[2018-11-27 02:55:06] WARNING[2529]: chan_sip.c:32065 display_nat_warning: !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
[2018-11-27 02:55:06] WARNING[2529]: chan_sip.c:32066 display_nat_warning: !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
[2018-11-27 02:55:06] WARNING[2529]: chan_sip.c:32067 display_nat_warning: !!! use the global ‘nat’ setting and do not set ‘nat’ per peer/user.
[2018-11-27 02:55:06] WARNING[2529]: chan_sip.c:32068 display_nat_warning: !!! (config category=‘voxbeam_outbound’ global force_rport=‘Yes’ peer/user force_rport=‘No’)
[2018-11-27 02:55:06] NOTICE[2529]: chan_skinny.c:8452 config_load: Configuring skinny from skinny.conf
[2018-11-27 02:55:06] NOTICE[2529]: chan_skinny.c:8462 config_load: Unable to load config skinny.conf, Skinny disabled.
[2018-11-27 02:55:06] ERROR[2529]: chan_mobile.c:4778 load_module: No Bluetooth devices found. Not loading module.
[2018-11-27 02:55:06] NOTICE[2529]: chan_ooh323.c:2831 reload_config: Unable to load config ooh323.conf, OOH323 disabled
[2018-11-27 02:55:06] ERROR[2529]: chan_ooh323.c:3965 load_module: Can’t load ooh323 config file, OOH323 Disabled
[2018-11-27 02:55:06] ERROR[2529]: res_pjsip_config_wizard.c:1089 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
[2018-11-27 02:55:06] ERROR[2529]: res_pjsip_config_wizard.c:1089 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
[2018-11-27 02:55:06] WARNING[2529]: res_phoneprov.c:1526 ast_phoneprov_provider_register: Provider ‘res_pjsip_phoneprov_provider’ cannot be registered: res_phoneprov not loaded.
[2018-11-27 02:55:06] ERROR[2529]: res_pjsip_phoneprov_provider.c:389 load_module: Unable to register pjsip phoneprov provider.
[2018-11-27 02:55:06] ERROR[2529]: config_options.c:708 aco_process_config: Unable to load config file ‘agents.conf’
[2018-11-27 02:55:06] ERROR[2529]: app_agent_pool.c:2695 load_module: Unable to load config. Not loading module.
[2018-11-27 02:55:06] NOTICE[2529]: confbridge/conf_config_parser.c:2089 verify_default_profiles: Adding default_menu menu to app_confbridge
[2018-11-27 02:55:06] WARNING[2529]: res_calendar.c:538 ast_calendar_register: Calendar support disabled, not loading caldav calendar module
[2018-11-27 02:55:06] WARNING[2529]: res_calendar.c:538 ast_calendar_register: Calendar support disabled, not loading ews calendar module
[2018-11-27 02:55:06] WARNING[2529]: res_calendar.c:538 ast_calendar_register: Calendar support disabled, not loading exchange calendar module
[2018-11-27 02:55:06] WARNING[2529]: res_calendar.c:538 ast_calendar_register: Calendar support disabled, not loading ical calendar module
[2018-11-27 02:55:06] ERROR[2529]: cdr_custom.c:101 load_config: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[2018-11-27 02:55:06] WARNING[2529]: cdr_manager.c:214 load_config: Failed to load configuration file. Module not activated.
[2018-11-27 02:55:07] ERROR[2529]: cdr_syslog.c:145 load_config: Unable to load cdr_syslog.conf. Not logging custom CSV CDRs to syslog.
[2018-11-27 02:55:07] ERROR[2529]: cel_custom.c:92 load_config: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[2018-11-27 02:55:07] WARNING[2529]: cdr_odbc.c:206 odbc_load_module: cdr_odbc: Unable to load config for ODBC CDR’s: cdr_odbc.conf
[2018-11-27 02:55:07] WARNING[2529]: app_festival.c:570 load_module: No such configuration file festival.conf
[2018-11-27 02:55:07] WARNING[2529]: app_followme.c:414 reload_followme: No follow me config file (followme.conf), so no follow me
[2018-11-27 02:55:07] WARNING[2529]: app_minivm.c:2910 load_config: Failed to load configuration file. Module activated with default settings.
[2018-11-27 02:55:07] ERROR[2529]: chan_phone.c:1413 load_module: Unable to load config phone.conf
[2018-11-27 02:55:07] ERROR[2529]: chan_unistim.c:6781 reload_config: Unable to load config unistim.conf
[2018-11-27 02:55:07] WARNING[2529]: res_hep_pjsip.c:240 load_module: res_hep is not loaded or running; declining module load
[2018-11-27 02:55:07] WARNING[2529]: res_hep_rtcp.c:163 load_module: res_hep is not loaded or running; declining module load
[2018-11-27 02:55:07] NOTICE[2529]: pbx_ael.c:172 pbx_load_module: File /etc/asterisk/extensions.ael not found; AEL declining load
[2018-11-27 02:55:07] ERROR[2529]: res_clialiases.c:198 load_config: res_clialiases configuration file ‘cli_aliases.conf’ not found
[2018-11-27 02:55:07] ERROR[2529]: pbx_dundi.c:4832 set_config: Unable to load config dundi.conf
[2018-11-27 02:55:07] WARNING[2529]: app_voicemail.c:13872 actual_load_config: maxsilence should be less than minsecs or you may get empty messages
[2018-11-27 02:55:07] WARNING[2529]: app_flite.c:76 read_config: Flite: Unable to read config file flite.conf. Using default settings
[2018-11-27 02:55:07] NOTICE[2529]: func_odbc.c:1784 load_module: Unable to load config for func_odbc: func_odbc.conf
[2018-11-27 02:55:07] WARNING[2529]: cdr_mysql.c:482 my_load_module: Unable to load config for mysql CDR’s: cdr_mysql.conf
Asterisk Ready.
[2018-11-27 02:55:10] NOTICE[3158]: chan_sip.c:30180 sip_poke_noanswer: Peer ‘geils_outbound’ is now UNREACHABLE! Last qualify: 0
OK, so whoever did this didn’t do it right or really screwed something up. If re-installing is an option, do that. Otherwise you’re going to trying fixing every little issue that pops up after you’ve fixed the previous issue.
OK. This is a VM. I will reboot the VM with ISO mounted a reinstall again. Thanks a lot for the help. I will post again here with news if a reinstall did it right.
Any comments you want to give me during the fresh installation?