I want to use asterisk to create a REST API interface that will generate phone calls according to a delivered JSON like the following-
{
"recipient": "+88001122334455",
"callId": "ABCD1234",
"meta": {
"superImportantMeta": "Very Important meta Info",
"anotherSuperCriticalMetaInfo": "hello meta info"
},
"callbackOnFailed": "https://webhook.ht/api/v2/call-jay-nai",
"callbackOnFailedMethod": "PUT",
"callbackOnFailedPayload": {
"customMeta": "Loren Ipsum",
"anotherCustomMeta": "Neque ornare"
},
"callFlow": [
{
"text": "This is the root of the call. Do you want to proceed? If you agree, press 1, If you decline, press 2",
"options": [
{
"onPress": "1",
"callback": "https://webhook.ht/api/v2/ja-iccha-tai",
"callbackMethod": "POST",
"callbackPayload": {
"callID": "ABCD1234"
},
"callFlow": {
"text": "This is a level 2 call. Press * to accept and # to decline",
"options": [
{
"onPress": "*",
"callback": "https://webhook.ht/api/v2/ja-iccha-tai",
"callbackMethod": "POST",
"callbackPayload": {
"callID": "ABCD1234"
}
},
{
"onPress": "#",
"callback": "https://webhook.ht/api/v2/ja-iccha-tai",
"callbackMethod": "POST",
"callbackPayload": {
"callID": "ABCD1234"
}
}
]
}
}
]
}
]
}
I have been looking for resources to get myself started on the project with asterisk. But, unfortunately, I can not find enough resources for a clean start. All the asterisk terminologies seem very new to me and a clear step-by-step guide would be very helpful.