[asterisk-bugs] [JIRA] (ASTERISK-22825) Dialplan Function for Checking Parking Lot Slot

Joshua Elson (JIRA) noreply at issues.asterisk.org
Fri Jul 6 17:06:54 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=244033#comment-244033 ] 

Joshua Elson commented on ASTERISK-22825:
-----------------------------------------

I went ahead and provided first version of this patch, which I believe should have linked itself.

Not totally sure on ideal placement in the res_parking code and whether all conventions were properly followed. Totally open to changing this any way you guys see fit.

> Dialplan Function for Checking Parking Lot Slot
> -----------------------------------------------
>
>                 Key: ASTERISK-22825
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22825
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Features/Parking
>    Affects Versions: 11.5.1
>            Reporter: JoshE
>            Assignee: JoshE
>              Labels: patch
>         Attachments: checkparking_patch.diff, checkparkingslotandchannel.diff, checkparkingslotandchannel_v2.diff
>
>
> This is a simple patch to add a function for CHECKPARKINGSLOT.  It takes an extension and a parking lot and returns 1 if the parking slot is occupied.  Zero if the slot is empty or the lot doesn't exist.
> Example here:
> {noformat}
> exten => s,1,Set(IS_SLOT_FULL=${CHECKPARKINGSLOT(${EXTEN},park_lot)})
> same => n,NoOp(Parking Lot Status is ${IS_SLOT_FULL})
> {noformat}
> Not sure if it helps anyone else, but it was useful for me.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list