Andreas Granig
9ef559bb4f
MT#7199 add iban and bic fields.
11 years ago
Andreas Granig
a6136caee5
MT#6827 Deprecate linerange_num field.
11 years ago
Andreas Granig
c86f8ed18e
MT#6789 Add email template schema.
...
Add email templates for resellers.
Let contracts have email templates
Let subscribers have contacts.
Add password reset journal.
11 years ago
Andrew Pogrebennyk
e16d3422d7
MT#4541 add missing grant for kamailio on voip_subscribers.
11 years ago
Andreas Granig
ead92dcf39
MT#6693 Align to new pbx schema.
11 years ago
Andreas Granig
b374549045
MT#6693 Add voip_subscriber_profile_sets table.
11 years ago
Andreas Granig
61c38c9998
MT#6693 Add subscriber profile tables.
11 years ago
Gerhard Jungwirth
6c71e81b67
MT#6663 set billing_profile for default contract
11 years ago
Andreas Granig
0a60e09542
MT#6359 Properly idenfity lcr_gw by id.
...
Since allowing duplicate ips in peering servers, we need to
identify the peers using the kamailio.lcr_gw.flags column, which
is actually provisioning.voip_peer_hosts.id, instead of trying to
match on the ip address.
11 years ago
Irina Peshinskaya
6941698106
MT#5879 Rename invoice template tables with s sufficses.
11 years ago
Andreas Granig
717785f7e7
MT#6461 Fix branding table structure.
11 years ago
Irina Peshinskaya
6c9ff74b82
MT#5879 Were added occasionally, are full copy of 15046.
11 years ago
Irina Peshinskaya
3c6d96c18e
MT#5879 Add name column to invoices template, necessary changes for further pdf templating, marker for customers and their subscribers about sending/not sending invoices.
11 years ago
Andreas Granig
ba66dde559
MT#6461 Add reseller branding table.
11 years ago
Kirill Solomko
7088e3a2f7
MT#6191 add accounting.acc_cdi table
11 years ago
Andrew Pogrebennyk
8c053c1ef1
MT#6317 add missing labels to some prefs.
11 years ago
Andrew Pogrebennyk
f1c40e8fcd
MT#6279 Add new force_outbound_calls_to_peer mode to peer preference.
11 years ago
Irina Peshinskaya
7246a8d414
MT#5879 Add name column for template. Preparing for "fixed" template, where only position of rows and their amount can be modified. And resources, which may connect one template with some different css.
11 years ago
Richard Fuchs
758a86f451
MT#6013 adding "drop procedure if exists" just in case
11 years ago
Richard Fuchs
030e8dbd75
MT#6013 add unique key to contract_balances
11 years ago
Andrew Pogrebennyk
0dc43cfd75
MT#5473 delete stale kamailio.peer_preferences records.
11 years ago
Irina Peshinskaya
433f24d4ad
MT#5879 It was rather stupid to make unique index on is_active field: there could be a lot of inactive templates.
11 years ago
Alexander Lutay
18e89eccbe
MT#5571 Fix statements 15038.* to prevent duplicates with mysql_values.cfg.services
...
(cherry picked from commit f5d455c73a
)
11 years ago
Irina Peshinskaya
653d869654
MT#5879 Change is_active field to boolean and add unique index to (reseller_id,is_active) so maintain only one active template per reseller.
11 years ago
Irka
9590ad6c04
MT#5879: invoice_template table
11 years ago
Andrew Pogrebennyk
4d746c3792
MT#5949 Add preference for serial forking by q-value.
11 years ago
Andreas Granig
cc08eeb81a
MT#5933 Use from_pattern for kamailio from_pattern
...
For UPDATE/DELETE, match for full ip/proto/from_pattern in trigger,
otherwise if you have two IPs with same proto, and you delete/update
one, then both of the entries are modified in kamailio.trusted.
11 years ago
Andrew Pogrebennyk
16b00675ad
MT#5575 add the entries for sems-pbx to xmlgroups, hosts and hostgroups
11 years ago
Andreas Granig
27b134a4bb
MT#5199 Add API client certificate for admins.
12 years ago
Andrew Pogrebennyk
feacd0afaa
MT#5375 clear kamailio.peer_preferences after delete on voip_peer_hosts
12 years ago
Andrew Pogrebennyk
8f99639cb9
MT#5101 make force_outbound_calls_to_peer an enum preference
...
* Also change the DB schema and triggers to add is_primary field to kamailio
dbaliases and provisioning.voip_dbaliases
* Migration scripts.
12 years ago
Victor Seva
4106f152f7
MT#5301 upgrade kamailio database from 4.0 to 4.1
12 years ago
Andreas Granig
2804d13b67
MT#4025 Add contract_default flag to sound sets
12 years ago
Andreas Granig
12828e9b3f
MT#3981 Clean up broken/orphaned numbers.
12 years ago
Victor Seva
3e002503ad
MT#4837 do not use static id for voip_preference_group
12 years ago
Andreas Granig
cb3132b35e
MT#4685 Don't tie firmware to profile.
...
That way, you can upload multiple firmwares, and ngcp-panel
will serve the next or latest one, depending on the currently
running one.
12 years ago
Andreas Granig
92c39048ac
MT#4571 Set is_superuser for admins in reseller 1
12 years ago
Victor Seva
a039604c37
MT#3995 Also fix lcr trigger for peer rules
12 years ago
Andreas Granig
daba8d66a9
MT#3995 Use flags as id in kamailio.lcr_gw.
...
ip_addr is not unique anymore, so use the flags column when updating,
which actually reflects the voip_peer_hosts.id.
12 years ago
Gerhard Jungwirth
15907db94d
MT#4461 create a default-system contact
...
for reseller and peering contracts
12 years ago
Andreas Granig
94f933d091
MT#3971 Add max_subscribers column to contracts.
12 years ago
Andreas Granig
b55c8fe75b
MT#4007 Add destination field to autoattendant.
12 years ago
Andreas Granig
5c70029eb9
MT#4007 Rename voip_pbx_autoattendants.
...
We use plurals in table names.
12 years ago
Andreas Granig
35c2e9444e
MT#4007 Add schema for autoattendant dst config
12 years ago
Andreas Granig
213cf2cbae
MT#3997 Remove unique part of lcr_gw key.
...
This allows for duplicate IPs in lcr gws.
12 years ago
Andreas Granig
0856d09f96
MT#3997 Add via_route column to voip_peer_hosts
...
This defines a route set to be executed on the way out to a peer after
the lb.
12 years ago
Andreas Granig
36fbb2877a
MT#4145 Change contacts.postcode to varchar.
...
Can be alphanumeric e.g. in UK/Canada.
12 years ago
Andreas Granig
0b4d67738b
MT#4025 Add contract_sound_set usr preference.
...
This is used for customer-specific announcements like PBX AA and
office-hours.
While at it, enhance sound_set preference description.
12 years ago
Andreas Granig
7fc1e6ff05
MT#4025 Move contract_id right after reseller_id.
12 years ago
Andreas Granig
02a28fadbb
MT#4025 Add contract_id column to sound set table.
12 years ago
Andreas Granig
bf01fbcc73
MT#3977 Add firmware version column to PBX fw.
12 years ago
Andreas Granig
48d62c5a3a
MT#3929 Add client cert column to admins.
...
Used for generating client certs to be used as API key.
12 years ago
Andreas Granig
6726d8eb46
MT#3977 Align PBX autoprov tables to ngcp-schema.
...
This links autoprov_devices to contracts and introduces
autoprov_device_lineranges and autoprov_field_device_lines to
support multi-line configuration on one phone.
12 years ago
Andreas Granig
ded890df1f
MT#3977 Add num_lines to autoprov_devices table
12 years ago
Andrew Pogrebennyk
40d23fc226
Add 'use domain default' choice to use_rtpproxy and ipv46_for_rtpproxy prefs.
...
mantis:3657
12 years ago
Andreas Granig
e4fb1dc3c5
MT#3607 Fix create time for voip_subscribers
...
Older ngcp-panel versions didn't set the create_timestamp properly,
causing CSC to show a huge list of dates in the calls/vm view.
12 years ago
Andreas Granig
c6a9b3094a
Add preference label column.
12 years ago
Andreas Granig
ac7de8b428
Properly reorder autoprov tables.
...
Satisfy foreign key constraints.
12 years ago
Andreas Granig
7dd689ae55
Add PBX autoprovisioning tables.
12 years ago
Andrew Pogrebennyk
b3f6fa77c2
Fix default value for inbound_uprn domain pref.
12 years ago
Andreas Granig
a5555d27c2
Add shared_buddylist_visibility and display_name.
...
The former is used to control whether to export a subscriber to
the customer's shared XMPP roster.
The latter is used to set the XMPP name for a contact and can be
used in outbound_from_display.
12 years ago
Victor Seva
24750af002
prosody sipwise_group module needs to select on provisioning.voip_pbx_groups table
12 years ago
Andreas Granig
bef6165083
Fix down script and add base cli preference.
12 years ago
Andreas Granig
02f8ef0790
Add pbx preferences and update down script.
12 years ago
Andreas Granig
9198915276
Relate voip_pbx_groups to voip_subscribers.
12 years ago
Andreas Granig
367f442d7b
Align provisioning.voip_subscribers to pbx feature
...
Add is_pbx_group and pbx_group_id columns.
Remove legacy autoconf_* columns.
12 years ago
Andreas Granig
84a3576041
Add explicit extension column to voip_pbx_groups.
12 years ago
Andreas Granig
198b564590
Add name to provisioning.voip_pbx_groups
12 years ago
Andreas Granig
33877bcde5
Make number relation optional.
12 years ago
Andreas Granig
bd411c4e72
Add key on voip_pbx_groups.contract_id
12 years ago
Andreas Granig
e33fe8f107
Add voip_pbx_groups table.
12 years ago
Andreas Granig
414909abbc
Align products and add sip/pbx product.
...
Remove any unused/legacy product definitions.
Add sipaccount and pbxaccount products.
Update billing mappings to use sipaccount product if none is set.
12 years ago
Andrew Pogrebennyk
5be7d3fd49
add new outbound_* peer preference values for templates commit 634a850
12 years ago
Andrew Pogrebennyk
97263b093e
Assign the outbound_history_info preference to Number Manipulations group.
12 years ago
Andrew Pogrebennyk
a5fbdbc01e
Add new up script for outbound_history_info pref (3.0).
12 years ago
Andrew Pogrebennyk
7c98691000
Assign ua_header_{mode,replace} preferences to Internal group.
...
This is needed because we must backport ua_header_{mode,replace} to 2.7 and
also 2.8, so if someone upgrades from the latest 2.8 to 3.0, the constraint
creation is going to fail. Reason: the ua_header_{mode,replace} prefs will
have empty voip_preference_groups_id.
12 years ago
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
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