I upgrade from asterisk 16.11.1 to asterisk 22 .
In asterisk 16 I used sip , now I use pjsip
I migrate sippeers to ps_endpoints and ps_auth
and insert ps_aors
after asterisk is ready users get register and call will be stablished .
but every time I restart asterisk , it take long time to be ready
in tables
ps_endpoints rows :10000 records
ps_auth rows : 10000 record
….
what should I do ,
As I understand on startuop it load all ps_endpoints and … in memory
How can I disable this and just cache every time user request …
Or if problem is something else , please help me
sorcery.conf
[res_pjsip]
endpoint/cache = memory_cache,object_lifetime_stale=600,object_lifetime_maximum=1800,maximum_objects=10,expire_on_reload=yes,full_backend_cache=no
endpoint = realtime,ps_endpoints
auth/cache=memory_cache,expire_on_reload=yes,maximum_objects=10,full_backend_cache=no
auth = realtime,ps_auths
aor/cache = memory_cache,object_lifetime_stale=1500,object_lifetime_maximum=1800,maximum_objects=10,expire_on_reload=yes,full_backend_cache=no
aor = realtime,ps_aors
;[res_pjsip]
;endpoint=config,pjsip.conf,criteria=type=endpoint
;endpoint=realtime,ps_endpoints
;auth=realtime,ps_auths
;aor=config,pjsip.conf,criteria=type=aor
;aor=realtime,ps_aors
;aor=config,pjsip.conf,criteria=type=aor
;aor=realtime,ps_aors
;transport=config,pjsip.conf,criteria=type=transport
;global=config,pjsip.conf,criteria=type=global
—————–
extconfig.conf
;
; Static and realtime external configuration
; engine configuration
;
; See Realtime Database Configuration - Asterisk Documentation
; for basic table formatting information.
;
[settings]
; Only map authentication to database
;ps_auths => odbc,asterisk,ps_auths
;extensions => odbc,asterisk,extensions ; Only if you need extensions from DB
;exten => odbc,asterisk,odbc
extensions => odbc,asterisk,extensions
ps_endpoints => odbc,asterisk,ps_endpoints,id=‘1’
ps_auths => odbc,asterisk,ps_auths,id=‘1’
ps_aors => odbc,asterisk,ps_aors
;ps_domain_aliases => odbc,asterisk,ps_domain_aliases
—-