I’ve been struggling for weeks trying to set up PJSIP and LDAP (due to lack of examples). I’ve managed to setup an OpenLDAP-server and populate it with a few users and extensions.
However, I seem to be stuck with configuring pjsip.conf. I’ve configured the parameters in res_ldap.conf and extconfig.conf. For example, extconfig:
[settings]
sipusers => ldap,"ou=users,ou=asterisk,dc=internal,dc=xx,dc=be",sip
sippeers => ldap,"ou=users,ou=asterisk,dc=internal,dc=xx,dc=be",sip
extensions => ldap,"ou=extensions,ou=asterisk,dc=internal,dc=xx,dc=be",extensions
And this in extensions.conf:
[internal]
switch => Realtime/@
When I try to login with a simple sip client, it fails:
failed for ‘172.16.81.239:5060’ (callid: ca85b90d0f34d1bda374fe1a99949aa3@0:0:0:0:0:0:0:0) - No matching endpoint found
When I list the endpoints:
*CLI> pjsip show endpoints
Endpoint: default Unknown 0 of inf
Transport: transport-udp udp 0 0 0.0.0.0:5060
as well as another number that I manually configured in pjsip.conf.
Is it possible to populate these numbers from the LDAP? It doesn’t seem to try to fetch them at all…