To be able to address such a situation one would need to review the SIP signalling and the reason for the BYE signal, and which device triggered this. If the issue is reproducible on demand have a look at the Wireshark 'graph' and see which IP sent the BYE.