I have a working PostgreSQL database installed locally with Asterisk 13 installed via package on OpenBSD 5.9. I also downloaded from source to obtain the SQL in the contribs section for the database schema. My alembic database version is 28ce1e718f05
After populating the tables with the example data my two endpoints don’t have stable connections, and the AORs/Contacts are not working. Calls between Endpoints fail. The AOR record is never updated (I initially populate with @10.0.0.0:5060), and contacts are never inserted. I do have remove_existing set to true and max_contacts set to 1, so I was expecting at least an update statement for the initial AOR with the new Contact information. I’m tailing the PostgreSQL logfile and can see only SELECT statements being run against the database for pjsip tables. I double checked all the privileges, and CDR records are being written. While there are tables for transports and systems, they seemingly are not connected.
The stock configurations included in OpenBSD do not result in a working Asterisk instance. My previous experience was with Asterisk 1.6.2 and ODBC and it’s confusing about what is required. Since ‘pjsip show endpoints’ is listing the endpoints I think I have the configuration in the ball park
Can anyone contribute a working example where PJSIP is entirely run from file? Although, in that case where are the AOR and Contact records being updated? I don’t mind working with Realtime, but so far Asterisk seems to refuse to pull/update the data it needs from PostgreSQL.
Any advice or working examples is appreciated. My configurations:
Starting Asterisk I see a lot of modules starting and failing so I wanted to not load modules I wasn’t going to use.
ps_endpoints => pgsql,asteriskops
ps_auths => pgsql,asteriskops
ps_aors => pgsql,asteriskops
ps_domain_aliases => pgsql,asteriskops
ps_endpoint_id_ips => pgsql,asteriskops
ps_contacts => pgsql,asteriskops
;endpoint/cache = memory_cache,object_lifetime_stale=600,object_lifetime_maximum=1800,expire_on_reload=yes,full_backend_cache=yes
;auth/cache = memory_cache,expire_on_reload=yes,full_backend_cache=yes
;aor/cache = memory_cache,object_lifetime_stale=1500,object_lifetime_maximum=1800,expire_on_reload=yes,full_backend_cache=yes