Daniel Tiefnig
3d170f4e07
add daily fraud limit columns
13 years ago
Kirill Solomko
e47f7b8a67
removed "IDENTIFIED BY" from grants_*.up db_scripts
13 years ago
Michael Prokop
a08c3039e9
further translation fixes and add missing '”' char to Client.Syntax.InvalidSipUsernamePattern
...
Acked-by: Andrew
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
605e213f1e
fix broken quoting in italian translation
...
Closes: https://jenkins.mgm.sipwise.com/job/vmbuilder-ce/441/
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Jon Bonilla
72e21cd3b7
Add italian translation strings
...
Contributed/Translated by dgrotti
13 years ago
Andrew Pogrebennyk
e8d1379a09
add missed prompt for callingcard
13 years ago
Jon Bonilla
6bd40ff451
update Spanish translation
13 years ago
Richard Fuchs
f0cc0a0246
use a different calculation to determine initial partition
13 years ago
Richard Fuchs
fb058c4685
try this ugly hack to fix the timestamps
13 years ago
Richard Fuchs
1d99fd5f53
more fixing of timestamps
13 years ago
Richard Fuchs
23c9f8cd9b
more fixing of timestamps
13 years ago
Richard Fuchs
b040890661
fix typo
13 years ago
Richard Fuchs
f22ddf47ee
fix modify_timestamp to 1970 for voip_preferences in various places - WIP
13 years ago
Andrew Pogrebennyk
9348ffe64e
make sure to update all 4 ncos preferences (mantis:2047)
13 years ago
Andrew Pogrebennyk
715120a61f
mark [adm_]ncos_id preferences as dom_pref too (mantis:2041)
13 years ago
Andrew Pogrebennyk
e011ca6064
make allowed_ips_grp preference hidden
13 years ago
Andrew Pogrebennyk
292ea77873
add voip_sound_handles for calling card
13 years ago
Andreas Granig
07b15452c0
Add foreign key constraint for uuid.
13 years ago
Andreas Granig
354a8b84c6
Add calling-card/call-thru tables.
13 years ago
Andreas Granig
57e5383702
Add new CDR rows in one go.
...
CDR tables are potentially huge, so do the changes in on query.
13 years ago
Andreas Granig
0d87e0aba9
Add privileges for sems_prepaid user.
...
Used for kamailio lcr routing.
13 years ago
Andreas Granig
a28e873252
Add ip_header preference.
13 years ago
Andreas Granig
f92e52bd43
Add source_ip field to cdr table.
13 years ago
Richard Fuchs
2cc0d141f6
change sipstats partitioning
13 years ago
Richard Fuchs
86a5176d8f
repartition sipstats.statistics
13 years ago
Richard Fuchs
da7d06572a
convert voisniff tables to innodb
13 years ago
Andrew Pogrebennyk
bd065fc56c
DB rev script for no_sipping preference
13 years ago
Richard Fuchs
e5f1dc4254
up/down scripts for adding mobile_push_registrations table
13 years ago
Andreas Granig
f54659c2a9
Add grants for carrier-db.
13 years ago
Christian Veigl
7f4b3bb9dd
change (man_)allowed_ips preferences to usr-only preferences
13 years ago
Christian Veigl
9603a6aa99
add preferences for (man_)allowed_ips to reanable this feature
13 years ago
Richard Fuchs
b42cc3d26b
change sipstats db charset to latin1
13 years ago
Christian Veigl
f3e294bb34
add attribute faxnumber to billing.contacts
13 years ago
Andrew Pogrebennyk
abee18ef3c
schema changes for Diversion & forwarding CLI configuration
13 years ago
Christian Veigl
eb411a38fb
fix broken triggers (discovered by dtiefnig; see mantis:2123 and mantis:2121)
...
fix trigger enum_set_default introduced with r9086
to correctly update voip_*_preferences with default values
for preferences that cover more than one in (usr|dom|peer)_preferences.
fix trigger enum_update introduced with r9149 to only update values of
enum preferences in voip_(usr|dom|peer)_preferences that where actually
set to that value (previously all preferences were updated).
13 years ago
Michael Prokop
dfde6222d5
Use '0' instead of now() for timestamps
...
If --no-data is *not* used in the mysqldump command line of
trunk deployments then we get stuff like that into our svn
repository committed:
| > -INSERT INTO `subscriber` VALUES
| (1,'no_such_number','voip.sipwise.local','499187eef57cdee845f8e98bf81c04b4','','1cece14d3af643f05273228e790ce1b7','90d1398
| 204f968fc9bca32689d933b90',NULL,'9bcb88b6-541a-43da-8fdc-816f5557ff93','','2012-09-03
| 16:02:41'),(2,'nagios','voip.sipwise.local','nagios4Sipwise!','','e5290263a1b27f90c5630eecc7319715','aba8e5f08f6fc0dd1e18e
| 9e27550b8f0',NULL,'ac1697cf-6933-45ef-9abf-b1278054ded0','','2012-09-03 16:02:41');
| > +INSERT INTO `subscriber` VALUES
| (1,'no_such_number','voip.sipwise.local','3ce39530696080435b2625be8de48786','','d2635d573e32f8e49bea5b8244d6f54f','457794a
| 1beffd43c1cbe04e3cb5c0229',NULL,'9bcb88b6-541a-43da-8fdc-816f5557ff93','','2012-09-03
| 16:24:36'),(2,'nagios','voip.sipwise.local','nagios4Sipwise!','','e5290263a1b27f90c5630eecc7319715','aba8e5f08f6fc0dd1e18e
| 9e27550b8f0',NULL,'ac1697cf-6933-45ef-9abf-b1278054ded0','','2012-09-03 16:24:36');
| [...]
To avoid those moving timestamp changes hit our svn repos
we replace all function calls to "now()" with just '0'.
Also see discussion on development@sipwise.com with thread
subject "[VCS/DEV] r10942 - ngcp/db-schema/trunk/schema"
Acked-by: Daniel Tiefnig
Acked-by: Jon Bonilla
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Christian Veigl
bfbd36c4e0
fix language string "Client.Syntax.InvalidSipUsernamePattern"
13 years ago
Christian Veigl
0d181be7c5
add translations for "Client.Voip.NoSuchSubscriber" (mantis:2035)
13 years ago
Richard Fuchs
f57d33b1c2
add timestamp column to prepaid_costs table
13 years ago
Jon Bonilla
a2bbf02c6b
Set transport to 1 where NULL
...
Also resync provisioning and kamailio databases again.
13 years ago
Jon Bonilla
4dbfff5cd1
Finally remove ossbss peer_rules duplicates too
...
It was possible to add same rule to same group
via ossbss.
13 years ago
Jon Bonilla
23758c034f
Drop duplicate rules for the same group
13 years ago
Jon Bonilla
ce17942f50
fix hostname field in query
13 years ago
Jon Bonilla
1f53f7c457
Full sync provisioning and lcr tables
...
Even if the scehma is fixed, on an upgraded
system the entries can be unsynced.
Thx Andi for the code
13 years ago
Jon Bonilla
fef13ad29c
Fix unsynced prov-kam databases for gws
...
If there are unsynced gws in kamailio database
because the db schema was corrupt this rev
should align the existing group_id fields and
remove the orphaned ones.
Thx agranig
13 years ago
Jon Bonilla
9dde866355
fix sql. thx rfuchs
13 years ago
Jon Bonilla
f46c6b93b1
typo fix
13 years ago
Jon Bonilla
76798cc3ea
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.
13 years ago
Jon Bonilla
a148787aa2
Set provisioning.callee_patter default ''
...
To sync it with kamailio.lcr_rule.request_uri
default value
13 years ago
Jon Bonilla
20816f3305
Try to fix kamailio.lcr_gw.group_id
...
It's dropped an recreated. That makes the
group_id values are generated with the
default ones and that's not what we have in
provisioning database. The triggers fail as those
fields don't match.
13 years ago
Jon Bonilla
cd76e18027
Try to fix the lcr_rule key issue #1967
...
The ley that is tried to be created in 9868.up
has no group_id field so it won't be applied in
case you already have two peering groups with
same peering rules. In case you don't it will
apply but the resulting 2.6 version won't allow
you to have different peering groups with same
peering rules.
The solution is what follows: We edit the
existing db scripts to allow upgrades to work
well. This will make existing 2.6 systems and
new 2.6 systems to have different db scehmas.
And the existing ones will be still broken. A new
db rev 10860.up has been created to unify both
kind of systems (the ones which executed the
original revs and the ones which excuted the
edited ones) and it will also fix the existing
versions as it will be executed in existing 2.6
systems via postinst script.
Why postinst script? We can't trust users to
execute update-db-schema as we don't know all
of them. It's better to handle this automatically.
This postinst addition is being handled by Mika
in another commit.
13 years ago
Andrew Pogrebennyk
0b91d7b82a
make key on expires non-unique
13 years ago
Christian Veigl
93639737aa
add language string "Client.Voip.DuplicatePeeringRule"
13 years ago
Christian Veigl
ab1c4e7865
add error codes for invalid filetype (mantis:1935)
13 years ago
Andrew Pogrebennyk
5da8462767
install correct version of voip_phost_crepl_trig trigger
...
it was mistakenly overwritten in 9150.up
13 years ago
Christian Veigl
3ce091172d
the "+" was optional for cli-preferences. update data therefore with or without it
13 years ago
Christian Veigl
dd79e33fa7
add a couple of language strings
13 years ago
Christian Veigl
ab1dabecfb
make provisioning.voip_subscribers.webusername unique (see mantis:1913)
...
also suffix already existing duplicates with CONCAT("-", voip_subscriber.id).
13 years ago
Andreas Granig
6ab376186b
Add preferences for limiting calls per account.
13 years ago
Christian Veigl
8c25f9765e
necessary db-updates according to r10287 (see also: mantis:473)
13 years ago
Andrew Pogrebennyk
eb2ca55cf8
add "no_credit" sound handle
13 years ago
Andrew Pogrebennyk
b9030da627
add missing downgrade script
13 years ago
Andrew Pogrebennyk
2b60e5d115
db rev script for extension_in_npn preference
13 years ago
Andrew Pogrebennyk
3920df4974
update revision number
...
mantis:1853
13 years ago
Andrew Pogrebennyk
00c0f5c03e
increase length of rewrite rule regexp fields
13 years ago
Andrew Pogrebennyk
ac87d0f948
somewhat tune up the cli related preferences
...
* backward-compatible defaults: NPN is default for outbound_pai, UPN for
outbound_from_user.
* update cli & user_cli preferences description.
* drop omit_outbound_displayname preference (obsolete since r9312).
13 years ago
Andrew Pogrebennyk
1c5dc3596c
return column lcr_gw.group_id, update key on lcr_rule to include request_uri
13 years ago
Andrew Pogrebennyk
e6a212c40f
keep lcr_gw.group_id column for now..
...
we can't drop it without adjusting triggers on provisioning.voip_peer_hosts
13 years ago
Andrew Pogrebennyk
2cc51b67cc
default value of address.grp in 3.1 was '0' (testing rocks)
13 years ago
Andrew Pogrebennyk
bdbb74293c
add missing kamailio 3.3->3.1 downgrade script
...
might be useful for smartnet project, if they decide to rollback to old version
13 years ago
Andrew Pogrebennyk
954a1e38f0
fix some discrepancies with vanilla kamailio 3.3 schema
...
TODO: we still have two unique keys on lcr_gw from 3.1 times - are those still needed?
13 years ago
Christian Veigl
dbdacc3541
add entries in xmlhostgroups and xmlhosts for Loadbalancer
13 years ago
Andrew Pogrebennyk
986c2cf507
fix sql error
13 years ago
Andrew Pogrebennyk
4736c8dbf4
add downgrade script for r9723, some corrections
13 years ago
Richard Fuchs
ece9035188
collectd plugin uses nagios user for db access, so grant select to sipstats.*
13 years ago
Andrew Pogrebennyk
8a2d475740
add "Use domain default" option to outbound CLI settings
...
- now it is also possible to select value "none" for outbound headers on
subscriber level to override the domain settings;
- update description for outbound header settings to explicitly state that
this has effect on calls from platform when the user is a _callee_.
13 years ago
Richard Fuchs
bd5a4a85ed
also repartition message_packets table. partitioning format hasn't changed, but the names have
13 years ago
Richard Fuchs
3f2d4e20eb
changed sipstats partitioning scheme
13 years ago
Andrew Pogrebennyk
9e5edf4f08
fix syntax
13 years ago
Andrew Pogrebennyk
0dbbcf532b
add mobile_push_enable preference
13 years ago
Richard Fuchs
94dfe4fb8a
rev scripts to partition message_packets table
13 years ago
Richard Fuchs
9d33796b47
sanitize sipstats.mark table
13 years ago
Richard Fuchs
5606c7fe08
those are actually not replicated
13 years ago
Richard Fuchs
eaaaa5a9f2
rev scripts for new voisniff db schema
13 years ago
Michael Prokop
2e64dabdd3
Do not drop voip_vscs if it doesn't exist
...
This fixes broken 9458.up script:
| ERROR 1051 (42S02) at line 3: Unknown table `voip_vscs'
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Christian Veigl
3bad553c88
drop unused tables voip_vscs and voip_audio_files
13 years ago
Andreas Granig
7a85de36b3
Add preferences for driving outbound caller CLI.
13 years ago
Andreas Granig
f9037be641
Add preferences for inbound NPN/UPN selection.
13 years ago
Andrew Pogrebennyk
2fac612f24
avoid "r" in the beginning of file names (otherwise 0 is inserted into db)
13 years ago
Andreas Granig
2d02fdcd30
Add up/down scripts for outbound_socket pref.
13 years ago
Andreas Granig
d29fd9e3b1
Delete old entries from version before adding new ones.
13 years ago
Christian Veigl
a5518580fa
fix broken trigger
13 years ago
Andreas Granig
189a3acb60
Use latin1 for now to work-around 1000byte key limit
13 years ago
Andreas Granig
98f37ebad6
Rename attribute to make new behavior more clear.
13 years ago
Andreas Granig
b82cae0150
Add emergency_cli preference.
13 years ago
Andreas Granig
c2041b5409
Add preference and sound handle for rejecting em calls.
13 years ago
Andrew Pogrebennyk
06fd48f1c9
more presence table with indexes that don't fix in 1000 bytes (utf8 issue)
13 years ago
Andrew Pogrebennyk
2faa68ea69
fix engine & encoding for presence tables - WIP
...
- remove explicit MyISAM specification, let's stick to default InnoDB;
- as workaround for now use latin1 for tables which have large indexes to avoid
ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes.
13 years ago
Andrew Pogrebennyk
bc491373e9
update kamailio database for version 3.3
13 years ago
Andreas Granig
75656b8a34
Add music_on_hold handle.
13 years ago
Andreas Granig
bc2a7d42bc
Add codec column for music-on-hold.
13 years ago
Andreas Granig
f187b5b5ca
Add sound handles for rest of rejection cases.
13 years ago
Andreas Granig
fa548d69d9
Add announcement handles for block-in/out/ncos.
13 years ago
Christian Veigl
62659c9786
add support for loopplay flag of soundfile handle
13 years ago
Andrew Pogrebennyk
9f077e342a
add transport protocol select to peers (db rev scripts)
13 years ago
Andrew Pogrebennyk
a08f1aaf91
set "no" as default for sst_enable in dom/peer; add default method too
...
now it should be up to date
TODO: add note to documentation on upgrade that says to go to peer/dom and
enable session timers if they have been used in previous version.
13 years ago
Christian Veigl
7be25f35e4
add attribute "description" to sound sets
13 years ago
Andreas Granig
9669713a00
Grant select privs for kamailio to new sound tables.
13 years ago
Christian Veigl
cb890e59ee
enable default enum-option; propagate changes in voip_preferences_enum.value (mantis:841)
13 years ago
Christian Veigl
2899f7938c
revert accidental commit
13 years ago
Christian Veigl
df7cc1f499
oss/bss support for sound sets
13 years ago
Christian Veigl
717e765c47
languagstrings for r8997
13 years ago
Christian Veigl
b3004b8d17
simplify up/down scripts (cudos to See also
13 years ago
Christian Veigl
82ebf9307a
comment out examples
13 years ago
Andrew Pogrebennyk
b0a2e01b9b
update sst preferences to the latest schema
13 years ago
Christian Veigl
8ed6aa4d7c
add example enum-preference
13 years ago
Christian Veigl
27ff6ce525
enhanced enum type
13 years ago
Andreas Granig
031054e783
Add presence tables.
13 years ago
Daniel Tiefnig
9dff9306e1
add index for rate-o-mat on cdr.rating_status column
13 years ago
Andrew Pogrebennyk
78a0dd8039
make sst_enable preference an enum
13 years ago
Andrew Pogrebennyk
65210ff554
add missing db specification
13 years ago
Andrew Pogrebennyk
07f46c965c
sst_refresh_method is not integer, so type=0
13 years ago
Andrew Pogrebennyk
cd71dcce75
add db rev scripts for session timer preferences
13 years ago
Christian Veigl
0517f0015a
typo. mysql demands a whitespace after starting a comment "-- "
13 years ago
Christian Veigl
bab460899a
up/down scripts for matnis:841
13 years ago
Andreas Granig
2a4a6d4b70
Make r-uri and empty string by default
...
Otherwise a "migrated" rule will fail to be deleted.
13 years ago
Andreas Granig
3392003d50
Rename caller prefix to caller pattern and add callee pattern.
13 years ago
Andreas Granig
bc470ee2c8
Align kamailio.lcr_rule.request_uri length to from_uri length.
13 years ago
Andreas Granig
a29ef58e0d
Add pattern column for r-uri matching.
13 years ago
Christian Veigl
c11ff5bea8
allow empty sip-uri (mantis:797)
13 years ago
Daniel Tiefnig
3c99faea2f
replace emerg_ac by emergency_prefix, add emergency_suffix, drop svc_ac
13 years ago
Andreas Granig
87023a41a2
Add statistics table.
13 years ago
Andrew Pogrebennyk
31c5b5bd54
fixes to latest commit
13 years ago
Andrew Pogrebennyk
6cfd0aa90a
add db rev scripts for kamailio dialog db backend
13 years ago
Andrew Pogrebennyk
fddef8f504
add db rev scripts for 2.6 release (moved from ossbss)
13 years ago
Andrew Pogrebennyk
c6dece8f00
make fraud_interval_lock column NULL-able (sync to ossbss r8220)
13 years ago
Andrew Pogrebennyk
1a4597766c
that should be all for separating replicated and not replicated rev scripts
13 years ago
Michael Prokop
905dde658f
Renames for not-replicated stuff
...
We settled on the _not_replicated.{up,down} suffix:
Acked-by: Daniel Tiefnig
Acked-by: Andreas Granig
Signed-off-by: Andrew Pogrebennyk
13 years ago
Michael Prokop
3e5bb9c8c9
Drop 7931 + 7938 rev scripts
...
They don't exist in ossbss any longer.
Thanks, Andrew
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
bc5df3b0fc
diff/7764.up: make sure cascade is active
...
Thanks for spotting + review, Andrew
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
26dba5e432
Drop db_scripts/diff/8000_adjust_billing_db.up
...
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
520dfca2a1
sync db_scripts/diff/7991.up with ./ossbss/trunk/db/rev/7991.up
...
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
30ceca8ca7
Initial db-schema package
...
This is broken as hell. You've been warned.
From: Michael Prokop <mprokop@sipwise.com>
13 years ago