]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
ftmod_misdn: Rework channel de-/activation and activate d-channel early.
authorStefan Knoblich <stkn@openisdn.net>
Fri, 23 Mar 2012 00:09:30 +0000 (01:09 +0100)
committerStefan Knoblich <stkn@openisdn.net>
Fri, 23 Mar 2012 00:21:55 +0000 (01:21 +0100)
commitff4b395956a3741a06284879637dee710d1cb3ff
treec63b95a0a77ff1d3da0f3cf72bea75d9c2faaa7a
parenta2f3ef7460b5df7443c9df77750b23f3b3806dc0
ftmod_misdn: Rework channel de-/activation and activate d-channel early.

The former fixes a strange "bug" with hfcsusb, where a b-channel deactivation
on a inactive channel (caused by a reset cycle) would cause the port to
lock up and stop processing events.

NOTE: this still needs to be investigated further, but this workaround will
      at least prevent it from breaking completely.

We'll now keep track of the channel activation state and not send any
PH_ACTIVATE_REQ / PH_DEACTIVATE_REQ requests, if the channel already has the
desired state.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
libs/freetdm/src/ftmod/ftmod_misdn/ftmod_misdn.c