Closed TomDmitriev closed 7 years ago
Here is what I've found in asterisk logs
[Dec 9 11:34:08] WARNING[7335] res_stasis.c: Could not find app 'hello-world' [Dec 9 11:34:08] ERROR[7336] res_stasis.c: Stasis app 'hello-world' not registered
Apparently, client.channels.create is executed before the app actually starts. But how can I ensure that it has started apart from using setTimeout or something like that?
client.start returns a Promise. Solved.
Surprisingly, I haven't found an example of this. Here is how I am doing it
Which usually works, i.e. I get a phone call on +79991111111 but sometimes instead I get the following error
This is the context from extensions.conf
What am doing wrong?