Displaying 2 results from an estimated 2 matches for "67c7e7f3".
2020 Feb 13
0
Help with FUNC_MATH
...am_pm_select:3] NoOp("SIP/204.145.219.31-000081c6", "AFTER CHECK HOUR_SELECTED IS 24") in new stack
TIA.
Dovid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200213/67c7e7f3/attachment.html>
2020 Feb 13
4
Help with FUNC_MATH
Hi,
I have some dialplan code that is trying to convert 12 hour time with AM/PM
to 24 hour format. The code has something like this:
Exten =>
2,1,ExecIf(${MATH(${HOUR_SELECTED}<12)}?Set(HOUR_SELECTED=${MATH(${HOUR_SELECTED}+12,int)}))
Earlier on in the dialplan HOUR_SELECTED is set to 12. When they press
option 2 they are selecting PM. If the time is from 1PM to 11PM then I want
to add 12