It's been running isdn and has only just changed to sip trunks which have always had this problem. The provider saw the bye packet come from our end.