Code

Added tablename for asterisk voicemail
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Aug 2005 13:42:28 +0000 (13:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Aug 2005 13:42:28 +0000 (13:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1036 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index 5721b58aa31c45f1bb11de0653e3f85bc5d02982..8dbf2f3390b62e92a4e1b44c585636a184628147 100644 (file)
@@ -346,9 +346,14 @@ class config  {
        $ldap->search ("(objectClass=goFonServer)");
        if ($ldap->count()){
                $attrs= $ldap->fetch();
-               $this->data['SERVERS']['FON']= array( 'SERVER' => $attrs['cn'][0],
-                                               'LOGIN' => $attrs['goFonAdmin'][0],
-                                               'PASSWORD' => $attrs['goFonPassword'][0]);
+               $this->data['SERVERS']['FON']= array( 
+                                               'SERVER'        => $attrs['cn'][0],
+                                               'LOGIN'         => $attrs['goFonAdmin'][0],
+                                               'PASSWORD'      => $attrs['goFonPassword'][0],
+                                               'DB'            => "gophone",
+                                               'SIP_TABLE'             => "sip_users",
+                                               'EXT_TABLE'     => "extensions",
+                                               'VOICE_TABLE'   => "voicemail_users");
        }
        /* Get logdb server */
        $ldap->cd ($this->current['BASE']);