How to get a bearer's state?


#1

As per the bearer state machine a bearer can be in a number of states like CLOSED, DISCONNECTED etc. How can one get the current state of the bearer?

One can get the state of a channel using the wip_getState function, is there an equivalent function call for a bearer?


#2

AFAIK, no - there isn’t.

You have to manage this in your own state machine.