summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1fdedd4)
raw | patch | inline | side by side (parent: 1fdedd4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Mar 2009 14:13:00 +0000 (14:13 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Mar 2009 14:13:00 +0000 (14:13 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13504 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc
index ee017050f1ba085bba2108194133c55ba5fac205..32eaed95793cdda41bdc5405d9d805ae73ce5e4d 100644 (file)
$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;
$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;
$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{
}
$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 = "";