search for: 765cb198

Displaying 2 results from an estimated 2 matches for "765cb198".

2020 Feb 13
0
Help with FUNC_MATH
...a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. ---Heinlein -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20200213/765cb198/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