]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
parking: Copy parker UUID as well.
authorJoshua C. Colp <jcolp@sangoma.com>
Fri, 28 Aug 2020 09:29:23 +0000 (06:29 -0300)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 31 Aug 2020 17:21:40 +0000 (12:21 -0500)
When fixing issues uncovered by GCC10 a copy of the parker UUID
was removed accidentally. This change restores it so that the
subscription has the data it needs.

ASTERISK-29042

Change-Id: I7d396a14ea648bd26d3c363dd78e78bd386b544a

res/parking/parking_bridge_features.c

index 3b4e25b10c735cec74222c614afe1d80829f2208..5bcdb215cc6decdd7255a5acdfeabe253128d4e9 100644 (file)
@@ -212,6 +212,7 @@ static int create_parked_subscription_full(struct ast_channel *chan, const char
        subscription_data->hangup_after = hangup_after;
        subscription_data->parkee_uuid = subscription_data->parker_uuid + parker_uuid_size;
        ast_copy_string(subscription_data->parkee_uuid, parkee_uuid, parkee_uuid_size);
+       ast_copy_string(subscription_data->parker_uuid, parker_uuid, parker_uuid_size);
 
        if (!(parked_datastore->parked_subscription = stasis_subscribe_pool(ast_parking_topic(), parker_update_cb, subscription_data))) {
                return -1;