Добавление схемы:
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/asterisk.ldif
Источники схемы:
#!/bin/sh LDAP_Host="ldap" LDAP_Port="389" LDAP_BaseDN="dc=domain" num=$agi_callerid CIDNAME=`ldapsearch -h "$LDAP_Host" -p $LDAP_Port -x -b "$LDAP_BaseDN" -LLL "(&(|(mobile=$num)(|(telephoneNumber=$num)) (|(homePhone=$num)) ) )" cn |\ grep ^cn::\ |awk '{print $2}' |\ base64 -d` #echo $CIDNAME if [ "$CIDNAME" = "" ] then exit 0; else. echo "SET CALLERID \"$CIDNAME\"<$agi_callerid>" fi exit 0;
Asterisk caller id lookup via LDAP to a Domino Directory
Asterisk Realtime LDAP драйвер
Asterisk Realtime Lightweight Directory Access Protocol (LDAP) Driver
http://svn.asterisk.org/svn/asterisk/trunk/contrib/scripts/asterisk.ldap-schema
http://svn.asterisk.org/svn/asterisk/trunk/contrib/scripts/asterisk.ldif
Asterisk: The Definitive Guide, Chapter 18. External Services: LDAP Integration