[Asterisk-code-review] res parking: Stop setting the deprecated PARKINGSLOT channel... (asterisk[master])

Sean Bright asteriskteam at digium.com
Thu Oct 18 14:52:23 CDT 2018


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/10512


Change subject: res_parking: Stop setting the deprecated PARKINGSLOT channel variable.
......................................................................

res_parking: Stop setting the deprecated PARKINGSLOT channel variable.

Change-Id: Ia155ce2a53d61556aa4685524d1b48cfacfa3a8b
---
M UPGRADE.txt
M configs/samples/res_parking.conf.sample
M res/parking/parking_bridge_features.c
M res/res_parking.c
4 files changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/12/10512/1

diff --git a/UPGRADE.txt b/UPGRADE.txt
index b7bbf3b..bacff03 100644
--- a/UPGRADE.txt
+++ b/UPGRADE.txt
@@ -25,3 +25,7 @@
 === UPGRADE-16.txt  -- Upgrade info for 15 to 16
 ===========================================================
 
+From 16 to 17:
+
+* The PARKINGSLOT channel variable, deprecated in Asterisk 12 in favor of the
+  PARKING_SPACE channel variable, will no longer be set.
diff --git a/configs/samples/res_parking.conf.sample b/configs/samples/res_parking.conf.sample
index e13f780..2e0beba 100644
--- a/configs/samples/res_parking.conf.sample
+++ b/configs/samples/res_parking.conf.sample
@@ -102,7 +102,7 @@
                                 ;         Dial() to 'SIP/0004F2040001'.
                                 ;
                                 ; During the timeout procedure, the following variables are set
-                                ; PARKINGSLOT - extension that the call was parked in prior to timing out
+                                ; PARKING_SPACE - extension that the call was parked in prior to timing out
                                 ; PARKEDLOT - name of the lot that the call was parked in prior to timing out
                                 ; PARKER - dial string to call the device that parked the call
 
diff --git a/res/parking/parking_bridge_features.c b/res/parking/parking_bridge_features.c
index cbc23fa..f73f371 100644
--- a/res/parking/parking_bridge_features.c
+++ b/res/parking/parking_bridge_features.c
@@ -603,7 +603,6 @@
 	ast_channel_lock(chan);
 	ast_channel_stage_snapshot(chan);
 	pbx_builtin_setvar_helper(chan, "PARKING_SPACE", parking_space);
-	pbx_builtin_setvar_helper(chan, "PARKINGSLOT", parking_space); /* Deprecated version of PARKING_SPACE */
 	pbx_builtin_setvar_helper(chan, "PARKEDLOT", user->lot->name);
 	pbx_builtin_setvar_helper(chan, "PARKER", dial_string);
 	pbx_builtin_setvar_helper(chan, "PARKER_FLAT", dial_string_flat);
diff --git a/res/res_parking.c b/res/res_parking.c
index 5d1b30c..fa76c48 100644
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -149,9 +149,6 @@
 							<variable name="PARKING_SPACE">
 								<para>extension that the call was parked in prior to timing out.</para>
 							</variable>
-							<variable name="PARKINGSLOT">
-								<para>Deprecated.  Use <variable>PARKING_SPACE</variable> instead.</para>
-							</variable>
 							<variable name="PARKEDLOT">
 								<para>name of the lot that the call was parked in prior to timing out.</para>
 							</variable>

-- 
To view, visit https://gerrit.asterisk.org/10512
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia155ce2a53d61556aa4685524d1b48cfacfa3a8b
Gerrit-Change-Number: 10512
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181018/9306c394/attachment-0001.html>


More information about the asterisk-code-review mailing list