int sm_tdmtx_destroy(tSMTDMtxId tdmtx)
Destroys tdmtx and invalidates the tSMTDMtxId.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.