From: hickert Date: Fri, 6 Mar 2009 14:13:00 +0000 (+0000) Subject: Updated extension entries for conferences. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8adfeb00ae4d8fb225890f6a69826416f81e3103;p=gosa.git Updated extension entries for conferences. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13504 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc index ee017050f..32eaed957 100644 --- a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc +++ b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc @@ -494,9 +494,28 @@ class conference extends plugin $parameter .= $this->$attrs; } + /* + * ringing + * set language()=... + * wait 2 + * answer + * wait 2 + * meetme... + * hangup + * */ + $i=1; $EXT=array(); $context="GOsa"; + + // Ringing + $EXT[$i]['exten'] =$this->telephoneNumber; + $EXT[$i]['context'] =$context; + $EXT[$i]['priority']=$i; + $EXT[$i]['app'] ="ringing"; + $EXT[$i]['appdata'] =""; + $i++; + // Set Language to German $EXT[$i]['exten'] =$this->telephoneNumber; $EXT[$i]['context'] = $context; @@ -505,18 +524,24 @@ class conference extends plugin $EXT[$i]['appdata'] ="LANGUAGE()=".$this->language; $i++; + // Recordingformat for conference if($this->goFonConferenceOption_r == "r"){ - - // Recordingformat for conference $EXT[$i]['exten'] =$this->telephoneNumber; $EXT[$i]['context'] =$context; $EXT[$i]['priority']= $i; $EXT[$i]['app'] ="Setvar"; $EXT[$i]['appdata'] ="MEETME_RECORDINGFORMAT=".$this->goFonConferenceOptionFormat; $i++; - } + // Wait for 2 seconds + $EXT[$i]['exten'] =$this->telephoneNumber; + $EXT[$i]['context'] =$context; + $EXT[$i]['priority']=$i; + $EXT[$i]['app'] ="wait"; + $EXT[$i]['appdata'] ="2"; + $i++; + // Answer Call $EXT[$i]['exten'] =$this->telephoneNumber; $EXT[$i]['context'] =$context; @@ -525,12 +550,19 @@ class conference extends plugin $EXT[$i]['appdata'] =""; $i++; + // Wait for 2 seconds + $EXT[$i]['exten'] =$this->telephoneNumber; + $EXT[$i]['context'] =$context; + $EXT[$i]['priority']=$i; + $EXT[$i]['app'] ="wait"; + $EXT[$i]['appdata'] ="2"; + $i++; + // Start Conference $EXT[$i]['exten'] =$this->telephoneNumber; $EXT[$i]['context'] =$context; $EXT[$i]['priority']=$i; $EXT[$i]['app'] ="MeetMe"; - if(empty($this->goFonPIN)) { $EXT[$i]['appdata'] =$this->telephoneNumber."|".$parameter; }else{ @@ -538,14 +570,23 @@ class conference extends plugin } $i++; - // Start Conference + // Hanup command + $EXT[$i]['exten'] =$this->telephoneNumber; + $EXT[$i]['context'] =$context; + $EXT[$i]['priority']=$i; + $EXT[$i]['app'] ="hangup"; + $EXT[$i]['appdata'] =""; + $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"; - $SQL=array(); + + $SQL=array(); foreach($EXT as $keytop => $valtop){ $s_keys = ""; $s_values = "";