Răsfoiți Sursa

Add Other options to the list of destinations.

markjcrane 10 ani în urmă
părinte
comite
253e737631
1 a modificat fișierele cu 18 adăugiri și 0 ștergeri
  1. 18 0
      resources/classes/destinations.php

+ 18 - 0
resources/classes/destinations.php

@@ -82,6 +82,24 @@ class destinations {
 				}
 				$x++;
 			}
+			$this->destinations[$x]['type'] = 'array';
+			$this->destinations[$x]['label'] = 'other';
+			$this->destinations[$x]['name'] = 'dialplan';
+			$this->destinations[$x]['result']['field']['name'] = "name";
+			$this->destinations[$x]['result']['field']['destination'] = "destination";
+			$this->destinations[$x]['select_value']['dialplan'] = "transfer:\${destination}";
+			$this->destinations[$x]['select_value']['ivr'] = "menu-exec-app:transfer \${destination}";
+			$this->destinations[$x]['select_label'] = "\$name";
+			$y = 0;
+			$this->destinations[$x]['result']['data'][$y]['name'] = 'check_voicemail';
+			$this->destinations[$x]['result']['data'][$y]['destination'] = '*98 XML ${context}';
+			$y++;
+			$this->destinations[$x]['result']['data'][$y]['name'] = 'company_directory';
+			$this->destinations[$x]['result']['data'][$y]['destination'] = '*411 XML ${context}';
+			$y++;
+			$this->destinations[$x]['result']['data'][$y]['name'] = 'record';
+			$this->destinations[$x]['result']['data'][$y]['destination'] = '*732 XML ${context}';
+			$y++;
 	}
 
 	/**