summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 03eb70b)
raw | patch | inline | side by side (parent: 03eb70b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 8 Aug 2005 05:42:34 +0000 (05:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 8 Aug 2005 05:42:34 +0000 (05:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1070 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/class_phonequeue.inc | patch | blob | history |
diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc
index d524a7bb29ea3504506effb18c32621f0112667e..1e7c6cdd3f648a8bb4023db4917da80947bcdddc 100644 (file)
$message[] = $this->generate_mysql_entension_entries();
}
- if(!is_numeric($this->goFonTimeOut)){
+ if(!((is_numeric($this->goFonTimeOut))||(empty($this->goFonTimeOut)))){
$message[] = _("Timeout must be numeric");
}
- if(!is_numeric($this->goFonMaxLen)){
+ if(!((is_numeric($this->goFonMaxLen))||(empty($this->goFonMaxLen)))){
$message[] = _("Queue length must be numeric");
}
- if(!is_numeric($this->goFonAnnounceFrequency)){
+ if(!((is_numeric($this->goFonAnnounceFrequency))||(empty($this->goFonAnnounceFrequency)))){
$message[] = _("Announce frequency must be numeric");
}
if(count($this->telephoneNumber)==0){
/* generate Extension entries, with priority */
$i = 0;
foreach($this->telephoneNumber as $num){
+
$prio --;
$a_ext[$i]['context'] = 'GOsa';
$a_ext[$i]['exten'] = $num;
$a_ext[$i]['priority'] = 1;
- $a_ext[$i]['app'] = "SetLanguage";
- $a_ext[$i]['appdata'] = $this->goFonLanguage;
+ $a_ext[$i]['app'] = "Wait";
+ $a_ext[$i]['appdata'] = "2";
$i ++ ;
$a_ext[$i]['context'] = 'GOsa';
$a_ext[$i]['exten'] = $num;
$a_ext[$i]['priority'] = 2;
+ $a_ext[$i]['app'] = "Set";
+ $a_ext[$i]['appdata'] = "LANGUAGE|".$this->goFonLanguage;
+ $i ++ ;
+ $a_ext[$i]['context'] = 'GOsa';
+ $a_ext[$i]['exten'] = $num;
+ $a_ext[$i]['priority'] = 3;
$a_ext[$i]['app'] = "Playback";
$a_ext[$i]['appdata'] = $this->goFonWelcomeMusic;
$i ++ ;
$a_ext[$i]['context'] = 'GOsa';
$a_ext[$i]['exten'] = $num;
- $a_ext[$i]['priority'] = 3;
+ $a_ext[$i]['priority'] = 4;
$a_ext[$i]['app'] = "SetCIDName";
$a_ext[$i]['appdata'] = $this->attrs['description'][0];
$i ++ ;
$a_ext[$i]['context'] = 'GOsa';
$a_ext[$i]['exten'] = $num;
- $a_ext[$i]['priority'] = 4;
+ $a_ext[$i]['priority'] = 5;
$a_ext[$i]['app'] = "Queue";
$a_ext[$i]['appdata'] = $this->attrs['cn'][0].
"|".
$i ++ ;
$a_ext[$i]['context'] = 'GOsa';
$a_ext[$i]['exten'] = $num;
- $a_ext[$i]['priority'] = 5;
+ $a_ext[$i]['priority'] = 6;
$a_ext[$i]['app'] = "SetVar";
$a_ext[$i]['appdata'] = "Queue_Prio=".$prio;
$i ++ ;