ARI - Node Js - External Call & ChannelStateChange issue


#1

Hi

I am working on a NodeJs IVR application using ari-client for Node.

The scenario is such person calls the IVR goes through various questions (all this is working) then the IVR calls an extension , if this person doesn’t pick up after 15 seconds it calls a mobile number, if this doesn’t answer then it calls the next person the list etc etc.

My code can be found here:

https://pastebin.com/qhyczQSV

The problem i am having is for the mobile number when it starts to ring it never enters the ChannelStateChange method at all. Only when either i pick it up or the answer machine answers it then it will enter that method.

I could be doing something wrong here but thought someone might have an idea

Thanks