From af881804d44e923ce185dc9cc441102f706e95d1 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 18 Mar 2014 09:04:05 +0000 Subject: [PATCH] Fix the dialplan_number so that it is more accurate. --- app/dialplan/resources/classes/dialplan.php | 5 ++++- app/dialplan/resources/switch/conf/dialplan/000_global.xml | 2 +- .../resources/switch/conf/dialplan/110_call-direction.xml | 2 +- .../resources/switch/conf/dialplan/210_user_status.xml | 2 +- .../resources/switch/conf/dialplan/220_global-intercept.xml | 2 +- .../resources/switch/conf/dialplan/230_group-intercept.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/240_redial.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/250_page.xml | 2 +- .../resources/switch/conf/dialplan/260_eavesdrop.xml | 2 +- .../resources/switch/conf/dialplan/270_call_privacy.xml | 2 +- .../resources/switch/conf/dialplan/280_call_return.xml | 4 ++-- .../resources/switch/conf/dialplan/290_intercept-ext.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/300_dx.xml | 2 +- .../switch/conf/dialplan/300_extension-intercom.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/310_att_xfer.xml | 2 +- .../resources/switch/conf/dialplan/310_send_to_voicemail.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/320_vmain.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/320_xfer_vm.xml | 2 +- .../resources/switch/conf/dialplan/330_is_transfer.xml | 2 +- .../resources/switch/conf/dialplan/330_vmain_user.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/340_cf.xml | 2 +- .../resources/switch/conf/dialplan/340_delay_echo.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/350_echo.xml | 2 +- .../resources/switch/conf/dialplan/350_please_hold.xml | 2 +- .../resources/switch/conf/dialplan/360_is_zrtp_secure.xml | 2 +- .../resources/switch/conf/dialplan/360_milliwatt.xml | 2 +- .../resources/switch/conf/dialplan/370_is_secure.xml | 2 +- .../resources/switch/conf/dialplan/370_tone_stream.xml | 2 +- .../resources/switch/conf/dialplan/380_hold_music.xml | 2 +- .../resources/switch/conf/dialplan/400_recordings.xml | 2 +- .../switch/conf/dialplan/410_freeswitch_conference.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/420_disa.xml | 2 +- .../resources/switch/conf/dialplan/430_directory.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/440_wake-up.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/450_park_in.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/455_park_out.xml | 4 ++-- .../resources/switch/conf/dialplan/460_park_slots.xml | 4 ++-- .../resources/switch/conf/dialplan/470_valet_park.xml | 2 +- app/dialplan/resources/switch/conf/dialplan/480_operator.xml | 2 +- .../resources/switch/conf/dialplan/485_operator-forward.xml | 2 +- .../resources/switch/conf/dialplan/490_do-not-disturb.xml | 2 +- .../resources/switch/conf/dialplan/999_local_extension.xml | 2 +- 42 files changed, 48 insertions(+), 45 deletions(-) diff --git a/app/dialplan/resources/classes/dialplan.php b/app/dialplan/resources/classes/dialplan.php index eb38ac4d89..0a04cae95e 100644 --- a/app/dialplan/resources/classes/dialplan.php +++ b/app/dialplan/resources/classes/dialplan.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2010 + Copyright (C) 2010-2014 All Rights Reserved. Contributor(s): @@ -64,6 +64,7 @@ include "root.php"; $sql .= "app_uuid, "; $sql .= "dialplan_uuid, "; $sql .= "dialplan_name, "; + $sql .= "dialplan_number, "; $sql .= "dialplan_continue, "; $sql .= "dialplan_order, "; $sql .= "dialplan_context, "; @@ -76,6 +77,7 @@ include "root.php"; $sql .= "'".check_str($this->app_uuid)."', "; $sql .= "'".check_str($this->dialplan_uuid)."', "; $sql .= "'".check_str($this->dialplan_name)."', "; + $sql .= "'".check_str($this->dialplan_number)."', "; $sql .= "'".check_str($this->dialplan_continue)."', "; $sql .= "'".check_str($this->dialplan_order)."', "; $sql .= "'".check_str($this->dialplan_context)."', "; @@ -277,6 +279,7 @@ include "root.php"; //get the attributes $this->dialplan_uuid = uuid(); $this->dialplan_name = $dialplan['extension']['@attributes']['name']; + $this->dialplan_number = $dialplan['extension']['@attributes']['number']; $this->dialplan_context = $dialplan['@attributes']['name']; if ($this->display_type == "text") { echo " ".$this->dialplan_name.": added\n"; diff --git a/app/dialplan/resources/switch/conf/dialplan/000_global.xml b/app/dialplan/resources/switch/conf/dialplan/000_global.xml index 08803eba76..5da2464730 100644 --- a/app/dialplan/resources/switch/conf/dialplan/000_global.xml +++ b/app/dialplan/resources/switch/conf/dialplan/000_global.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/110_call-direction.xml b/app/dialplan/resources/switch/conf/dialplan/110_call-direction.xml index c52e845880..49174ded58 100644 --- a/app/dialplan/resources/switch/conf/dialplan/110_call-direction.xml +++ b/app/dialplan/resources/switch/conf/dialplan/110_call-direction.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/210_user_status.xml b/app/dialplan/resources/switch/conf/dialplan/210_user_status.xml index 21d514cb99..ee4d7812f6 100644 --- a/app/dialplan/resources/switch/conf/dialplan/210_user_status.xml +++ b/app/dialplan/resources/switch/conf/dialplan/210_user_status.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/220_global-intercept.xml b/app/dialplan/resources/switch/conf/dialplan/220_global-intercept.xml index 443576ab7c..781c3b16f3 100644 --- a/app/dialplan/resources/switch/conf/dialplan/220_global-intercept.xml +++ b/app/dialplan/resources/switch/conf/dialplan/220_global-intercept.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/230_group-intercept.xml b/app/dialplan/resources/switch/conf/dialplan/230_group-intercept.xml index e744e2c6f4..91288d5b7b 100644 --- a/app/dialplan/resources/switch/conf/dialplan/230_group-intercept.xml +++ b/app/dialplan/resources/switch/conf/dialplan/230_group-intercept.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/240_redial.xml b/app/dialplan/resources/switch/conf/dialplan/240_redial.xml index edf6219ca4..811a7ae9f1 100644 --- a/app/dialplan/resources/switch/conf/dialplan/240_redial.xml +++ b/app/dialplan/resources/switch/conf/dialplan/240_redial.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/250_page.xml b/app/dialplan/resources/switch/conf/dialplan/250_page.xml index e043988ff5..6d07fa27a3 100644 --- a/app/dialplan/resources/switch/conf/dialplan/250_page.xml +++ b/app/dialplan/resources/switch/conf/dialplan/250_page.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/260_eavesdrop.xml b/app/dialplan/resources/switch/conf/dialplan/260_eavesdrop.xml index b28b360344..4c855aa38d 100644 --- a/app/dialplan/resources/switch/conf/dialplan/260_eavesdrop.xml +++ b/app/dialplan/resources/switch/conf/dialplan/260_eavesdrop.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/270_call_privacy.xml b/app/dialplan/resources/switch/conf/dialplan/270_call_privacy.xml index 2dacde4d23..214a9ed73a 100644 --- a/app/dialplan/resources/switch/conf/dialplan/270_call_privacy.xml +++ b/app/dialplan/resources/switch/conf/dialplan/270_call_privacy.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/280_call_return.xml b/app/dialplan/resources/switch/conf/dialplan/280_call_return.xml index 8e27746418..4468abb431 100644 --- a/app/dialplan/resources/switch/conf/dialplan/280_call_return.xml +++ b/app/dialplan/resources/switch/conf/dialplan/280_call_return.xml @@ -1,6 +1,6 @@ - - + + diff --git a/app/dialplan/resources/switch/conf/dialplan/290_intercept-ext.xml b/app/dialplan/resources/switch/conf/dialplan/290_intercept-ext.xml index e1eb366b74..daf8982f93 100644 --- a/app/dialplan/resources/switch/conf/dialplan/290_intercept-ext.xml +++ b/app/dialplan/resources/switch/conf/dialplan/290_intercept-ext.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/300_dx.xml b/app/dialplan/resources/switch/conf/dialplan/300_dx.xml index f347aa4869..4e5a62bb0f 100644 --- a/app/dialplan/resources/switch/conf/dialplan/300_dx.xml +++ b/app/dialplan/resources/switch/conf/dialplan/300_dx.xml @@ -1,6 +1,6 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/300_extension-intercom.xml b/app/dialplan/resources/switch/conf/dialplan/300_extension-intercom.xml index 85bb44df27..5974238d1d 100644 --- a/app/dialplan/resources/switch/conf/dialplan/300_extension-intercom.xml +++ b/app/dialplan/resources/switch/conf/dialplan/300_extension-intercom.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/310_att_xfer.xml b/app/dialplan/resources/switch/conf/dialplan/310_att_xfer.xml index db5d0a118b..c03e90aa69 100644 --- a/app/dialplan/resources/switch/conf/dialplan/310_att_xfer.xml +++ b/app/dialplan/resources/switch/conf/dialplan/310_att_xfer.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/310_send_to_voicemail.xml b/app/dialplan/resources/switch/conf/dialplan/310_send_to_voicemail.xml index d2aaf41d20..e971ca8e8d 100644 --- a/app/dialplan/resources/switch/conf/dialplan/310_send_to_voicemail.xml +++ b/app/dialplan/resources/switch/conf/dialplan/310_send_to_voicemail.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/320_vmain.xml b/app/dialplan/resources/switch/conf/dialplan/320_vmain.xml index d4a272f079..e89d9723d9 100644 --- a/app/dialplan/resources/switch/conf/dialplan/320_vmain.xml +++ b/app/dialplan/resources/switch/conf/dialplan/320_vmain.xml @@ -1,6 +1,6 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/320_xfer_vm.xml b/app/dialplan/resources/switch/conf/dialplan/320_xfer_vm.xml index 60cc7fde85..e73a4ab493 100644 --- a/app/dialplan/resources/switch/conf/dialplan/320_xfer_vm.xml +++ b/app/dialplan/resources/switch/conf/dialplan/320_xfer_vm.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/330_is_transfer.xml b/app/dialplan/resources/switch/conf/dialplan/330_is_transfer.xml index b58a2a09e1..451c9ccc1c 100644 --- a/app/dialplan/resources/switch/conf/dialplan/330_is_transfer.xml +++ b/app/dialplan/resources/switch/conf/dialplan/330_is_transfer.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/330_vmain_user.xml b/app/dialplan/resources/switch/conf/dialplan/330_vmain_user.xml index 45b7c97f1b..ecba084983 100644 --- a/app/dialplan/resources/switch/conf/dialplan/330_vmain_user.xml +++ b/app/dialplan/resources/switch/conf/dialplan/330_vmain_user.xml @@ -1,6 +1,6 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/340_cf.xml b/app/dialplan/resources/switch/conf/dialplan/340_cf.xml index 8758de1855..3c85c817cb 100644 --- a/app/dialplan/resources/switch/conf/dialplan/340_cf.xml +++ b/app/dialplan/resources/switch/conf/dialplan/340_cf.xml @@ -1,6 +1,6 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/340_delay_echo.xml b/app/dialplan/resources/switch/conf/dialplan/340_delay_echo.xml index 04746d41ad..846dadd9f2 100644 --- a/app/dialplan/resources/switch/conf/dialplan/340_delay_echo.xml +++ b/app/dialplan/resources/switch/conf/dialplan/340_delay_echo.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/350_echo.xml b/app/dialplan/resources/switch/conf/dialplan/350_echo.xml index 90620e264d..ea10e07fef 100644 --- a/app/dialplan/resources/switch/conf/dialplan/350_echo.xml +++ b/app/dialplan/resources/switch/conf/dialplan/350_echo.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/350_please_hold.xml b/app/dialplan/resources/switch/conf/dialplan/350_please_hold.xml index 22056cc6ff..5ec366406d 100644 --- a/app/dialplan/resources/switch/conf/dialplan/350_please_hold.xml +++ b/app/dialplan/resources/switch/conf/dialplan/350_please_hold.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/360_is_zrtp_secure.xml b/app/dialplan/resources/switch/conf/dialplan/360_is_zrtp_secure.xml index 9d15b7cf7a..122dd7a29d 100644 --- a/app/dialplan/resources/switch/conf/dialplan/360_is_zrtp_secure.xml +++ b/app/dialplan/resources/switch/conf/dialplan/360_is_zrtp_secure.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/360_milliwatt.xml b/app/dialplan/resources/switch/conf/dialplan/360_milliwatt.xml index 5e4f957fdb..0fe5c52e0e 100644 --- a/app/dialplan/resources/switch/conf/dialplan/360_milliwatt.xml +++ b/app/dialplan/resources/switch/conf/dialplan/360_milliwatt.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/370_is_secure.xml b/app/dialplan/resources/switch/conf/dialplan/370_is_secure.xml index 7c23f2e61f..ae60c9b37a 100644 --- a/app/dialplan/resources/switch/conf/dialplan/370_is_secure.xml +++ b/app/dialplan/resources/switch/conf/dialplan/370_is_secure.xml @@ -1,6 +1,6 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/370_tone_stream.xml b/app/dialplan/resources/switch/conf/dialplan/370_tone_stream.xml index f37d6e0640..27f95e65af 100644 --- a/app/dialplan/resources/switch/conf/dialplan/370_tone_stream.xml +++ b/app/dialplan/resources/switch/conf/dialplan/370_tone_stream.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/380_hold_music.xml b/app/dialplan/resources/switch/conf/dialplan/380_hold_music.xml index 4e0b88ae67..ec850d8535 100644 --- a/app/dialplan/resources/switch/conf/dialplan/380_hold_music.xml +++ b/app/dialplan/resources/switch/conf/dialplan/380_hold_music.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/400_recordings.xml b/app/dialplan/resources/switch/conf/dialplan/400_recordings.xml index 2a7f09e429..7094f3e97a 100644 --- a/app/dialplan/resources/switch/conf/dialplan/400_recordings.xml +++ b/app/dialplan/resources/switch/conf/dialplan/400_recordings.xml @@ -1,5 +1,5 @@ - + diff --git a/app/dialplan/resources/switch/conf/dialplan/410_freeswitch_conference.xml b/app/dialplan/resources/switch/conf/dialplan/410_freeswitch_conference.xml index a557c0bdc0..b72a9ad2d8 100644 --- a/app/dialplan/resources/switch/conf/dialplan/410_freeswitch_conference.xml +++ b/app/dialplan/resources/switch/conf/dialplan/410_freeswitch_conference.xml @@ -1,5 +1,5 @@ - +