Where do we define endpoints? Guessing it is in mysql database, what table?
We define these vars in a private function that is throwing the exception. Slightly modified the function in hope of identifying the problem record after a restore. Record contains null and zero space data most like just needs to be deleted to apply. Any pointers on what table?
if (isset($retarr["pjsip.endpoint.conf"][$endpointname])) {
throw new \Exception("Endpoint XX $endpointname XX $authname XX $aorname already exists.");
}
[Exception]
Endpoint XX XX -auth XX already exists.