From be08f9a6e52ff33d70f8eb649acb053e60fb652d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 May 2010 13:17:39 +0000 Subject: [PATCH] Updated gofon extension entries -Some applications were outdated and had to be replace git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18383 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_phoneConferenceGeneric.inc | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc index 399a3aef8..910d2587b 100644 --- a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc +++ b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc @@ -503,7 +503,7 @@ class conference extends plugin $EXT[$i]['context'] = $context; $EXT[$i]['priority']= $i; $EXT[$i]['app'] ="Set"; - $EXT[$i]['appdata'] ="LANGUAGE()=".$this->language; + $EXT[$i]['appdata'] ="CHANNEL(language)=".$this->language; $i++; // Recordingformat for conference @@ -511,7 +511,7 @@ class conference extends plugin $EXT[$i]['exten'] =$this->telephoneNumber; $EXT[$i]['context'] =$context; $EXT[$i]['priority']= $i; - $EXT[$i]['app'] ="Setvar"; + $EXT[$i]['app'] ="Set"; $EXT[$i]['appdata'] ="MEETME_RECORDINGFORMAT=".$this->goFonConferenceOptionFormat; $i++; } @@ -552,7 +552,7 @@ class conference extends plugin } $i++; - // Hanup command + // Hangup command $EXT[$i]['exten'] =$this->telephoneNumber; $EXT[$i]['context'] =$context; $EXT[$i]['priority']=$i; @@ -561,12 +561,13 @@ class conference extends plugin $i++; // Map name to number - $EXT[$i]['exten'] =$this->cn; - $EXT[$i]['context'] =$context; - $EXT[$i]['priority']=1; - $EXT[$i]['app'] ="Goto"; - $EXT[$i]['appdata'] =$this->telephoneNumber."|1"; - + if($this->cn != $this->telephoneNumber){ + $EXT[$i]['exten'] =$this->cn; + $EXT[$i]['context'] =$context; + $EXT[$i]['priority']=1; + $EXT[$i]['app'] ="Goto"; + $EXT[$i]['appdata'] =$this->telephoneNumber."|1"; + } foreach($EXT as $keytop => $valtop){ $s_keys = ""; @@ -580,8 +581,6 @@ class conference extends plugin $SQL[]="INSERT INTO ".$cfg_Current['EXT_TABLE']." (".$s_keys.") VALUES (".$s_values.");"; } - - /* Start transaction, to be able to rollback */ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,"---Updating/Inserting entries---",""); -- 2.30.2