mirror of https://github.com/sipwise/db-schema.git
We need an option to force outbound calls to peer when call comes from peer in case the called party is not local but has an LNP entry. Also, we need to store lnp prefixes in CDR. Change-Id: I61b3886d545b27d46f0affe8457620601b5be61achanges/22/5122/2
parent
ed26ccd12e
commit
8bfcb848e4
@ -0,0 +1,4 @@
|
||||
USE PROVISIONING;
|
||||
|
||||
DELETE FROM voip_preferences_enum
|
||||
WHERE value = 'force_nonlocal_lnp';
|
||||
@ -0,0 +1,13 @@
|
||||
SET AUTOCOMMIT=0;
|
||||
|
||||
USE provisioning;
|
||||
|
||||
SELECT id INTO @vpid FROM voip_preferences
|
||||
WHERE attribute = 'force_outbound_calls_to_peer';
|
||||
INSERT INTO voip_preferences_enum VALUES (
|
||||
NULL, @vpid, 'If callee is not local and is ported',
|
||||
'force_nonlocal_lnp',
|
||||
0, 0, 0, 1, NULL, 0
|
||||
);
|
||||
|
||||
COMMIT;
|
||||
@ -0,0 +1,5 @@
|
||||
USE accounting;
|
||||
|
||||
ALTER TABLE cdr
|
||||
DROP COLUMN source_lnp_prefix,
|
||||
DROP COLUMN destination_lnp_prefix;
|
||||
@ -0,0 +1,5 @@
|
||||
USE accounting;
|
||||
|
||||
ALTER TABLE cdr
|
||||
ADD COLUMN source_lnp_prefix VARCHAR(255) NOT NULL DEFAULT '' AFTER source_gpp9,
|
||||
ADD COLUMN destination_lnp_prefix VARCHAR(255) NOT NULL DEFAULT '' AFTER destination_gpp9;
|
||||
Loading…
Reference in new issue