After #3928, reported that when connecting & disconnecting ports requests are issued in a very short interval (e.g: when auto answer with resp code 200 is enabled in pjsua app), the disconnect request may fail which cause the ports to remain connected (undesirable). The failure in disconnection request happens because there is precheck of connection availability. Those prechecks are still be performed in the operation execution, but not in the operation request. This PR will remove such prechecks in all async operations requests.
This PR also contain some minor updates, e.g:
add check for possible failure in memory allocation (for operation entry)
use on_return label to clean up error handling.
logging update: add word "video" when referring a video port's slot without port's name.
After #3928, reported that when connecting & disconnecting ports requests are issued in a very short interval (e.g: when auto answer with resp code 200 is enabled in pjsua app), the disconnect request may fail which cause the ports to remain connected (undesirable). The failure in disconnection request happens because there is precheck of connection availability. Those prechecks are still be performed in the operation execution, but not in the operation request. This PR will remove such prechecks in all async operations requests.
This PR also contain some minor updates, e.g:
on_return
label to clean up error handling.