From 0dc69f1d9c1dc2ad4409b2df3a59db62efbae46b Mon Sep 17 00:00:00 2001 From: kapil gupta Date: Thu, 5 Sep 2019 14:01:58 +0530 Subject: [PATCH] Fixing freepbx-17661 --- Superfecta.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Superfecta.class.php b/Superfecta.class.php index 1ae7a8f8..33f9b687 100644 --- a/Superfecta.class.php +++ b/Superfecta.class.php @@ -675,7 +675,7 @@ public function bulkhandler_superfecta_cfg($settings) { $settings['extension'] = trim(str_replace($invalidDIDChars, "", $settings['extension'])); $settings['cidnum'] = trim(str_replace($invalidDIDChars, "", $settings['cidnum'])); - $sql = "INSERT INTO superfecta_to_incoming (extension, cidnum, scheme) values (:extension, :cidnum,:superfecta_scheme)"; + $sql = "REPLACE INTO superfecta_to_incoming (extension, cidnum, scheme) values (:extension, :cidnum,:superfecta_scheme)"; $q = $db->prepare($sql); $q->bindParam(':extension', $settings['extension'], \PDO::PARAM_STR); $q->bindParam(':cidnum', $settings['cidnum'], \PDO::PARAM_STR);