Hi Harshit,
You could use Notifications API to monitor the health of your external sip trunks. Please check following for more info.
Available topics (genesys.cloud)v2.telephony.providers.edges.trunks.{id}
Schema
{
"id": "string",
"connectedStatus": {
"connected":
true,
"connectedStateTime": "string"
},
"optionsStatus": [
{
"proxyAddress": "string",
"optionState":
true,
"optionStateTime": "string",
"errorInfo": {
"text": "string",
"code": "string",
"details": {
"code": "string",
"message": "string",
"hostname": "string"
}
------------------------------
Asad Saqlain
------------------------------