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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Thu Jul 12 17:15:54 CDT 2018


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

Friendly Automation commented on ASTERISK-22825:
------------------------------------------------

Change 9375 merged by George Joseph:
res_parking: Add dialplan function for lot channel

[https://gerrit.asterisk.org/9375|https://gerrit.asterisk.org/9375]

> 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