Prevent fax dialplan from getting breaking

Only update the fax dialplan if the fax_extension and destination_number are provided.
This commit is contained in:
FusionPBX
2025-08-15 16:21:51 -06:00
committed by GitHub
parent f81d73e518
commit 742a9d110f

View File

@@ -74,6 +74,16 @@
*/
public function dialplan() {
//require the fax_extension
if (!empty($this->fax_extension)) {
return false;
}
//require the destination_number
if (!empty($this->destination_number)) {
return false;
}
//normalize the fax forward number
if (strlen($this->fax_forward_number) > 3) {
//$fax_forward_number = preg_replace("~[^0-9]~", "",$fax_forward_number);