[Asterisk-code-review] res parking: Fix DTMF one-touch parking creating dynamic lots. (asterisk[13])
Richard Mudgett
asteriskteam at digium.com
Fri Mar 25 18:10:29 CDT 2016
Richard Mudgett has uploaded a new change for review.
https://gerrit.asterisk.org/2469
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/69/2469/1
diff --git a/res/parking/parking_bridge_features.c b/res/parking/parking_bridge_features.c
index a21be90..b333888 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(parking_get_module_info()->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/2469
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I221d3a8fcc181877a1158d17004474d35d8016c9
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-code-review
mailing list