I am currently having an issue with asterisk running ARI applications, where if asterisk has just started or been restarted the application doesn’t load properly and cannot catch states giving the below error before creating the stasis app.
[2016-05-17 10:02:07] WARNING: res_stasis.c:1446 find_app_by_name: Could not find app 'ARI-Metric-App' [2016-05-17 10:02:07] WARNING: res_stasis.c:1446 find_app_by_name: Could not find app 'ARI-Metric-App' Creating Stasis app 'ARI-Metric-App' == WebSocket connection from '[::1]:41165' for protocol '' accepted using version '13' Activating Stasis app 'ARI-Metric-App'
Am not sure if modules are loading slowly, or if asterisk needs to be up a certain amount of time before stasis applications work accordingly and even after 20 odd minutes it could still not connect.
On my local VM this isn’t an issue because it doesn’t take that long for the modules to load I think and my stasis apps work grand. But when moving it and trying it on another container and trying it it takes a long time and I find my self spamming the opening of the application and hoping it works accordingly so states can be caught.
Anyone advise on the issue, is it how modules are being loaded or does asterisk need to up a certain amount of time?