If you need to talk to external API and parse JSON in Asterisk dialplan you will need res_json installed. Unfortunately it’s not bundled in Asterisk installation yet but here is how you can install res_json in Asterisk:
Tag: dialplan
Mar 30 2019
Calculate Difference between two Time Values in Asterisk Dialplan
For calculating the difference between two times in Asterisk dialplan, the time values should be converted to an epoch value first. This can be done using the asterisk function STRFTIME. Use the below dialplan to convert current time to an epoch value Set(time=${STRFTIME(${EPOCH},,%s)})