How to get SoftHangup() return value

Hi there.

According to this page(https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_SoftHangup)
I can’t see there are way to get return value.
So my question is how to get SoftHangup() return value?

Thank you for support.

What would you expect in terms of a return value? All it will do is to set flag in each channel referenced.

Thank you for replying.

What would you expect in terms of a return value?

I would expect SoftHangup() is succeed or not.

The only possible failure would be that the channel was not there. The most likely reason is that it had only hungup. Consequently, I would expect it to always succeed.