mirror of https://github.com/sipwise/db-schema.git
parent
30201c3b38
commit
1d99fd5f53
@ -1,7 +1,9 @@
|
||||
UPDATE provisioning.voip_preferences
|
||||
SET attribute = 'peer_auth_user', usr_pref = 1
|
||||
SET attribute = 'peer_auth_user', usr_pref = 1,
|
||||
modify_timestamp = '1970-01-01 00:00:00'
|
||||
WHERE attribute = 'auth_user';
|
||||
|
||||
UPDATE provisioning.voip_preferences
|
||||
SET attribute = 'peer_auth_pass', usr_pref = 1
|
||||
SET attribute = 'peer_auth_pass', usr_pref = 1,
|
||||
modify_timestamp = '1970-01-01 00:00:00'
|
||||
WHERE attribute = 'auth_pass';
|
||||
|
@ -1 +1 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, data_type, max_occur, description) VALUES('unauth_inbound_calls', 1, 1, 'boolean', 1, 'Allow unauthenticated inbound calls from FOREIGN domain to users within this domain. Use with care - it allows to flood your users with voice spam.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, data_type, max_occur, description, modify_timestamp) VALUES('unauth_inbound_calls', 1, 1, 'boolean', 1, 'Allow unauthenticated inbound calls from FOREIGN domain to users within this domain. Use with care - it allows to flood your users with voice spam.', '1970-01-01 00:00:00');
|
||||
|
@ -1,2 +1,2 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('peer_auth_realm', 0, 1, 1, 'string', 1, 'A realm used for authentication against the peer host.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('peer_auth_realm', 0, 1, 1, 'string', 1, 'A realm used for authentication against the peer host.', '1970-01-01 00:00:00');
|
||||
|
@ -1 +1 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, data_type, max_occur, description) VALUES('ignore_userprovided_cli', 1, 1, 1, 'boolean', 1, 'Discard any subscriber provided CLI information');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, data_type, max_occur, description, modify_timestamp) VALUES('ignore_userprovided_cli', 1, 1, 1, 'boolean', 1, 'Discard any subscriber provided CLI information', '1970-01-01 00:00:00');
|
||||
|
@ -1,2 +1,2 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description) VALUES('always_use_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Force rtp relay for this peer/domain/user.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description) VALUES('never_use_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Do not use rtp relay for this peer/domain/user. Rtp will be relayed if other participants have always_use_rtpproxy preference enabled.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('always_use_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Force rtp relay for this peer/domain/user.', '1970-01-01 00:00:00');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('never_use_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Do not use rtp relay for this peer/domain/user. Rtp will be relayed if other participants have always_use_rtpproxy preference enabled.', '1970-01-01 00:00:00');
|
||||
|
@ -1,11 +1,12 @@
|
||||
use provisioning;
|
||||
|
||||
UPDATE voip_preferences
|
||||
SET description = 'A realm (hostname) used to identify and for authentication against a peer host.'
|
||||
SET description = 'A realm (hostname) used to identify and for authentication against a peer host.',
|
||||
modify_timestamp='1970-01-01 00:00:00'
|
||||
WHERE attribute = 'peer_auth_realm';
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('peer_auth_register', 1, 1, 1, 1, 'boolean', 1, 'Specifies whether registration at the peer host is desired.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('concurrent_max', 1, 1, 1, 1, 'int', 1, 'Maximum number of concurrent sessions (calls) for a subscriber or peer.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('concurrent_max_out', 1, 1, 1, 1, 'int', 1, 'Maximum number of concurrent outgoing sessions (calls) coming from a subscriber or going to a peer.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('peer_auth_register', 1, 1, 1, 1, 'boolean', 1, 'Specifies whether registration at the peer host is desired.', '1970-01-01 00:00:00');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('concurrent_max', 1, 1, 1, 1, 'int', 1, 'Maximum number of concurrent sessions (calls) for a subscriber or peer.', '1970-01-01 00:00:00');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('concurrent_max_out', 1, 1, 1, 1, 'int', 1, 'Maximum number of concurrent outgoing sessions (calls) coming from a subscriber or going to a peer.', '1970-01-01 00:00:00');
|
||||
|
@ -1,4 +1,4 @@
|
||||
use provisioning;
|
||||
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, description)
|
||||
VALUES('allowed_clis', 0, 1, 'string', 0, 'A list of shell patterns specifying which CLIs are allowed to be set by the subscriber. "*", "?" and "[x-y]" with "x" and "y" representing numbers from 0 to 9 may be used as wildcards as usual in shell patterns.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('allowed_clis', 0, 1, 'string', 0, 'A list of shell patterns specifying which CLIs are allowed to be set by the subscriber. "*", "?" and "[x-y]" with "x" and "y" representing numbers from 0 to 9 may be used as wildcards as usual in shell patterns.', '1970-01-01 00:00:00');
|
||||
|
@ -1 +1 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description) VALUES('force_to_pstn', 1, 1, 1, 1, 'boolean', 1, 'Force calls from this user/domain/peer to be routed to PSTN even if the callee is local. Use with caution, as this setting may increase your costs! When enabling this option in a peer, make sure you trust it, as the NGCP will become an open relay for it!');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('force_to_pstn', 1, 1, 1, 1, 'boolean', 1, 'Force calls from this user/domain/peer to be routed to PSTN even if the callee is local. Use with caution, as this setting may increase your costs! When enabling this option in a peer, make sure you trust it, as the NGCP will become an open relay for it!', '1970-01-01 00:00:00');
|
||||
|
@ -1,5 +1,5 @@
|
||||
use provisioning;
|
||||
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal) VALUES('account_id', 1, 1, 'int', 1, 1);
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal) VALUES('ext_contract_id', 0, 1, 'string', 1, 1);
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal) VALUES('ext_subscriber_id', 0, 1, 'string', 1, 1);
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal, modify_timestamp) VALUES('account_id', 1, 1, 'int', 1, 1, '1970-01-01 00:00:00');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal, modify_timestamp) VALUES('ext_contract_id', 0, 1, 'string', 1, 1, '1970-01-01 00:00:00');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal, modify_timestamp) VALUES('ext_subscriber_id', 0, 1, 'string', 1, 1, '1970-01-01 00:00:00');
|
||||
|
@ -1 +1 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description) VALUES('find_subscriber_by_auth_user', 1, 0, 0, 1, 'boolean', 1, 'For incoming calls from this peer, find the destination subscriber also using its auth_username used for outbound registration.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('find_subscriber_by_auth_user', 1, 0, 0, 1, 'boolean', 1, 'For incoming calls from this peer, find the destination subscriber also using its auth_username used for outbound registration., '1970-01-01 00:00:00'');
|
||||
|
@ -1 +1 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, data_type, max_occur, description) VALUES('e164_to_ruri', 1, 1, 'boolean', 1, 'Send the E164 number instead of SIP AOR as request username when sending INVITE to the subscriber. If a 404 is received the SIP AOR is sent as request URI as fallback.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, data_type, max_occur, description, modify_timestamp) VALUES('e164_to_ruri', 1, 1, 'boolean', 1, 'Send the E164 number instead of SIP AOR as request username when sending INVITE to the subscriber. If a 404 is received the SIP AOR is sent as request URI as fallback.', '1970-01-01 00:00:00');
|
||||
|
@ -1,9 +1,10 @@
|
||||
use provisioning;
|
||||
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, description)
|
||||
VALUES('user_cli', 0, 1, 'string', 1, 'E.164 number or complete SIP URI. "user-provided calling line identification" - specifies the source E.164 number or SIP username that is used for outgoing calls. If set, this is put in the SIP "From" header (as user-provided calling number) if a client sends a CLI which is not allowed by "allowed_clis" or if "ignore_userprovided_cli" is set.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('user_cli', 0, 1, 'string', 1, 'E.164 number or complete SIP URI. "user-provided calling line identification" - specifies the source E.164 number or SIP username that is used for outgoing calls. If set, this is put in the SIP "From" header (as user-provided calling number) if a client sends a CLI which is not allowed by "allowed_clis" or if "ignore_userprovided_cli" is set.', '1970-01-01 00:00:00');
|
||||
|
||||
UPDATE voip_preferences
|
||||
SET description = 'E.164 number or complete SIP URI. "calling line identification" - specifies the source E.164 number or SIP username that is used for outgoing calls in the SIP "From" and "P-Asserted-Identity" headers (as user- and network-provided calling numbers). The content of the "From" header may be overridden by the "user_provided_cli" preference and client (if allowed by the "allowed_clis" preference) SIP signalling. Automatically set to the primary E.164 number specified in the subscriber details.'
|
||||
SET description = 'E.164 number or complete SIP URI. "calling line identification" - specifies the source E.164 number or SIP username that is used for outgoing calls in the SIP "From" and "P-Asserted-Identity" headers (as user- and network-provided calling numbers). The content of the "From" header may be overridden by the "user_provided_cli" preference and client (if allowed by the "allowed_clis" preference) SIP signalling. Automatically set to the primary E.164 number specified in the subscriber details.',
|
||||
modify_timestamp = '1970-01-01 00:00:00'
|
||||
WHERE attribute = 'cli';
|
||||
|
||||
|
@ -1 +1 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal) VALUES('prepaid', 1, 1, 'boolean', 1, 1);
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, usr_pref, data_type, max_occur, internal, modify_timestamp) VALUES('prepaid', 1, 1, 'boolean', 1, 1, '1970-01-01 00:00:00');
|
||||
|
@ -1,4 +1,4 @@
|
||||
use provisioning;
|
||||
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('extension_in_npn', 1, 1, 1, 0, 'boolean', 1, 'Search for partial match of user-provided number (UPN) to subscriber\'s primary E164 number and aliases. If it mathes, take UPN as valid wihout allowed_clis check and copy UPN to network-provided number (NPN).');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('extension_in_npn', 1, 1, 1, 0, 'boolean', 1, 'Search for partial match of user-provided number (UPN) to subscriber\'s primary E164 number and aliases. If it mathes, take UPN as valid wihout allowed_clis check and copy UPN to network-provided number (NPN).', '1970-01-01 00:00:00');
|
||||
|
@ -1,2 +1,2 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description) VALUES('always_use_ipv4_for_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Always force the IPv4 address for the RTP relay, regardless of what is autodetected on SIP/SDP level. This is mutually exclusive with always_use_ipv6_for_rtpproxy.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description) VALUES('always_use_ipv6_for_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Always force the IPv6 address for the RTP relay, regardless of what is autodetected on SIP/SDP level. This is mutually exclusive with always_use_ipv4_for_rtpproxy.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('always_use_ipv4_for_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Always force the IPv4 address for the RTP relay, regardless of what is autodetected on SIP/SDP level. This is mutually exclusive with always_use_ipv6_for_rtpproxy.', '1970-01-01 00:00:00');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('always_use_ipv6_for_rtpproxy', 1, 1, 1, 1, 'boolean', 1, 'Always force the IPv6 address for the RTP relay, regardless of what is autodetected on SIP/SDP level. This is mutually exclusive with always_use_ipv4_for_rtpproxy.', '1970-01-01 00:00:00');
|
||||
|
@ -1,4 +1,4 @@
|
||||
use provisioning;
|
||||
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('force_inbound_calls_to_peer', 1, 1, 1, 0, 'boolean', 1, 'Force calls to this user to be treated as if the user was not local. This helps in migration scenarios.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('force_inbound_calls_to_peer', 1, 1, 1, 0, 'boolean', 1, 'Force calls to this user to be treated as if the user was not local. This helps in migration scenarios.', '1970-01-01 00:00:00');
|
||||
|
@ -1,7 +1,7 @@
|
||||
USE provisioning;
|
||||
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('reject_emergency', 1, 1, 1, 0, 'boolean', 1, 'Reject emergency calls from this user or domain.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('reject_emergency', 1, 1, 1, 0, 'boolean', 1, 'Reject emergency calls from this user or domain.', '1970-01-01 00:00:00');
|
||||
|
||||
INSERT INTO voip_sound_handles (name) VALUES ('emergency_unsupported');
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
USE provisioning;
|
||||
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description)
|
||||
VALUES('emergency_cli', 0, 1, 0, 0, 'string', 1, 'Emergency CLI which can be used in rewrite rules as substitution value.');
|
||||
INSERT INTO voip_preferences (attribute, type, usr_pref, dom_pref, peer_pref, data_type, max_occur, description, modify_timestamp)
|
||||
VALUES('emergency_cli', 0, 1, 0, 0, 'string', 1, 'Emergency CLI which can be used in rewrite rules as substitution value.', '1970-01-01 00:00:00');
|
||||
|
@ -1 +1 @@
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description) VALUES('mobile_push_enable', 1, 1, 1, 0, 'boolean', 1, 'Send inbound call to Mobile Push server when called subscriber is not registered. This can not be used together with CFNA as call will be then simply forwarded.');
|
||||
INSERT INTO provisioning.voip_preferences (attribute, type, dom_pref, usr_pref, peer_pref, data_type, max_occur, description, modify_timestamp) VALUES('mobile_push_enable', 1, 1, 1, 0, 'boolean', 1, 'Send inbound call to Mobile Push server when called subscriber is not registered. This can not be used together with CFNA as call will be then simply forwarded.', '1970-01-01 00:00:00');
|
||||
|
Loading…
Reference in new issue