Tag: dialplan

Parse JSON in Asterisk: how to install res_json

res_json-Makefile

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:

Continue reading

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)})

Continue reading