Call not hangup after redirected to IVR

Have the same problems with a sangoma A200 card, works fine but if we introduce an IVR doesnt detect the hangup.