d672ec4d3e
Problem 1 is that the config entry hangup flag is zeroed only at CONNECT_ACTIVE_IND in msghdl.c. If any (other) call is disconnected after EV_MDO and before CONNECT_ACTIVE_IND, the cleanup routine will disconnect the in-progress dialout as well, if its hangup flag is nonzero (which it is likely to be) after the previous incarnation of the cfg entry. Patch-1 fixes this by clearing the hangup flag as soon as a cfg entry is reserved for the call. Submitted by: Juha-Matti Liukkonen <jml@cubical.fi>