Changes from chan_dahdi that did not make it into sig_pri.