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
322fe4d5ba
do not use "create table .. like" statement
...
due to the order of operations in the installer the database is already
updated to the latest state at the point we run ngcp-update-db-schema
this is not what we want, because then not_replicated statements fail:
Applying revision script /usr/share/ngcp-db-schema/db_scripts/base/6435_not_replicated.up:
ERROR 1060 (42S21) at line 3: Duplicate column name 'time_hires' failed. :(
13 years ago
Michael Prokop
c5b2224ed1
Remove deprecated language_strings.txt
...
Credits to Andrew
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Andrew Pogrebennyk
1a4597766c
that should be all for separating replicated and not replicated rev scripts
13 years ago
Andrew Pogrebennyk
6edc68ade1
separate replicated and not replicated db 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
6b1c36c2ab
Provide 5670.up as 5670_grants_dbs.template
...
Grant management--
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Andrew Pogrebennyk
eaf9567013
get rid of legacy file grants_proxies_kamailio
...
- we don't need it, see https://bugtracker.sipwise.com/view.php?id=1071#c5435
13 years ago
Andrew Pogrebennyk
977fa4b377
oops.. fix syntax error
13 years ago
Andrew Pogrebennyk
29f8cede79
add grants for sems_prepaid to base schema files
...
- i really meant to commit all changes in one batch but part of them went
to r8162, apparently with wrong commit message;
- our grant management *really* sucks, i just hope that grants have been
put into proper shape now without breaking anything.
13 years ago
Andrew Pogrebennyk
177e54e699
add missing grant on billing.billing_zones_history
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
Andrew Pogrebennyk
cb2463927a
fix default billing profile creation
13 years ago
Andrew Pogrebennyk
0d0b6812d4
rollback r8111
13 years ago
Andrew Pogrebennyk
9e47e08d9d
sync grant scripts with trunk ossbss version
...
- as discussed there is not point in keeping obsolete grants there
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
438572f505
Adjust base script file names
...
Hopefully for the last time..
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
32dc161d25
Update 0030_create_kamailio_301.up + 0050_create_accounting.up + provide 5000_fix_billing.up
...
This should bring our fresh installation into sync with
upgraded systems. Hopefully. Finally.
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
376764379b
Sync to svn r3955 to get fresh installation working
...
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
5aa0a76c33
Rename 0100_grants_dbs.up + 0110_grants_proxies_kamailio.up to *.template
...
We've to deal the PW_* stuff inside the installer (nothing better
available yet).
TODO: 5670.up
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
5b4e312741
Drop db_scripts/language_strings and instead provide it as db_scripts/base/language_strings.txt
...
Thanks for the hint, Andrew
From: Michael Prokop <mprokop@sipwise.com>
13 years ago
Michael Prokop
ac80f9de59
Drop tmp scripts, not relevant anymore
...
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