Pjsip show endpoints - No objects found

Sorry for my english.
OS FreeBSD 10.3-RELEASE i386, Asterisk 13.9.1.

Endpoints connect to server, make and receive calls.

pbx*CLI> pjsip show endpoint 799

 Endpoint:  <Endpoint/CID.....................................>  <State.....>  <Channels.>
    I/OAuth:  <AuthId/UserName...........................................................>
        Aor:  <Aor............................................>  <MaxContact>
      Contact:  <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
  Transport:  <TransportId........>  <Type>  <cos>  <tos>  <BindAddress..................>
   Identify:  <Identify/Endpoint.........................................................>
        Match:  <ip/cidr.........................>
    Channel:  <ChannelId......................................>  <State.....>  <Time.....>
        Exten: <DialedExten...........>  CLCID: <ConnectedLineCID.......>
==========================================================================================

 Endpoint:  799/799                                              Not in use    0 of inf
     InAuth:  799/799
        Aor:  799                                                2
      Contact:  799/sip:799@192.168.0.241:5060           9b2d18512d Created       0.000
  Transport:  transport-udp-nat         udp      0      0  0.0.0.0:5060

pbx*CLI> pjsip show endpoint 798

 Endpoint:  <Endpoint/CID.....................................>  <State.....>  <Channels.>
    I/OAuth:  <AuthId/UserName...........................................................>
        Aor:  <Aor............................................>  <MaxContact>
      Contact:  <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
  Transport:  <TransportId........>  <Type>  <cos>  <tos>  <BindAddress..................>
   Identify:  <Identify/Endpoint.........................................................>
        Match:  <ip/cidr.........................>
    Channel:  <ChannelId......................................>  <State.....>  <Time.....>
        Exten: <DialedExten...........>  CLCID: <ConnectedLineCID.......>
==========================================================================================

 Endpoint:  798/798                                              Not in use    0 of inf
     InAuth:  798/798
        Aor:  798                                                2
      Contact:  798/sip:798@192.168.0.240:5060           e95e51075e Created       0.000
  Transport:  transport-udp-nat         udp      0      0  0.0.0.0:5060

Why command “pjsip show endpoints”, “pjsip show registrations” , “pjsip list aors”, show “no objects found”?

pbx*CLI> pjsip show endpoints
No objects found.

You’ll need to provide more information about your environment. Where are these configured, realtime or configuration file? If realtime what database?

Configured in configuration files. What information you need to provide more?

Which configuration files need show?

Provide pjsip.conf as well as sorcery.conf and the complete console output from startup.

pjsip.conf

; PJSIP Configuration
;[global]

; LOCAL
[transport-udp-nat]
type=transport
protocol=udp
bind=0.0.0.0
local_net=192.168.0.0/24
external_media_address=X.X.X.X
external_signaling_address=X.X.X.X

[endpoint-template](!)
type=endpoint
transport=transport-udp-nat
disallow=all
allow=ulaw
allow=alaw
direct_media=no

[auth-template](!)
type=auth
auth_type=userpass

[aor-template](!)
type=aor
max_contacts=2

[798](endpoint-template)
context=phones-ipshka
auth=798
aors=798
callerid=SIP-IPSHKA <798>
call_group=1
pickup_group=1

[798](auth-template)
password=xxx
username=798

[798](aor-template)

[799](endpoint-template)
context=phones-uz
auth=799
aors=799
callerid=SIP-UZ <799>
call_group=1
pickup_group=1

[799](auth-template)
password=xxx
username=799

[799](aor-template)

sorcery.conf

; Sample configuration file for Sorcery Data Access Layer

;
; Wizards
;
; Wizards are the persistence mechanism for objects. They are loaded as Asterisk modules and register
; themselves with the sorcery core. All implementation specific details of how objects are persisted is isolated
; within wizards.
;

;
; Caching
;
; A wizard can optionally be marked as an object cache by adding "/cache" to the object type within the mapping.
; If an object is returned from a non-object cache it is immediately given to the cache to be created. Multiple
; object caches can be configured for a single object type.
;

;
; Object Type Mappings
;
; To allow configuration of where and how an object is persisted object mappings can be defined within this file
; on a per-module basis. The mapping consists of the object type, options, wizard name, and wizard configuration
; data. This has the following format:
;
; object type [/options] = wizard name, wizard configuration data
;
; For example to configure an in-memory wizard for the 'bob' object type:
;
; bob = memory
;
; Or to configure the object type 'joe' from a configuration file:
;
; joe = config,joe.conf
;
; Note that an object type can have multiple mappings defined. Each mapping will be consulted in the order in which
; it appears within the configuration file. This means that if you are configuring a wizard as a cache it should
; appear as the first mapping so the cache is consulted before all other mappings.
;

;
; The following object mappings are used by the unit test to test certain functionality of sorcery.
;
[test_sorcery_section]
test=memory

[test_sorcery_cache]
test/cache=test
test=memory

;
; The following object mapping is the default mapping of external MWI mailbox
; objects to give persistence to the message counts.
;
;[res_mwi_external]
;mailboxes=astdb,mwi_external

;
; The following object mappings set PJSIP objects to use realtime database mappings from extconfig
; with the table names used when automatically generating configuration from the alembic script.
;
;[res_pjsip]
;endpoint=realtime,ps_endpoints
;auth=realtime,ps_auths
;aor=realtime,ps_aors
;domain_alias=realtime,ps_domain_aliases
;identify=realtime,ps_endpoint_id_ips

complete console output from startup log file /var/log/asterisk/full:

[2016-06-16 13:35:58] VERBOSE[100557] asterisk.c: Asterisk cleanly ending (0).
[2016-06-16 13:35:58] VERBOSE[100557] asterisk.c: Executing last minute cleanups
[2016-06-16 13:35:58] Asterisk 13.9.1 built by root @ pbx.loc.lan on a i386 running FreeBSD on 2016-05-31 12:16:04 UTC
[2016-06-16 13:35:59] NOTICE[100083] cdr.c: CDR simple logging enabled.
[2016-06-16 13:35:59] NOTICE[100083] loader.c: 86 modules will be loaded.
[2016-06-16 13:36:00] WARNING[100083] res_phoneprov.c: Unable to find a valid server address or name.
[2016-06-16 13:36:00] NOTICE[100083] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[2016-06-16 13:36:00] VERBOSE[100083] asterisk.c: Asterisk Ready.

jcolp still need more information?

I was not able to reproduce that specific issue on Linux using the configuration provided against Asterisk 13.9.1. It’s possible that something in FreeBSD is compiling it differently causing issues…

On which Linux (Debian, Ubuntu) reproduced configuration?

I use Ubuntu Server 15.10.

Thank you. I will test several options in Linux and FreeBSD.

With what OS (Linux or FreeBSD) works well Asterisk 13.9.1?
To recommend OS install Asterisk 13.9.1?

Linux is the supported operating system, FreeBSD may work but it is not tested or actively developed against.

Linux (Debian, Ubuntu, CentOS) ?

Any. Some people use Debian, some use Ubuntu, some use CentOS, some use Gentoo, some use others.

Thank you. I yet test in Linux and FreeBSD.