Flaviu Mates
84b9347a79
TT#70856 - Schema changes for one-time fee
...
* modify the schema to support the newly
added one-time fee column
Change-Id: I78c57feb1a32454a5fc2bb6dca93cb67359ffa50
6 years ago
Andreas Granig
ed5944f838
TT#67210 More db table column alignments
...
Change-Id: Ibb3e63ef99c58313527666a0b124ee814baf9565
6 years ago
Andreas Granig
d09c5bb4e9
TT#67210 Align column name to db schema for dbalias id
...
Change-Id: I43a4343b292fea86c22d9bf5818cb4b9d2fbf6db
6 years ago
Andreas Granig
ced40f5def
TT#67210 Add reference to dbaliases for device id
...
* To be used to assign a device id to a field device line
Change-Id: I4f18ba38e8d8a847925543963676ec0e8d1274f8
6 years ago
Marco Capetta
14ac04bac6
TT#62269 add new call forward type "cfo"
...
* provisioning.voip_cf_mappings enum is extended
with "cfo"
Change-Id: I25f907b235ce31ab7050f81a6b926b8150693a81
6 years ago
Kirill Solomko
8b2efd5d3d
TT#65101 add admins is_ccare column
...
Change-Id: I00cd74027e4f54875a446b3fbe4a2b16afc49b3a
6 years ago
Kirill Solomko
967421e5d5
TT#65505 kamailio.location expires change to bigint
...
* type now is bigint
* auto inflation into epoch int
Change-Id: I3b6f5f84760af9e1a9f0f89077a151b506fb3acd
6 years ago
Andreas Granig
efa2db3e44
TT#64653 Add thumbnail support to device models
...
Change-Id: Ic431d65851b4036a81d4c22546579976ee14b31f
6 years ago
Rene Krenn
e4e5a22b8d
TT#64661 drop nonexistend voip_subscriber_timezone.contract relation
...
Change-Id: I88620aec80a5969e9f42bb20c01bee777731b471
6 years ago
Rene Krenn
9467549108
TT#64701 remove customer_fraud_events.pm virtualview
...
Change-Id: Iaae44951d11db84586c0749ef48633fcce7e5d3d
6 years ago
Kirill Solomko
ffec7b3b54
TT#63545 add cdr_period_costs, rework contract_fraud_events
...
* add support for new table cdr_period_costs
* contract_fraud_events virtual view is reworked. It
now works with cdr_period_costs table instead of cdr
* contract_fraud_events virtual view does not require
the interval parameter anymore
Change-Id: I67aac0314b303633834b3b2f1bb2e436986d0ce7
6 years ago
Flaviu Mates
a9793bbb58
TT#64011 - Implement NCOS LNP Carrier patterns support in UI/API
...
* Add result class for new ncos_lnp_pattern_list table
* Create relation with ncos_lnp_list table
Change-Id: Idccfcc3810ef40d1b09ade6ef73bb752df7d5f1b
6 years ago
Kirill Solomko
74426dbacb
TT#57701 add voip_header_rules direction "reply"
...
Change-Id: I802dc88bd46443886f10e483209e562b3036f3b7
6 years ago
Andreas Granig
3d53ca1a8d
TT#55873 Only expose marked sound handles to customers
...
Change-Id: I7bd62914f8b74898640653b1f9a4b822901a4a9e
6 years ago
Irina Peshinskaya
1f5402563a
TT#55503 Fix one-time event representation
...
Change-Id: I67f038fd1efe129c178838d3518b07f77a8a4171
6 years ago
Rene Krenn
40d1ce6f7f
TT#46955 reseller preferences
...
Change-Id: Ifbabc103e7721127d8ab8cfd6f29df7978050768
6 years ago
Kirill Solomko
fb9d27bb03
TT#47010 add voip_header_rule_sets subscriber_id
...
Change-Id: Ia0ed0c4c200d178bb406bc63dbc6405f7e1c6960
6 years ago
Andreas Granig
8ee9fb4998
TT#52989 Add devid related fields and relations
...
Since ngcp-panel is fetching numbers from billing.voip_numbers, but we
don't want to duplicate devid related data there and in
provisioning.voip_dbaliases, we have to create a relation between those.
Change-Id: Icad84e90f4ca8b7e7de51844cda8227f5fcf449f
6 years ago
Irina Peshinskaya
424d60c735
TT#47534 Add ical reference to timesets
...
Change-Id: Id7ffe90d1b1f2fb7d63ffbcbdf3a2cc46775b96b
6 years ago
Irina Peshinskaya
26c8c9e8ca
TT#49688 Generate ical format for events separately
...
Change-Id: I2af483a11902ac5b574ee77d6affb6b9bd2f675f
6 years ago
Andreas Granig
d36061bc6c
TT#51168 Add dev_id column to voip_dbaliases
...
Change-Id: If97dd0ea6943ae2c9746c99c8d09f9e45607d29f
6 years ago
Kirill Solomko
b6314f012b
TT#51910 add voip_header_rules cf_inbound, cf_outbound direction
...
Change-Id: I06e98af1438c4df09b51300174b7b7435a1237c5
6 years ago
Irina Peshinskaya
b635172354
TT#50802 Access to the active primary numbers owners
...
Change-Id: I35ca5332638d6a25a971c60873e7e26def5d6b5a
6 years ago
Kirill Solomko
07b1e7fdf1
TT#30386 Add voip_header_* tables schema
...
Change-Id: If95cc80d56eab42724ae2a0186034d6bfb7038db
7 years ago
Andreas Granig
4fc8086510
TT#49037 Add Sipwise EDS bootstrap param
...
Change-Id: Ia5e846aa543f1d5277c2af07768917166e0808a7
7 years ago
Andreas Granig
037c25acde
TT#49037 Add Sipwise EDS redirect options
...
Change-Id: Ic237e8aaf2adde155c50d4d2f64d6f0c9a02f027
7 years ago
Irina Peshinskaya
875958c87f
TT#41628 Add time_sets relation to resellers
...
Change-Id: I28752e83c61722c61366a680f0bec42ca2f73368
7 years ago
Kirill Solomko
273e5d8df9
TT#33108 email_templates schema changes, resellers fix
...
* new email_templates field, attachment_name
* fix resellers relation to email_templates
* add resellers relation to contacts
Change-Id: I13f4ec301a892e6ae53be53bc5036d2fbc7b4a55
7 years ago
Gerhard Jungwirth
376d953829
TT#41627 add ical time_sets schema
...
Change-Id: If9168afdad08d3caa009cd4d29a8e35dd45684ba
7 years ago
Rene Krenn
4c5507c67b
TT#41552 fee "match_mode" columns
...
Change-Id: I05be39faf4aef3de40cfe09ee75945fd34272410
7 years ago
Andreas Granig
92d82ac739
TT#42767 Add tag column to autoprov firmwares table
...
Change-Id: I4ba59ad26bba9e36711da1c70bec608375dde4a8
7 years ago
Rene Krenn
0b0f320908
TT#42261 prepaid_library col for billing_profiles
...
Change-Id: I68aeda378d78931cadc5d50b70d5aa8c2e89c55f
7 years ago
Rene Krenn
d7f5c6c8b0
TT#38402 new billing mappings resultsets/relationships
...
new resultsets:
- "legacy_billing_mappings":
fast virtual view listing a contract's billing mappings
according to the legacy table layout. this is used
by panel UI to present the mappings in the convenient,
known way.
- "actual_billing_profiles":
a resultset for joining the fast(er)
billing.v_actual_billing_profiles it is only used for
filters involving the (actual) billing profile or its
properties.
- "contracts_billing_profile_network"
- "contracts_billing_profile_network_schedule":
resultsets for the new db tables. added for completeness,
but not directly used by panel dbix code.
modified resultsets/relationships:
- "contract_fraud_events":
makes use of the fast billing.v_actual_billing_profiles
view.
- "billing_networks", "billing_profiles" and "contracts":
have their billing_mappings relationship replaced by
the billing_mappings_view resultset keep compatibility
with existing panel code (ie. input check logic).
- "contracts":
the legacy "actual_billing_mappings" relationship is
removed permanetly.
deprecated resultsets:
- "actual_billing_mappings":
this old virtualview is only kept for now to be able to
run the billing_mapping_effective_start_time.t testcases.
- "billing_mappings":
not in use any more.
Change-Id: Ica6d0e3f28873046047e0dc3636177a269fa4267
7 years ago
Irina Peshinskaya
e5024e972c
TT#40085 Treat empty epoch string as 0
...
Change-Id: I6af2d503c188d5d7fe24a68ac0bfc0310a9dfda1
7 years ago
Kirill Solomko
65b4ecaac3
TT#40010 add new call forward type "cfr"
...
* provisioning.voip_cf_mappings enum is extended
with "cfr"
Change-Id: Iee7133cc4db69db994ccd0993e9e3471c4e592bc
7 years ago
Gerhard Jungwirth
860dd6e7e6
TT#37206 regexp flags for callforwardings
...
Change-Id: Ib906fab7da7633d2f83276c724521df8ebf2dfac
7 years ago
Gerhard Jungwirth
de0561066f
TT#37204 schema for bnumber callforward
...
Change-Id: I463b2f37fd6e93caf7eaef8eb60c28f1d4df7c13
7 years ago
Irina Peshinskaya
93865bddc7
TT#37458 Add billing profile aoc field
...
Change-Id: Ie2a4cd52528c5bf3a06c48c9d152d8184c5c4c1b
7 years ago
Kirill Solomko
eefac6a05a
TT#39007 sms_journal: add smsc_peer field
...
Change-Id: I0d937c6f025f7fbe32cac10b0bb6c9bbe43a58c1
7 years ago
Kirill Solomko
c79529892f
TT#36007 add relation messages->voip_subscriber
...
* this relation is to fetch sip data belonging
to a specific billing.voip_subscriber
Change-Id: Iba8607e88618991ea1ce51d4ccd78567c8648234
7 years ago
Irina Peshinskaya
7ce2ac5d5f
TT#36055 Add schema for the field device custom preferences
...
Change-Id: I134d4d358aa3b78dbfb4cb51fa751a27ea475bf7
7 years ago
Rene Krenn
800dfb1559
TT#23271 add uuid columns for accounting.prepaid_cost
...
Change-Id: Ie201446ba700300101d388bce74d2e62ca1b0265
7 years ago
Kirill Solomko
e7a29003c6
TT#21400 messages_custom: change COLLATE to utf8mb4_bin
...
* ngcp-panel uses SET NAMES utf8mb4 and therefore
COLLATE must be also utf8mb4_bin, otherwise a
collation error is raised
Change-Id: I573daaa238c293e676f1b28ebc65c51d1b1fabea
7 years ago
Rene Krenn
4500b7de1d
TT#35662 move product_id to billing.contracts
...
Change-Id: Ib7a41f6579e24fcd6307d9168bb7b0669bf2a785
7 years ago
Kirill Solomko
cf9e4b80ca
TT#35508 add sms.journal cli field
...
Change-Id: I4164ceadd6bb9b0144a2d691fef51c4b425a2911
7 years ago
Rene Krenn
be9a4c1763
TT#34013 expose contract and reseller inherited tz
...
+ add "create_tz" and "1st_tz" balance interval start
modes of profile packages
Change-Id: I74b2b8cff4425b9a5fd11d8443d17c486042a21a
7 years ago
Kirill Solomko
4d85d112af
TT#14662 add phonebook tables schema
...
* reseller_phonebook
* contract_phonebook
* subscriber_phonebook
Change-Id: Ica074f05b9706837b94e0f9bd7b4f81e9eaca3b0
7 years ago
Irina Peshinskaya
f62bdb9aa3
TT#15059 Add cdr_mos_data table and relationships
...
Change-Id: I52f9be9de5b8d72071d788ee1aed9d55eb1e134d
7 years ago
Rene Krenn
6400b5b198
TT#32910 TT#33037 initial cash_balance, free_time_balance
...
Change-Id: I174f5e4e57bda2becb60a22970bfc01e39534542
7 years ago
Rene Krenn
67d18ba5b3
TT#25053 billing mappings groupwise max for fraudevents
...
Change-Id: I13abf6f76f344f44d41423be8170bbc349f0806f
8 years ago
Kirill Solomko
30553b2c47
TT#25452 add call_id column for voicemail and faxserver
...
* add call_id for voicemail_spool
* add call_id for voip_fax_journal
Change-Id: I08b7677945cc5d29e65c138f60e972feb1487198
8 years ago
Guillem Jover
8a19769ca7
TT#19710 Use strict and warnings everywhere
...
Except when Sipwise::Base is used which implies these.
Change-Id: I8a31cfd4b73513509587f31d81b2e53868972b1b
8 years ago
Guillem Jover
e099b045cd
TT#19710 Use parent instead of base
...
The latter is very heavy-weight and its use is discouraged.
Change-Id: I05fd8d0f75db2c572035c4b81a8861711199b3a0
8 years ago
Guillem Jover
c98d125970
TT#19710 Remove autogenerated comments
...
Change-Id: I29ba75e64b39bd32a8be95a94fbb0238cf03ad7a
8 years ago
Guillem Jover
354976a4d6
TT#19710 Add DESCRIPTION section to all modules
...
This has been done with the following perl one-liner:
,---
perl -p -i -E 'if (m/->table\("([^"]*)"\)/) { $table = $1 };\
if (m/^=head1 COMPON/) { print "=head1 DESCRIPTION\n\n\
This module is a schema class for the NGCP database table \"$table\".\n\n" };'
`---
Change-Id: I030d073754f6622f66c8169c1a0cf4187462052e
8 years ago
Guillem Jover
fc4598e8b8
TT#19710 Add AUTHOR and LICENSE POD sections
...
This has been injected with a sed script of the following form:
,--- pod.sed ---
$a\
=head1 AUTHOR\
…\
=head1 LICENSE\
…
`---
Change-Id: I09bee06296199d2b2db7bd1bfbf50dc174ed90f2
8 years ago
Guillem Jover
fb7d1fdc7f
TT#19710 Do not return an explicit undef
...
Change-Id: I0518860d89a2299e323b31870ec394532ab5d8c4
Warned-by: perlcritic
8 years ago
Guillem Jover
a4fdeb08ce
TT#19710 Do not use implicit newlines
...
Use HERE-docs instead.
Change-Id: I46ae8007b3bf6eb8766cee6afc2d685638fc292a
8 years ago
Guillem Jover
676acdf115
TT#19710 Switch from deprecated use vars to our
...
Change-Id: I7a4adc00543b3a9939bd18d4db7b17dfaf2f52fc
8 years ago
Guillem Jover
9cbfb6357f
TT#19710 Convert from MS-DOS to Unix style newlines
...
Change-Id: If2132e8d29d4cd4f60fec3c53bec363a95079914
8 years ago
Gerhard Jungwirth
dfb9215b1b
TT#23775 do not load TryCatch
...
since it's not used in the codebase of NGCP::Schema and it has Moose
as a dependency. With this change, Moose will not be loaded as a dependency
of NGCP::Schema at all.
Change-Id: I01cb68486395e68fc1519b61ff86f5972bd283f8
8 years ago
Gerhard Jungwirth
824bb3102b
TT#23774 remove Moose completely
...
and clean up the dependencies by throwing out libraries we
don't use
Change-Id: Ia88a9d9f9d6744178ee382fb4a2311c1608cef32
8 years ago
Rene Krenn
37939b5ca1
TT#23277 change lnp_number type from enum to string
...
Change-Id: Ic9358f8b41b6447bea0c0107bf77039b85df848a
8 years ago
Rene Krenn
4f3b81722a
TT#22469 TT#22467 TT#22468 lnp number "type" columns
...
Change-Id: I340e259984bdfcb2d6461b8556b5a02c3a60991e
8 years ago
Rene Krenn
8d433cd4bb
TT#20334 TT#21092 sipwise_mam ResultSet
...
relation ends to implement performance-critical joins
of the form "sipwise_mam.username =
concat(voip_subscriber.username,'@',voip_domain.domain)"
are added to provisionin_voip_subscriber, to
have proper on-clause operands in place (and prevent
"unknown column .. in on clause" error in an elegant
way).
resultset require to join voip_domain explicitly.
Change-Id: I4e20c4232f73c7e4286b96da5ded73455a417131
8 years ago
Rene Krenn
6dbc911d7f
TT#12311 DateTime::Format::MySQL, safe for leap seconds
...
Change-Id: Id65aa4e39fc0e40e9b97c45c6aeca70f52acad6a
8 years ago
Kirill Solomko
36bfc880f6
TT#19459 add voip_cf_source_sets.mode
...
* values: whitelist, blacklist
* default: whitelist
Change-Id: Ibb43ecf03787f2276dc535afb404ac395a8891f2
8 years ago
Rene Krenn
5affe56e97
TT#14755 call list suppressions
...
Change-Id: I12e2480695a629f95433b1c34ba0bad0aa5f97e1
8 years ago
Gerhard Jungwirth
e769581e45
TT#17258 add active flag to reminders
...
Change-Id: I9497ad6c8b42dbedb12c972448c4ad52f49e494b
8 years ago
Gerhard Jungwirth
b61cd27024
TT#13784 add stopper flag to peering rules
...
Change-Id: Ibbf70cb3f146f96e749fd97f5b173cfa6a65f170
8 years ago
Kirill Solomko
438a62fcb0
TT#12593 add voip_fax_preferences t38, ecm columns
...
* add provisioning.voip_fax_preferences t38 column
* add provisioning.voip_fax_preferences ecm column
Change-Id: I7950b72ffb278a78a92ac909607ef2ba9611ca8a
8 years ago
Kirill Solomko
36701bec86
TT#12661 add voip_fax_data schema
...
- add support for provisioning.voip_fax_data
Change-Id: I9d823d81cfacdbb9cd5be27dce91b34543f3ae7d
8 years ago
Rene Krenn
aeaf59aed4
TT#14235 fix fraud query empty daily notify and lock
...
Change-Id: I9387f7d48d06c5be961180ee767d0c6993fcc5b4
8 years ago
Andreas Granig
8cb779ea7e
TT#8704 Implement peer probing.
...
* Add probe column to voip_peer_hosts
Change-Id: I7c2b6a1605d9880f28434c9ad6a5082ace486389
8 years ago
Rene Krenn
2ef47d963e
TT#13754 edr tags for primary aliases
...
Change-Id: Idd188e3a01e38ea597de5dc52ebac886b22a3347
8 years ago
Andreas Granig
528614f96e
TT#13277 Implement panel interface for call rec
...
Allows you to see/delete recorded calls and listen to the streams.
Change-Id: I57d02796990a127eaae82ed60c960a0f89343e59
8 years ago
Gerhard Jungwirth
3fecfca1f4
TT#4335 subscriber profile left join relation
...
for subscriber api of reminders
Change-Id: Ib17cdd434807944ee56401d8fcb3d9877b94a15c
8 years ago
Andreas Granig
17a5cdaa2d
TT#12601 New column to store salted bcrypt hash
...
Change-Id: I55e12b1f0e8782759c311ad6a7f880d80858643a
8 years ago
Rene Krenn
6dc66aeeff
TT#9850 drop foreign keys of billing.voip_intercept
...
Change-Id: I2afc13aa8bf2a20566560a2cf2a8d9af9bababa7
8 years ago
Irina Peshinskaya
ee61638327
TT#9212 Add cid and key autoprov params to enum
...
Change-Id: Ied507b6752a2468bafc53c7e64db4f0b218c2dec
8 years ago
Rene Krenn
088a4074fa
TT#6735 TT#5850 refactor "profile" events to track number changes
...
Change-Id: Id648f8283e1164b23a9aacb59b35ef33d310b970
8 years ago
Kirill Solomko
2433052dae
TT#5826 add contact.timezone, add timezone views
...
* add voip_subscriber_timezone (view)
* add voip_contract_timezone (view)
* add voip_reseller_timezone (view)
Change-Id: Ib61df3627b7f8f06753beb0652a297c45cd043ad
8 years ago
Irina Peshinskaya
84d5bcef26
TT#9212 Add grandstream enums
...
Change-Id: I74ab77711c3a11dd765b2d3e7265e48a72716937
8 years ago
Rene Krenn
1b98bb0fbc
TT#9714 susbcriber first non-prim alias for edr records
...
Change-Id: I9b033a66507c94459fbf11c0f5592ebad91c81a0
8 years ago
Andreas Granig
8ad362065c
TT#2371 Add coding and pcc options to sms journal.
...
Required to mark and forward sms based on 3rd party call control.
Change-Id: I366f3e3cd9aace7732f63438127fa5163807cac7
9 years ago
Rene Krenn
34b77a65da
TT#6735 TT#7030 TT#5850 accountin.events entity-attribute-value models
...
Change-Id: I5b336f291a2c449ecd1f678ab7405a0bde4c318f
9 years ago
Irina Peshinskaya
e95561ac82
TT#5954 Add announcement relation to cf destination
...
Change-Id: Id4c5073e2dc2d6712cebdb235929fb12a71a4a43
9 years ago
Rene Krenn
2c2b1961e1
TT#5559 events datetime inflate
...
+ fix writing hires seconds
Change-Id: I6f7f19b05c0a068c8cb7c349d5ddb263a6c5859d
9 years ago
Andreas Granig
fd3f6c6627
TT#2371 Add sms forward options
...
Change-Id: I14b6c166aef9eeee55b775bfd30143f11c53737e
9 years ago
Kirill Solomko
07ed8a1e48
TT#5004 add autoprov_firmwares_data schema
...
* also remove data col from autoprof_firmwares
Change-Id: Ic0ee9ca8afa31d15c7d5c395bb829ed7e596f714
9 years ago
Kirill Solomko
bb1690cccc
TT#7169 fix contract_fraud_events virtual sql
...
* GROUP only by contract_id in the billing_mapping
INNER JOIN to have only 1 record per contract_id
with the most recent start_time
- (if there is only one record with NULL start_time
(the default one) it is properly fetched
Change-Id: I0d312eb6685d109e99affd91249ae312d919a59d
9 years ago
Kirill Solomko
e933215b48
TT#5549 add voip_fax_journal caller_uuid, caller_uuid
...
Change-Id: I071dd4275329222171d8b554eebb10982195259c
9 years ago
Rene Krenn
4ebb5b9bc3
MT#20639 billing.contacts "status" column
...
Change-Id: Ie294128df9a79d4a7ad14848865739415d665c2a
9 years ago
Gerhard Jungwirth
49d653ace0
TT#2369 add table sms_journal
...
Change-Id: I7a4f6deed9df0ffb8481c6956b60ef2bd4d7b513
9 years ago
Gerhard Jungwirth
d404f40e7b
MT#3591 enable view search utf8 characters
...
Change-Id: Ib5ff4924af17620432a776079acee0fc7f77b623
9 years ago
Rene Krenn
645635ea5e
MT#20027 porting number history
...
-drop all misleading lnp_number unique keys again
-retain lnp_provider delete cascade restrict
-lnp_numbers_actual dbix virtual view
+groupwise maximums solely by "number"
(no lnp_provider_id!)
Change-Id: If075ddc445825140151855ff3cc64aa63404645e
9 years ago
Gerhard Jungwirth
a69dfcb6db
TT#2395 add anumber upn rewrite tables
...
Change-Id: Iecc36c437d200bac1b3e3fb9da3936ea5e98ead3
9 years ago
Andreas Granig
9a24751ce0
TT#3991 Add ncos level flag for intra-pbx calls
...
If set and a call is done within a pbx customer, the call is blocked
in blacklist, and is allowed in whitelist.
Change-Id: I8b5cb3f8ed73ce7df6871121568a32fae2b6c8c6
9 years ago
Andreas Granig
6777cf289e
TT#2766 Implement inbound peering rules.
...
Change-Id: If7e2d3ec75d20328e408d095c1ea276dc5959921
9 years ago
Irina Peshinskaya
d8e3297eef
TT#2452 Add device profile preferences result set
...
Change-Id: Ida987aca2df686869c9f0f4831dca340a63c3d7d
9 years ago