X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=res%2Fparking%2Fparking_bridge.c;h=56e51fc9ee518ac8554d03de6ed8936933373dab;hp=31789d8d5a68744e6cd42b0bd28ed4ca9dc57e0d;hb=8954661207d94e88ec18d9d9854c8a49d27b8ce9;hpb=bec2d7948419761c082c7965e847ae4961ee1e27;ds=sidebyside diff --git a/res/parking/parking_bridge.c b/res/parking/parking_bridge.c index 31789d8..56e51fc 100644 --- a/res/parking/parking_bridge.c +++ b/res/parking/parking_bridge.c @@ -290,6 +290,8 @@ static int bridge_parking_push(struct ast_bridge_parking *self, struct ast_bridg COLORIZE(COLOR_BRMAGENTA, 0, self->lot->name), pu->parking_space); + parking_notify_metermaids(pu->parking_space, self->lot->cfg->parking_con, AST_DEVICE_INUSE); + return 0; } @@ -328,6 +330,8 @@ static void bridge_parking_pull(struct ast_bridge_parking *self, struct ast_brid } ao2_unlock(pu); + parking_notify_metermaids(pu->parking_space, self->lot->cfg->parking_con, AST_DEVICE_NOT_INUSE); + switch (pu->resolution) { case PARK_UNSET: /* This should be impossible now since the resolution is forcibly set to abandon if it was unset at this point. Resolution