res_parking: Automatically generate extensions, hints, etc.
[asterisk/asterisk.git] / res / parking / parking_bridge.c
index 31789d8..56e51fc 100644 (file)
@@ -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);
 
                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;
 }
 
        return 0;
 }
 
@@ -328,6 +330,8 @@ static void bridge_parking_pull(struct ast_bridge_parking *self, struct ast_brid
        }
        ao2_unlock(pu);
 
        }
        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
        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