aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorlmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-22 21:16:12 +0000
committerlmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-22 21:16:12 +0000
commit3f9564c7be41422b62cedad9e3e99a1d35f8e616 (patch)
treef0c2bd41c4828a9a39ad1324af993ac9387efc34 /channels
parentd2d9df15a658a6cd7af2a330c9bdc7966530c590 (diff)
Update the LDIF file for LDAP.
The LDIF file asterisk.ldif was quite a bit out of date from the asterisk.ldap-schema file, so I've now updated that to be in sync. The asterisk.ldif file being out of sync was a problem on my systems where I was doing an ldapadd to import the schema into the LDAP database, and the existing file would cause problems and ERROR messages when registering. Additional documention has been added based on feedback in the issue I'm closing. (closes issue #13861) Reported by: scramatte Patches: ldap-update.txt uploaded by lmadsen (license 10) Tested by: lmadsen, jcovert, suretec, rgenthner git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@292786 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2e8cfe230..8ffc323df 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4622,6 +4622,12 @@ static void realtime_update_peer(const char *peername, struct sockaddr_in *sin,
else if (sip_cfg.rtsave_sysname)
syslabel = "regserver";
+ /* XXX IMPORTANT: Anytime you add a new parameter to be updated, you
+ * must also add it to contrib/scripts/asterisk.ldap-schema,
+ * contrib/scripts/asterisk.ldif,
+ * and to configs/res_ldap.conf.sample as described in
+ * bugs 15156 and 15895
+ */
if (fc) {
ast_update_realtime(tablename, "name", peername, "ipaddr", ipaddr,
"port", port, "regseconds", regseconds,