From 76798cc3eae23577fc31247649fdf1823074fc37 Mon Sep 17 00:00:00 2001 From: Jon Bonilla Date: Thu, 30 Aug 2012 16:25:41 +0000 Subject: [PATCH] Sync provisioning and kamailio lcr rules sync It will be executed with no changes on new deploys and new upgrades since the changes are already edited in previous revs. For those ones which already applied the original revs this one will fix the asyncs but still won't delete the inconsistent entries delted in provisioning and still present in kamailio. That's for another rev. --- db_scripts/diff/10877.up | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 db_scripts/diff/10877.up diff --git a/db_scripts/diff/10877.up b/db_scripts/diff/10877.up new file mode 100644 index 00000000..b9ffa72d --- /dev/null +++ b/db_scripts/diff/10877.up @@ -0,0 +1,4 @@ +#Fix the unsynced rules default values +ALTER TABLE provisioning.voip_peer_rules CHANGE COLUMN callee_pattern calle_pattern VARCHAR(64) DEFAULT ''; +UPDATE provisioning.voip_peer_rules SET callee_pattern='' where callee_pattern=NULL; +UPDATE kamailio.lcr_rule SET request_uri='' where request_uri=NULL;