How can I detect busy signal when using ARI channel.originate


Im using the nodejs ari-client for my application

I’m using channel.originate to call a PSTN number. Im using ChannelStateChange to detect when the state changes to “Ringing”…I then use on.‘ChannelDestroyed’ to detect when the outbound channel hangs up.

This is all working fine, however I need to detect when the call to a PSTN number is Busy or fails for some other reason ?

I’m fairly new working with the ari-client so apologies if this is a basic question.