From 078cef0a781632aaaed1500969b5e9e8f640859a Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 9 Aug 2015 11:20:08 -0600 Subject: [PATCH] Add Other options to the list of destinations. --- resources/classes/destinations.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/resources/classes/destinations.php b/resources/classes/destinations.php index 29e72e2f2f..962d2fb9a3 100644 --- a/resources/classes/destinations.php +++ b/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++; } /**