unispeech / unimrcp

Open source cross-platform implementation of MRCP protocol
http://www.unimrcp.org
Apache License 2.0
374 stars 165 forks source link

Re-INVITE may causes the session keep forever and will not be free #321

Open MENGHAH opened 1 year ago

MENGHAH commented 1 year ago

During test the function of RECORDER of unimrcp. I found that the REINVITE will be send to server every 5 minutes in a session. But if terminate current session while the client process the response from unimrcp-server may case such session can't be free and keep forever. .So, how to cancel the reinvite?

achaloyan commented 1 year ago

SIP reINVITES are sent in accordance with SIP Session Timers and will help if the remote party is no longer alive. Otherwise, you may rely on inactivity-timeout applicable to MRCPv2 connections.