From: zuul Date: Tue, 29 Mar 2016 13:53:45 +0000 (-0500) Subject: Merge "res_parking: Misc fixes." into 13 X-Git-Tag: 13.9.0-rc1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3528a9a42e82d1fd6e07ef0b591fa3c81baec3fb;p=thirdparty%2Fasterisk.git Merge "res_parking: Misc fixes." into 13 --- 3528a9a42e82d1fd6e07ef0b591fa3c81baec3fb diff --cc res/parking/parking_applications.c index 142432a8bc,1bdb50fab9..99999c9e2d --- a/res/parking/parking_applications.c +++ b/res/parking/parking_applications.c @@@ -496,9 -462,8 +503,8 @@@ struct ast_bridge *park_common_setup(st lot = parking_lot_find_by_name(lot_name); if (!lot) { - lot = parking_create_dynamic_lot(lot_name, parkee); + lot = parking_create_dynamic_lot(lot_name, parker); } - if (!lot) { ast_log(LOG_ERROR, "Could not find parking lot: '%s'\n", lot_name); return NULL; diff --cc res/parking/parking_bridge_features.c index 588b5554fe,ab0ea6f44a..b4884dbfb6 --- a/res/parking/parking_bridge_features.c +++ b/res/parking/parking_bridge_features.c @@@ -236,9 -236,9 +236,10 @@@ static struct ast_channel *park_local_t /* Before we actually dial out let's inherit appropriate information. */ ast_channel_lock_both(parker, parkee); ast_channel_req_accountcodes(parkee, parker, AST_CHANNEL_REQUESTOR_REPLACEMENT); + ast_channel_parkinglot_set(parkee, ast_channel_parkinglot(parker)); ast_connected_line_copy_from_caller(ast_channel_connected(parkee), ast_channel_caller(parker)); ast_channel_inherit_variables(parker, parkee); + ast_bridge_set_transfer_variables(parkee, ast_channel_name(parker), 0); ast_channel_datastore_inherit(parker, parkee); ast_channel_unlock(parker);