Ari, how to detect busy status (Got SIP response 486 "Busy Here")

Hi,

I am trying to use ARI to bridge channels with python, following the program in the link below
https://wiki.asterisk.org/wiki/display/AST/ARI+and+Bridges%3A+Basic+Mixing+Bridges

I am calling an extention, and if the extension is rejecting my call without answering that, how can i handle that in ARI.
In Asterisk CLI i am getting this message

SIP/101021-000000d0 is ringing
– Got SIP response 486 “Busy Here” back from 10.176.17.115:5060

Plz help.

You should receive the information in an event as a cause code when the channel hangs up. Have you looked at the events you get or their contents?

1 Like

Thanks for the reply. I will check that