Bearer state machine stuck in disconnecting state
Bearer-state-machine-stuck.zip
MM = 1.14.2 Module = Cinterion PLS62W.
Issue: The modem is connected to the network ATT(US) for a while, at a certain point in time the network sends the module a disconnect "+CGEV: NW DETACH" which causes the modem to loose 3GPP registration, in turn MM tries to disconnect the call which seems to fail with CME error 202. Per the vendor this means that there was an attempt to disconnect the "Defaut" PDN which isn't allowed.
After a couple of hours the modem is able to register to the network again, but attempts to connect the bearer gives this error "GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Failed: Bearer currently being disconnected"
The CME err 202 is somewhat expected for this module, but the bearer state machine seems to be wired to ignore the PDP deactivation attempts, so the point of this issue is to track why the bearer is stuck in disconnecting state.