[Asterisk-code-review] res parking: Fix DTMF one-touch parking creating dynamic lots. (asterisk[master])
Richard Mudgett
asteriskteam at digium.com
Fri Mar 25 18:10:46 CDT 2016
Richard Mudgett has uploaded a new change for review.
https://gerrit.asterisk.org/2470
Change subject: res_parking: Fix DTMF one-touch parking creating dynamic lots.
......................................................................
res_parking: Fix DTMF one-touch parking creating dynamic lots.
* In feature_park_call(), don't remove the DTMF one-touch parking
hook because of an error.
ASTERISK-24605 #close
Reported by: Philip Correia
Patches:
call_park.patch (license #6672) patch uploaded by Philip Correia
Change-Id: I221d3a8fcc181877a1158d17004474d35d8016c9
---
M res/parking/parking_bridge_features.c
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/70/2470/1
diff --git a/res/parking/parking_bridge_features.c b/res/parking/parking_bridge_features.c
index 4cb87c8..a48a3a5 100644
--- a/res/parking/parking_bridge_features.c
+++ b/res/parking/parking_bridge_features.c
@@ -489,6 +489,9 @@
lot = parking_lot_find_by_name(lot_name);
if (!lot) {
+ lot = parking_create_dynamic_lot(lot_name, parker->chan);
+ }
+ if (!lot) {
ast_log(AST_LOG_WARNING, "Cannot Park %s: lot %s unknown\n",
ast_channel_name(parker->chan), lot_name);
return -1;
@@ -504,7 +507,8 @@
{
SCOPED_MODULE_USE(AST_MODULE_SELF);
- return parking_park_call(bridge_channel, NULL, 0);
+ parking_park_call(bridge_channel, NULL, 0);
+ return 0;
}
/*!
--
To view, visit https://gerrit.asterisk.org/2470
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I221d3a8fcc181877a1158d17004474d35d8016c9
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-code-review
mailing list