Andrew Pogrebennyk
536afbf145
Insert ua_header_{mode,replace} preferences ( #3061 )
12 years ago
Andreas Granig
9b4bc89a9e
Use <=> instead of = in triggers for NULL-safe cmp
...
In MySQL 5.5 the = operator doesn't work as expected if any of the
comparison values is NULL.
12 years ago
Richard Fuchs
8cbd0aa88a
add grants on resellers table for cdr exporter
12 years ago
Richard Fuchs
09fb8da4fd
move 15003 diff files to correct directory
12 years ago
Andreas Granig
df521832b8
Add more prosody grants on provisioning tables.
12 years ago
Andreas Granig
ceb643359f
Add xmpp entries to xml hosts.
12 years ago
Andreas Granig
52bd178a01
Make db creation more graceful.
...
The DB is replicated in install scenarios, so make sure to not create
it twice.
12 years ago
Jon Bonilla
c74f676084
Increase location.contact length to 1024
...
Start numbering the scrips from 15000 as we do with cfg schema.
Postsvn.
12 years ago
Andreas Granig
9771ab541a
Add index to billing fees.
...
Author: Kirill Solomko <ksolomko@sipwise.com>
12 years ago
Andreas Granig
11603d4189
Fix grants.
12 years ago
Andreas Granig
27164fe332
Add prosody DB.
12 years ago
Andreas Granig
f241d4e8b3
Use correct db for scripts.
12 years ago
Andreas Granig
cc9fbe19fd
Add missing reseller_id to sounds and rw-rules.
12 years ago
Andreas Granig
b9586047e7
Make ringtimeout internal and flag preferences.
...
Only some preferences should actually be shown to end customers. To not
do this manually in the api/panel, flag it in the db.
12 years ago
Andreas Granig
a2332429ce
Move reseller_id to contact.
...
At the same time, we make ossbss force a contact for each contract,
so resellers can manage their own contacts.
12 years ago
Andreas Granig
e61699d8a5
Changed cc_delivery_port to unsigned.
12 years ago
Andreas Granig
ce582dee07
Fix wrong avpf/avp value in rtcp_feedback pref.
12 years ago
Andreas Granig
7dfbe63498
Add prefs for srtp and rtcp feedback handling.
...
This controls the SAVP and AVPF profile handling in mediaproxy-ng.
12 years ago
Andreas Granig
55fbcb3469
Add uuid to carrier.subscribers table.
12 years ago
Andreas Granig
faa82cd9a4
Add captagent fields to voip_intercept table.
12 years ago
Andreas Granig
9eb70cf81c
Add dummy contact to all contracts not having one.
12 years ago
Andrew Pogrebennyk
9cb49d0fc0
fix syntax error "Table 'provisioning.voip_preference_groups' doesn\'t exist"
12 years ago
Andrew Pogrebennyk
0c93677a6c
add missing semicolon
12 years ago
Andrew Pogrebennyk
7d00b50970
rephrase option description
12 years ago
Andrew Pogrebennyk
29e0b80d27
add mobile_push_expiry usr/dom preference
12 years ago
Andrew Pogrebennyk
a0cc764658
add forgotten db up files for cloud_pbx preference
12 years ago
Andrew Pogrebennyk
bb31f590e3
add db update script for sound group "mobile_push" and connecting voice prompt
12 years ago
Victor Seva
5e0bf74f2f
Merge changes from branch 3.0. Remove branch
12 years ago
Andrew Pogrebennyk
1dd06d505f
add dispatcher entry for pbx.
12 years ago
Andreas Granig
4793966417
Disable fk-checks during truncate.
12 years ago
Richard Fuchs
504e8d2bb4
use a pseudo "add index if not exists" statement
12 years ago
Andrew Pogrebennyk
2a413cddf2
add sound handles for auto-attendant
12 years ago
Andreas Granig
8db12175be
Assign any unknown preferences to Internals.
...
This doesn't make creating the foreign key creation to break if there
are unknown preferences.
12 years ago
Andreas Granig
fcc5b98cf5
Add group table for voip preferences.
...
This allows us to group preference lists into logical groups on panels.
12 years ago
Richard Fuchs
530faa5bd9
db scripts for billing.billing_fees_history.bfhsems_idx - thx Kirill
12 years ago
Andreas Granig
3c9b136af9
Fix handling patterns which already start with "^sip:".
...
Forgot a wildcard in the match.
12 years ago
Andrew Pogrebennyk
f49c6715da
also cleanup the obsolete (peer|dom|usr)_preferences
12 years ago
Andreas Granig
254ad09776
Migrate existing peering rules to full URI.
12 years ago
Andrew Pogrebennyk
83a4d49846
move 13447.up to the proper place
12 years ago
Andreas Granig
329a188395
Add allow_out_foreign_domain preference.
12 years ago
Andreas Granig
84292f34e7
Explicitely USE billing db.
12 years ago
Andreas Granig
2605ee1533
Fix replication issue.
...
Another stupid mysql thing where you explicitely have to "USE"
a db for replication to work.
12 years ago
Andreas Granig
3bcec0a6d8
Alter permissions for exporter user.
...
Needed for updating export fields.
12 years ago
Andreas Granig
82ce223f15
Use export fields for marker.
12 years ago
Andreas Granig
22645965ca
Stupid mysql doesn't allow empty string as pattern.
12 years ago
Andrew Pogrebennyk
704b7bd768
change column name billing_zone_history_id to correct billing_zones_history_id
12 years ago
Andreas Granig
5673c386ce
Add source column for billing fees.
12 years ago
Andreas Granig
f1d12651fc
Fix diff scripts.
12 years ago
Andreas Granig
cbf99b3c41
Correctly populate billing_fee_history table.
...
Add direction column there as well.
12 years ago
Andreas Granig
b585cdf12f
Split fee-related columns into source and destination.
...
Fees applied to the caller for a specific destination go to source_*
(same behavior as before), fees applied to the callee for the same
destination go to destination_*.
12 years ago
Andreas Granig
c069ddab93
Add language strings for fee direction and fix key.
12 years ago
Andreas Granig
1dbe5466a8
Add keys for proper access.
12 years ago
Andreas Granig
13b58789c4
Another fix for inbound billing.
...
This should be the final fix (tm), as setting a direction
in the fees has the least impact on the rest of the
billing logic (compared to having two billing profiles, which
implies two contract balances).
12 years ago
Andreas Granig
7c3e157fb9
Add inbound billing profile to contract-billing mapping.
12 years ago
Andreas Granig
57ee94f939
Revert r13198 as this was stupid.
12 years ago
Andreas Granig
29e8b8de10
Add inbound peering contract id to peer groups.
...
This will be needed for inbound call rating of peers.
12 years ago
Andreas Granig
2de7b6a301
Also delete kamailio.trusted if voip_subscriber is deleted.
12 years ago
Andrew Pogrebennyk
bcf8e0f13a
make outbound_socket a peer-only preference; cleanup preference values
12 years ago
Andrew Pogrebennyk
9af45e6098
rename script to avoid naming conflict
12 years ago
Andreas Granig
fd55dd3273
Add schema for account-specific fraud preferences.
12 years ago
Andrew Pogrebennyk
0b3cae1a97
write useful comments
12 years ago
Andrew Pogrebennyk
7c8ca3ae1d
add db-up script for migration and cleanup of legacy rtpproxy settings
12 years ago
Andreas Granig
27e98c883d
Add trigger to accounting.cdr.start_time.
...
This statement is explicitely executed on both nodes separately and is
bypassing replication, to avoid having it replicated to the active node,
which will potentially lock the table for quite a while if it's big.
12 years ago
Andrew Pogrebennyk
d741f90df9
add ICE preferences and wrap it all into an enum; make ipv4/ipv6 prefs an enum
...
TODO: migrate and cleanup the old rtpproxy preferences
12 years ago
Andreas Granig
750d2d3763
Add webfax language strings.
12 years ago
Roman Dieser
bc06ec5c08
remove Server.System.RRDFoldersSearch, Server.System.RRDSubfoldersSearch and Server.System.RRDFilesSearch
12 years ago
Andreas Granig
f568c34128
Add sound groups.
12 years ago
Roman Dieser
f839c81c2f
update in order to handle Server.System.RRDFilesSearch error
12 years ago
Roman Dieser
0add9f65f1
Server.System.RRDSubfoldersSearch error down script
12 years ago
Roman Dieser
e7da6680d4
Server.System.RRDSubfoldersSearch error up script
12 years ago
Roman Dieser
6748d362e9
delete error message Serever.System.RRDFoldersSearch
12 years ago
Roman Dieser
2337be6a4d
create error message Serever.System.RRDFoldersSearch
12 years ago
Andreas Granig
d59c056b42
Fix typo and improve phrasing.
12 years ago
Andrew Pogrebennyk
4b06c247e6
this makes mysql really replicate the table
13 years ago
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