Irina Peshinskaya
29b988492f
MT#9431 Update usr_preference cloud_pbx_hunt_policy in Subscriber API.
11 years ago
Andreas Granig
64d65a10a5
MT#9277 Implement basic voucher management.
11 years ago
Andreas Granig
d5ee051bd5
MT#9445 Set voicemail_users tz to 'vienna'
...
This makes it backwards-compatible to ossbss. At some point, the
timezone should be taken from the customer or domain, but that would
need to affect also CDRs etc.
11 years ago
Kirill Solomko
79d39d7926
MT#7705 - Remove newline from log strings passed to the logger
11 years ago
Kirill Solomko
22225a3b8d
MT#7705 - LOG= is now persistent in the log messages.
11 years ago
Andreas Granig
17a3260153
MT#9263 Introduce simple_destination in CF API
11 years ago
Andreas Granig
be8cad19bb
MT#8035 Trigger stop_profile on subscriber term
...
... if subscriber had a profile assigned.
11 years ago
Kirill Solomko
71eadae6ea
MT#7705 - Message.pm further edited the pod doc
11 years ago
Kirill Solomko
503cdfcc7f
MT#7705 - remove =item from pod formatting
11 years ago
Kirill Solomko
c2fb0c6e32
MT#7705 - added doc for Utils/Message.pm
11 years ago
Kirill Solomko
e4ecca76e9
MT#8547 - Fix smartmatch ~~ usage
11 years ago
Andreas Granig
86fffe08e1
MT#9263 Fix CF API handling of numbers.
...
Numbers must be normalized to URIs too.
11 years ago
Kirill Solomko
c1c72dd6c7
MT#8547 - replaced experimental "smartmatch" code with the sane if/else custom SWITCH blocks
11 years ago
Andreas Granig
0204022cf5
MT#9225 Modify allowed_clis on add/remove number
...
If ossbss.provisioning.auto_allowed_cli is set, then add/remove
a number from subscriber preference allowed_clis when adding/
removing a number.
11 years ago
Kirill Solomko
0fdf9f815d
MT#7705 - Preference set/get add logging messages for different types 'customer/domain/susbcrber/peer'
11 years ago
Kirill Solomko
f05f921b0f
MT#7705 - Add logging for Subsriber preferences set/get
11 years ago
Andreas Granig
d156577873
MT#9167 Fix setting contract timestamps
11 years ago
Kirill Solomko
2bebc00548
MT#7705 - Add logging for the rest of Controller/* modules. Message.pm: add data size check and trim the value if > 500 length
11 years ago
Kirill Solomko
66e8536f55
MT#7705 - add cname parameter passed to Message for anon subs name definition
11 years ago
Andreas Granig
bd3bd98719
MT#9047 Remove allowed ips before subs termination
11 years ago
Andreas Granig
f3984d4aec
MT#8279 Fix domain normalization for subs.
11 years ago
Irka
65d38e283c
MT#8371 Fix for optimized query build
...
Remove double join for billing_mappings
11 years ago
Irka
d0a6a81d58
MT#8371 Make customer queries up to 10 times faster.
...
More possibilities in billing_mapping history separation.
11 years ago
Andreas Granig
417e89b740
MT#8279 Don't skip preference logic on empty vals.
...
This actually triggered the empty enum bug, and also influences
setting special helper vars for rwr (and probably others), so remove.
11 years ago
Andreas Granig
fbdd04a5c2
MT#8279 Properly fill enums.
11 years ago
Andreas Granig
71acba7111
MT#7705 Fix undef check in logger
11 years ago
Kirill Solomko
cc3d7c3b93
MT#7705 - Fix parametrized sprintf for logging
11 years ago
Kirill Solomko
db5c05fa8e
MT#7705 - Maxdepth for data structures is limited to 1 for the log messages. Check for undefined $desc in Message.pm when no $desc is passed for logging
11 years ago
Kirill Solomko
68a1aa349e
MT#7705 - Rework logging for Controller/Billing module. Improve Message.pm $log parsing and shown as LOG= (optional)
11 years ago
Kirill Solomko
ddc16492cf
MT#7705 - Message.pm - add str data types possibility. no $c->flash for API calls
11 years ago
Kirill Solomko
e24bea1f6a
MT#7705 - get_log_params() set default $type to "panel"
11 years ago
Kirill Solomko
8bc694dbe9
MT#7705 - Rework logging for API calls. Improve log messages in Message.pm
11 years ago
Kirill Solomko
a90de685e9
MT#7705 - add "$data" argument into log methods to manually pass data if required. remove trailing whitespaces
11 years ago
Andreas Granig
b860218f91
MT#8449 Fix clearing unused alias numbers
...
Take billing.voip_numbers as reference for clearing unused dbalias
entries.
11 years ago
Andreas Granig
4f76fdaf96
MT#8633 Properly set is_primary on sub creation
11 years ago
Irka
2a7e76bf51
Revert "MT#8491 Fix subscriber termination via API."
...
This reverts commit 1b654d559a
.
Real fix was done already as fix for the MT#8071
11 years ago
Irka
1b654d559a
MT#8491 Fix subscriber termination via API.
...
1.Provisioning_voip_subscribers may be already deleted during termination.
2.Return issue already fixed in master, seems like not integrated in 3.3.
11 years ago
Irka
78a6d8dd96
MT#5879 Remove Country processing warning.
...
(cherry picked from commit 9d80cba5fd51314bd4909505fc09ce05aa232080)
11 years ago
Irka
99918704a8
MT#5879 Fix broken packages load sequence.
...
To avoid utf8 warning on panel start.
11 years ago
Gerhard Jungwirth
12ee43f671
MT#8395 replace email plugin
11 years ago
Kirill Solomko
a100ad5ea8
MT#7705 add IP into logged messages
11 years ago
Kirill Solomko
18e07b2950
MT#7705 change Panel.pm to use ngcp-panel/logging.conf, reworked Utils/Message.pm logging
11 years ago
Andreas Granig
953142d4f0
MT#8279 Deflate numbers in call list.
11 years ago
Andreas Granig
145291a23e
MT#8279 Deflate CF destination in CSC
11 years ago
Andreas Granig
a5cd159b56
MT#8279 Deflate speed dial in CSC list
11 years ago
Andreas Granig
cf519fb44b
MT#8279 Inflate/deflate block list input in CSC
11 years ago
Andreas Granig
faecaf913c
MT#8279 inflate/deflate subscriber user input
11 years ago
Irka
c43ccd7c5d
MT#8401 Invoce data preprocessing.
11 years ago
Irka
4d1a826aa0
MT#8353 Fix broken build
11 years ago
Irka
45a99ff918
MT#8353 More freedom in money signs configuration. And fix fractional.
11 years ago
Gerhard Jungwirth
ef713a8f84
MT#8287 fix subscriber termination by subadmin
11 years ago
Gerhard Jungwirth
36e44a6439
MT#7673 update voicemail number in api
11 years ago
Gerhard Jungwirth
d57aa0e7ff
MT#7673 update voicemail number in webinterface
11 years ago
Irka
bcc0101682
MT#7867 Return scale 0.8 untill other options tested with real printing
...
(cherry picked from commit 0fbbcf663714153e702cea2d4ffbfba24e0f107c)
11 years ago
Irka
b2f21dd777
MT#7861 Use pixels as main unit to be in accordance with svg-edit.
...
(cherry picked from commit bdd8562fb0ee0a98cb1296822fa1e211fa0d8c5f)
11 years ago
Gerhard Jungwirth
135d48e84a
MT#8015 de translation, some more strings
...
and fix a bug, where empty string gets translated, this returns wrong results
11 years ago
Gerhard Jungwirth
923e2e9b82
MT#8203 subscriber termination registered devices
...
send the proper call. also fix recursive termination on contracts
11 years ago
Gerhard Jungwirth
7b3080f45b
MT#8071 fix api subscriber termination
...
response was handled wrong on patch/put
primary number was not freed in case of pbx
11 years ago
Gerhard Jungwirth
b0a7f8f2b2
MT#7717 explicitly delete related tables of voip_domains
...
to ensure trigger execution on them
11 years ago
Andreas Granig
6d4fb582e3
MT#8035 Use billing.subscriber_id for events
...
Otherwise we won't be able to bill terminated subscribers
11 years ago
Gerhard Jungwirth
93c1daed15
MT#7717 delete voip_domains on reseller termination
11 years ago
Gerhard Jungwirth
c1c1117600
MT#8035 Write start_ivr and end_ivr events
...
when updating cf_mappings or cf_destination_sets
one entry per cf_mapping
11 years ago
Andreas Granig
75def7bf94
MT#7943 Don't access undef provisioning subs.
11 years ago
Andreas Granig
0d577b3490
MT#7935 Show callid, cost and link to callmap.
...
In call history of a subscriber, link to callmap, and show the
call-id and source customer cost in case of admin/reseller.
11 years ago
Andreas Granig
3a9d043d40
MT#7899 API: clear audio cache on sound file mod.
11 years ago
Gerhard Jungwirth
41416d2d10
MT#7843 change svg template to new vat variables
...
new ones are: customer.vat_rate and customer.add_vat
11 years ago
Andreas Granig
e219531acf
MT#7803 Cleanup tmp after invoice generation.
11 years ago
Andreas Granig
22fb7531bd
MT#7793 Explicitely set all event fields on insert
...
Since exported_at is a timestamp, it might be filled automatically
by mysql.
11 years ago
Andreas Granig
9c4dc3d610
MT#7793 Insert start_huntgroup event on new group
11 years ago
Andreas Granig
915cf7749a
MT#7555 Properly terminate subscribers.
...
- Write end_huntgroup if a group
- Move numbers to pilot if it exists
11 years ago
Andreas Granig
9115b48f70
MT#7797 Filter for terminated customers.
...
- Allow status=xxx in collection
- Fix moving customercontacts
11 years ago
Andreas Granig
4f370287af
MT#7793 Only log subprofile event on prof-change.
11 years ago
Andreas Granig
213e6bb606
MT#7793 Implement event billing for subprofiles.
...
Write start/end/update_profile event on subscriber modification.
11 years ago
Andreas Granig
59c69d2c10
MT#7771 rename pbx_account_cli_list
...
Use cloud_pbx_account_cli_list instead.
11 years ago
Andreas Granig
2d9be3f212
MT#7771 Introduce @{...} for match in rewrite rule
...
It inflates to $(avp(s:xxx)[*]) and can then be used to match against
AVP lists.
11 years ago
Andreas Granig
3a420aa0b9
MT#7731 Fix sound set handling for resellers
11 years ago
Andreas Granig
f41626e521
MT#7545 Allow multiple pbx groups per subscriber
11 years ago
Andreas Granig
adffda31ac
MT#7699 Strip colons from mac/identifier
11 years ago
Andreas Granig
462b0bf3e1
MT#7177 API: also evaluate callee_xxx rwr vars.
...
Load the AVPs from the same subscriber as for caller, as we should
not intermix them anyways.
Treat non-existent vars as empty vars like kamailio does.
11 years ago
Andreas Granig
7c8e355fbc
MT#7177 API: add /api/applyrewrites/ for rwr.
...
Normalize/denormalize a number based on the subscriber and the
direction.
11 years ago
Andreas Granig
1d26af6afe
MT#7177 Implement callee normalization. WIP.
11 years ago
Andreas Granig
2f06618362
MT#4019 Implement C2D in api via /api/callcontrols
11 years ago
Irina Peshinskaya
a72adaea52
MT#5879 Invoice generation fixes.
...
Use correct name for zone fees cost.
Fix condition for char column in script.
Add root element to xml before XPath parsing to avoid errors about
the same elements on root level.
Set timezone to local. Maybe it shouldn't be, but then should be changed
in both used methods.
Todo:
Country name for generation from web.
Clarify and implement if neccessary generation of existing invoice from web.
Now invoice for the same period created.
11 years ago
Irina Peshinskaya
636ebe26cf
MT#5879 Fix invoices amount, related to cents.
11 years ago
Irina Peshinskaya
a050e6777e
MT#5879 Fix for invoices.serial unique index
11 years ago
Irina Peshinskaya
006d6241e2
MT#5879 Generate and/or send invoices script. Seems as working.
...
Testing is in progress.
11 years ago
Irina Peshinskaya
ee8c27fa43
MT#5879 Fix rebase merge error.
11 years ago
Irina Peshinskaya
c60c9af216
MT#5879 Error in not inflated date values.
...
But other seems as working.
11 years ago
Irina Peshinskaya
17d98b9faa
MT#5879 Merge with Andreas changes.
11 years ago
Irina Peshinskaya
17f678dee2
MT#5879 Separate invoice generation from sending and some fixes.
...
Commit:
Separate invoice generation and sending, although still can be
together id options tell.
Remove dev method call, which made invoice list broken.
Some little format changes.
Todo:
Add country_name into invoice generation script.
Care about email template correct process vars.
11 years ago
Irina Peshinskaya
eff6d772a9
MT#5879 Fix for invoice generation.
...
Invoice generation script uses mock catalyst context object, so no real
looging should be called. Or logge object shpould be mocked too. (TODO).
11 years ago
Andreas Granig
6ec99075ca
MT#7471 Implement web and api for contract prefs.
11 years ago
Andreas Granig
69e20a8629
MT#7377 API: fix alias_numbers and pbx_extension
...
Properly handle alias_numbers and pbx_extension fields when
creating or updating a subscriber.
11 years ago
Andreas Granig
9679565f50
MT#5879 Fetch call list for invoices. WIP.
11 years ago
Andreas Granig
1147ad5db0
MT#5879 Remove more debug messages.
11 years ago
Andreas Granig
ddfdb0d7a5
MT#5879 Cleanup debug messages.
11 years ago
Andreas Granig
98364a891b
MT#5879 Rework VAT handling in invoices.
11 years ago
Andreas Granig
8efa32a98a
MT#7377 Use is_pbx_pilot instead of admin flag
11 years ago
Andreas Granig
12fec06a68
MT#5879 Making invoice creation work w/ real data
...
Costs etc are still wrong, but we'r getting somewhere.
11 years ago
Andreas Granig
b827f73ab4
MT#5879 PoC of generating invoice out of template
...
Rework zone fee handling.
Implement invoice creation (WIP) - still real template data missing.
11 years ago
Andreas Granig
d51779ddab
MT#5879 Align dummy data to new contacts schema.
11 years ago
Andreas Granig
5cbb82747a
MT#5879 Align invoice template to clean db schema
11 years ago
Andreas Granig
02e58b0360
MT#5879 Completely redo invoice template handling.
...
Use a more clean default template.
Properly render page numbers.
Cleanup cleanup cleanup.
11 years ago
Andreas Granig
807e77855d
MT#5879 Rework dummy variable handling for invoice
11 years ago
Andreas Granig
fa07184a46
MT#5879 Rework rendering PDF preview.
11 years ago
Andreas Granig
fdde82379b
MT#5879 Store invoice templates on save.
11 years ago
Irina Peshinskaya
fef6ea95c7
MT#5879 New template. Title pages is topic for questions.
11 years ago
Irina Peshinskaya
45b475327b
MT#5879 Save state before start geography implementation
11 years ago
Irina Peshinskaya
b01714cca4
MT#5879 Bug fixes.
...
Fixed svg preprocessing related to svg-edit layers configuration.
Fixed total records for datatables information.
11 years ago
Irina Peshinskaya
9cfd974e70
MT#5879 Preparations to merge into master
...
Part 2.
11 years ago
Irina Peshinskaya
cd07b84a1c
MT#5879 Preparations to merge into master
...
Part 1.
11 years ago
Irina Peshinskaya
63c52f3180
MT#5879 Changes according to Andreas letter.
11 years ago
Irina Peshinskaya
7465db49d4
MT#5879 Send invoice to email functionality draft.
...
Todo:
Add invoice email into db. Send email functionality.
Conditional fields in HFH.
Expand accordions on demand.
11 years ago
Irina Peshinskaya
4ed50bd105
MT#5879 Lost part of merge on master head.
11 years ago
Irina Peshinskaya
d22ade4c4e
MT#5879 Generation from web: not tested yet.
11 years ago
Irina Peshinskaya
275d6a7356
MT#5879 Fix datetime datatables search for no-epoch fields.
11 years ago
Irina Peshinskaya
7ab5ab3c85
MT#5879 Filter invoices by client. Generate form.
...
Left to do:
fix filtering by date, if field isn't a eppoch
generation
mark selected client in clients list. add big button to clear client selection
11 years ago
Irina Peshinskaya
90cf44857c
MT#5879 Fix commited error with remove pageStart.
11 years ago
Irina Peshinskaya
2fbc3dd85f
MT#5879 Save state before adding from-to search to invoices.
11 years ago
Irina Peshinskaya
fab290e99a
MT#5879 Fix creating of datetime with full parameters.
...
Zone can be moved to class variable?Later.
11 years ago
Irina Peshinskaya
bde7cc02e6
MT#5879 Put PDF to DB.
11 years ago
Irina Peshinskaya
d5c2b33a0c
MT#5879 Use total from pages
11 years ago
Irina Peshinskaya
0d39395842
MT#5879 Script to generate invoices from templates.
11 years ago
Irina Peshinskaya
96bb4cb5b8
MT#5879 Use get_contract_rs as clients list sub.
...
To be replaced by direct query.
11 years ago
Irina Peshinskaya
d87e6b297b
MT#5879 Replace invoices to separated controller.
...
CRLF windows git makes issues with on VM run. Some files were converted manually.
11 years ago
Irina Peshinskaya
5e30919042
MT#5879 Draft of calls pages in template
...
1. Add calls templates, data methods.
2. Complete new invoices look.
3. Remove php files from svg edit
11 years ago
Irina Peshinskaya
135dad02d5
MT#5879 Draft of invoice template movement to reseller.
...
1.Remove curly brackets from svg template
2.Move invoice template templates to their own folder and change pathes accordingly.
3.Move invoice_template functionality to Reseller. maybe should be separated in new Controller.
4.Move InvoiceTemplate form to its own sppace from Customer
11 years ago
Irina Peshinskaya
f6fe84df61
MT#5879 Datatables is shown now for invoice data but search doesn't work. Anyway switch now to invoices generation and will return to datatables later.
...
Done:
1.Form separated for future possible load through ajax.
2.Activity switch in invoice templates table
11 years ago
Irina Peshinskaya
3e557152bc
MT#5879 Separate actions for invoice templates. Saving and view should be separated too. Rename ttemplates: calls to invoice and "template" according to content.
11 years ago
Irina Peshinskaya
8834411f8e
MT#5879 separate row listing subs in template toolkit to have possibility generate multi-parted document
11 years ago
Irina Peshinskaya
4f19965240
MT#5879 Separated Model DB actions. Time spent with FormHandler and Catalyst::Adaptor.
11 years ago
Irina Peshinskaya
7c3a045ddc
MT#5879 Save some intermediate state. Started to implement fields checks, format a little calls.tt.
11 years ago
Irina Peshinskaya
ae5360882a
MT#5879 separate row listing subs in template toolkit to have possibility generate multi-parted document
11 years ago
Irina Peshinskaya
468420909d
MT#5879 Separated Model DB actions. Time spent with FormHandler and Catalyst::Adaptor.
11 years ago
Irina Peshinskaya
a1cf4235ef
MT#5879 Save some intermediate state. Started to implement fields checks, format a little calls.tt.
11 years ago
Irka
33b13847b0
MT#5879: Fix applying empty search for admin
11 years ago
Irka
b79bdb342a
MT#5879: Failed with condition unification for reseller_id of contracts. Return to double search using to construct query.
11 years ago
Irka
75f16d14b5
Failed with condition unification for reseller_id of contracts. Return to double search using to construct query.
11 years ago
Gerhard Jungwirth
1eadcf7ea7
MT#3955 API callcosts: filter by subscriber_id
11 years ago
Gerhard Jungwirth
ac74b9774d
MT#3955 API callcosts: GET
11 years ago
Andreas Granig
aaac4b6415
MT#7067 API: Implement sound set handling.
11 years ago
Andreas Granig
7df32a993b
MT#7039 API: implement SIP registration handling
11 years ago
Andreas Granig
f96f08f706
MT#4967 clean up moving alias numbers.
...
Also allow admin/reseller to move numbers.
11 years ago
Andreas Granig
b95daedc79
MT#6967 Alias range handling and first sub cleanup
11 years ago
Andreas Granig
6a568e2bc9
MT#6843 API: only autogen pass if not provided
11 years ago
Andreas Granig
4341a39cf6
MT#6871 Fix subscriber editing.
...
- Migrate from custom subscriber struct to normal resultset.
- Properly handle boolean input in form processing (convert to
int, otherwise formhandler fails while cloning when doing the
processing).
- Properly handle profile set editing in API
- Cleanup of log messages
11 years ago
Andreas Granig
9097768d58
MT#6773 Remove any Data::Printer calls
...
Printing a hash with Data::Printer causes at least the API to not
return the hash, and back-porting libclone-perl to wheezy to fix it
caused the whole panel to get stuck.
11 years ago
Andreas Granig
aed5d7ef09
MT#6843 Implement password auto-generation.
11 years ago
Andreas Granig
2bf4fe1e92
MT#6831 Implement global password policy.
11 years ago
Andreas Granig
256de924e3
MT#6789 Add password recovery components.
11 years ago
Andreas Granig
bf5ec092bb
MT#6789 Add subscriber email and password recovery
...
- subscribers can hold an email address
- implement process for web password recovery
11 years ago
Andreas Granig
92b7b5ea89
MT#6693 Fix initial subscriber creation.
...
In this case, there is no provisioning subscriber yet.
11 years ago
Andreas Granig
ceb53a1837
MT#6693 Fix subadmin subscriber editing.
11 years ago
Andreas Granig
9aead3f255
MT#6693 More subscriber editing rework.
...
- Update base cli of extensions on pbx admin primary number change.
- Use proper forms (hopefully) for editing various pbx subscriber types.
11 years ago
Andreas Granig
16b44673f4
MT#6693 Rework PBX subscriber/group handling.
11 years ago
Andreas Granig
17d4140b64
MT#6693 Add separate form for subadmin pbx flow.
11 years ago
Andreas Granig
8c867420e8
MT#6693 Rename profile categories to profile sets.
11 years ago
Andreas Granig
4cf62bc8cd
MT#6693 Assign profiles to subscribers - WIP.
...
TODO:
- Subadmins must not see a "Create" button in profile selection
- Can sub(admins) unset a profile? What's the default?
11 years ago
Andreas Granig
88bcc049f5
MT#6731 Remove "back" param from form if posted.
...
Somehow this sneaked in from somewhere and so far only happens with
resellers, so make sure to just clear it if a form got posted.
11 years ago
Gerhard Jungwirth
b343f16e5e
MT#6497 API: edit callforwards
...
we use the billing.voip_subscribers id now (as everywhere else)
11 years ago
Gerhard Jungwirth
fc1c89a7c1
MT#6497 API: get callforwards (simple)
11 years ago
Irina Peshinskaya
021b0af430
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 years ago
Andreas Granig
32f704451a
MT#6459 Fix peering contract and peer auth pref.
...
- Properly call localization functions on error when changing
peering contract.
- Properly handle preference update in case of empty value.
Reported by Marc Storck on spce-users.
11 years ago
Irina Peshinskaya
bd7d18c49b
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 years ago
Gerhard Jungwirth
720e70b939
MT#4369 optimize callflow using a custom query
...
we need to disable the sorting option on the columns though
11 years ago
Irina Peshinskaya
8508efc754
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 years ago
Gerhard Jungwirth
8b7cdbb630
MT#6013 ignore duplicate insert errors
...
contract balances are created on demand, by different components so
race conditions can occur
11 years ago
Alexander Lutay
1c8ff01cc1
MT#5083 Fixes for several SendFax WEB interface issues
11 years ago
Irina Peshinskaya
f5b02e48f0
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 years ago
Irka
631a069a02
MT#5879 Very basic logic without storing to db. But seems as will be able to make it generic against template types.
11 years ago
Andreas Granig
432080d384
MT#5929 More external_id fixes.
...
Set external_id to NULL in db if it's empty.
Properly clear ext_xxx_id preferences if external_id gets unset.
11 years ago
Irka
9b60794394
MT#5879: Fix applying empty search for admin
11 years ago
Irka
b61732daa5
MT#5879: Failed with condition unification for reseller_id of contracts. Return to double search using to construct query.
11 years ago
Irka
fb891ee0ed
Save state with incorrect, but fast svg template apply
11 years ago
Andreas Granig
74aeb7938d
MT#5929 Fix lock, ext_xxx_id and dbalias handling.
...
- ext_subscriber_id and ext_contract_id preferences weren't populated correctly.
- subscriber lock preference wasn't populated correctly
- old dbalias entries weren't cleared correctly for API calls
11 years ago
Andreas Granig
d445274d1d
MT#5967 API: validate allowed ip entries.
11 years ago
Andreas Granig
c61b9eec5d
MT#3933 API: Handle subscriber lock/termination
11 years ago
Andreas Granig
71b8d2e957
MT#5967 Validate (man_)allowed_ip input.
...
Check for valid v4/v6 address and optional netmask.
11 years ago
Andreas Granig
da79426c00
MT#3933 API: Implement subscriber preferences.
...
While at it, combine preference handling for subscribers, domains
and peers into a single role.
11 years ago
Andreas Granig
2f749a341a
MT#3933 API: add subscriber editing via PUT/PATCH
11 years ago
Andreas Granig
0f26d8fcbe
MT#3961 Update German localization.
11 years ago
Andreas Granig
b88d36bdf0
MT#5083 Implement sendfax in ngcp-panel.
12 years ago
Andreas Granig
d508a519c8
MT#3933 API: tighten subscriber creation.
12 years ago
Gerhard Jungwirth
ede44ba653
MT#3961 automatic extraction of formhandler strings
...
it is important, that all form work without ctx available, so we add a check
in them
12 years ago
Gerhard Jungwirth
8981667b77
MT#3961 Translate Preference groups
12 years ago
Gerhard Jungwirth
f7d4d8bb3d
MT#3961 I18N-ize missing strings
12 years ago
Gerhard Jungwirth
a272512298
MT#3961 Prepare to localize DB-Strings
...
For now, we ignore square brackets
12 years ago
Andreas Granig
6cd4ef04f1
MT#5629 Fix setting external_id in customer ctx.
12 years ago
Andreas Granig
aa5eee69a0
MT#5575 Migrate clear_audio_cache to Sems helper.
12 years ago
Gerhard Jungwirth
ef6bfee65b
MT#4967 update cloud_pbx_base_cli and other settings on cloudpbx-subscribers
...
This includes: primary_number, dbaliases, cfs
12 years ago
Gerhard Jungwirth
11841b2bba
MT#5465 preferences_enum stop using default_val
...
The real default enum option is the one with value set to NULL
12 years ago
Andreas Granig
e8fa8b2f9c
MT#5349 API: Implement domain preferences. WIP.
...
Missing sanity checks and special handling for certain preferences.
12 years ago
Gerhard Jungwirth
2c7a0c4e6b
MT#4967 Let subadmins steal numbers
...
A subadmin can use the field alias_select to select any number of alias
numbers, which he is allowed to manage. If he selects one, it moves
to this subscribers alias_numbers. If he unselects one, it moves to his
own alias numbers.
12 years ago
Andreas Granig
5e5fbeeda6
MT#5307 Fix GD::Simple to avoid race conditions
12 years ago
Andreas Granig
7e3a2997f4
MT#5355 Implement peer_auth api calls to sems.
12 years ago
Andreas Granig
1656f051d0
MT#5101 Mark primary numbers in voip_dbaliases.
12 years ago
Gerhard Jungwirth
f11ae484ef
MT#3917 do not alter datetime objects from schema
...
this is now correctly handled in the schema (it gives us localtime, so
we do not have to do anything)
12 years ago
Gerhard Jungwirth
4fa47ff2b0
MT#4767 Show missing registered devices
...
on a non-multidomain installation, dont check for domain
in customer details - subscribers - registered devices
12 years ago
Andreas Granig
f8dfb8fcae
MT#5009 Use proper alias number sub-elements.
12 years ago
Andreas Granig
d62a5ac948
MT#5009 Fix syntax error.
12 years ago
Andreas Granig
4384ec33b2
MT#5009 Properly reuse alias numbers also.
...
Previously, we assumed they were already deleted in billing.voip_numbers,
which they're not (anymore).
12 years ago
Andreas Granig
2258395ed7
MT#5009 Properly free voip_numbers on termination.
...
Don't delete voip_numbers (which was forgotten if the status
got set to terminated anyways), rather than free them by
undef'ing the subscriber_id and reseller_id.
12 years ago
Andreas Granig
e3ba8b4243
MT#5009 Properly re-use free numbers.
...
Don't try to insert a number into billing.voip_numbers directly,
rather than using the update_subscriber_numbers helper, which
handles the re-using of free numbers.
12 years ago
Andreas Granig
059607a8c7
MT#4955 Only allow one ss, set dom-pref np-display
...
If a sound set is contract default and you create another default one,
the old gets non-default.
Properly handle contract default setting also when editing sound sets.
And while at it, set np-display as outbound-from-display-name dom-pref
when creating a PBX domain.
12 years ago
Andreas Granig
afa196900c
MT#4971 Fix follow symlink sp-SELF in statistics.
12 years ago
Andreas Granig
e2ccdf3442
MT#4955 Introduce customer default sound sets.
...
If a new contract sound set is marked as contract_default, use this
for every existing subscriber in contract_sound_set prefs if no
other set is specified yet.
If a new subscriber is created and such a sound set exists, also
use this one.
This prevents having to go over each single subscriber to assign
the contract_sound_set preference.
12 years ago
Andreas Granig
d2dfbeab1c
MT#4949 Use pbx in call flow graph.
12 years ago
Andreas Granig
2ee40a3a6c
MT#3917 Show datetime in local timezone for DT.
12 years ago
Andreas Granig
58b496065e
MT#4657 Make ac an empty string if undef.
12 years ago
Andreas Granig
96edceda6d
MT#4655 Show reseller name in device mgm.
12 years ago
Gerhard Jungwirth
21482c00ec
MT#4289 separate customer/ajax and contract/ajax
...
This is the first step towards separating the
tight coupling of the Customer and Contract Controllers.
Mantis: 4289#c25035
12 years ago
Andreas Granig
3030a62a73
MT#4413 Remove debugging messages.
...
This even breaks domain creation for PBX.
12 years ago
Andreas Granig
9ef4961e97
MT#3925 Migrate more common methods into Role.
12 years ago
Gerhard Jungwirth
8bdd9f42fb
MT#4261 alias number handling
...
Now also handle alias numbers with the outsourced subroutine
update_subscriber_numbers.
Plus remove some leftovers which are already handled by
this sub.
12 years ago
Gerhard Jungwirth
124137ca63
MT#4261 number handling on subscriber update
...
Actually use update_subscriber_numbers when updating a subscriber
and not only when creating one. Also handle all neccessary side effects.
Now we can switch our primary number to a number which has been
inactive (that is: did not belong to a subscriber) without an update error.
12 years ago
Gerhard Jungwirth
a1e04e33f7
MT#4261 Proper number handling on subscribers
...
Outsource the handling of the primary number from
the subscriber controller to a util sub called
update_subscriber_numbers.
It also takes care to reuse a number that has
subscriber_id set to NULL which caused the original
problem in the ticket.
12 years ago
Andreas Granig
e03bd513ba
MT#4025 Only show customer sound sets for admins.
...
When in customer details, only show sound sets for customer when
logging in as admin/reseller.
12 years ago
Andreas Granig
e93c68c58c
MT#4025 Manage customer sound-sets in details view
12 years ago
Andreas Granig
ff68cbdf84
MT#4309 Show locked subs in Customer Details
...
Before, only active ones where shown.
12 years ago
Andreas Granig
1761945b8c
MT#4025 Implement contract_sound_set preference.
...
Let the subscriber choose a contract-wide sound set e.g. for PBX announcements.
12 years ago
Andreas Granig
ed359aacd5
MT#3977 Implement backend for multi-line PBX conf
...
This makes it possible to configure multiple lines (private, shared,
blf) and attendant console keys (blf) on a field device and generate the
proper config for it.
It does not yet support editing such a field device.
12 years ago
Gerhard Jungwirth
76f4bdd14c
Restrict certain domain-prefs to their respective reseller
...
The preferences rewrite_rule_sets, ncos_levels, and sound_sets
on a domain should be restricted to ones, that have the same reseller
as the domain itself.
In addition we have to make sure, the preference view does not die,
if an invalid preference had already been selected, for example when
the respective *set/*level had been deleted or had been one, with a wrong
reseller, because of this bug, we just fixed.
Mantis: 4127
12 years ago
Andreas Granig
dd62516857
Fix $controller::auto declaration.
12 years ago
Andreas Granig
8a194e5055
Use preference label instead of attribute.
...
For admins and resellers, show label in addition to attribute.
For subscribers, only show label.
12 years ago
Andreas Granig
6e8ac2aa70
Show subscriber login CF widget and allow prefs.
...
Only allow access to the preferences marked as expose_to_customer.
12 years ago
Andreas Granig
1809b44245
MT#3981 Write numbers to provisioning.voip_dbalias.
...
Before, we wrongly wrote directly to kamailio.dbaliases instead of
provisioning.voip_dbaliases.
12 years ago
Alexander Lutay
38e31a6ac8
TT#3921 Usability enhancement for SIP call diagram
...
Sip diagram no longer have hardcoded parts LB, PROXY, APP, SBC.
The componnets order on diagram exactly the same as
order in call, usually it is "UA1->LB->PROXY->SBC->UA2...->UAx".
12 years ago
Gerhard Jungwirth
1991296383
Filter Contract Contacts by whether they have a reseller_id
...
in case the product in billing_mappings is one of
(SIP_PEERING, PSTN_PEERING, VOIP_RESELLER)
12 years ago
Gerhard Jungwirth
5936b599d5
Fix saving preferences of type enum with empty value
...
when a preference with empty value is saved, this row was just
deleted from the db. This is not true for enums, because an empty string
is not always the default value. Therefore we only delete enum preferences
when their value matches the one of the enum, configured as default.
This can be checked, by setting the domain preference outbound_pai_user
to None, which resulted in wrong behaviour before.
Mantis: 3769
12 years ago
Andreas Granig
d801311821
Remove debug output to stdout.
12 years ago
Andreas Granig
acf36bde4b
Add PBX auto-attendant and office-hours CF targets
12 years ago
Andreas Granig
ceb9f80eab
Use proper PBX group helper when changing PBX ext.
12 years ago
Andreas Granig
9efb1f8124
Allow changing PBX group for PBX extension.
12 years ago
Andreas Granig
5f9c114ef5
Select rewrite rule set for PBX domain creation.
12 years ago
Andreas Granig
00e13f9209
Implement editing PBX extension subscribers.
12 years ago
Andreas Granig
9a1873bfd8
Fix test environment.
12 years ago
Andreas Granig
63e9ded2ca
Properly set PBX preferences and use transaction.
12 years ago
Andreas Granig
23675b4da3
Implement group, admin and ext handling for PBX.
12 years ago
Andreas Granig
fe580d3c53
Show product name in customer details.
12 years ago
Gerhard Jungwirth
07d3ee5244
provide error message on "column" cannot be null
...
and by making the respective field not_nullable prevent this from even
happening
Mantis: 3677#c22033
12 years ago
Gerhard Jungwirth
4cfa5b7870
Only expose delete button to contacts with no contracts
...
else the delete fails anyway with foreign key constraint
12 years ago
Gerhard Jungwirth
f7586a4e29
fix missing include "NGCP::Panel::Utils::DateTime"
12 years ago
Andreas Granig
ad9a8bb4dd
Use localtime in TS and set createtime for subs.
...
Consequently use server's localtime to align with auto-filled timestamps.
Set create_timestamp when creating subscribers.
12 years ago
Gerhard Jungwirth
778c3caba3
fix missing validation on integer preferences
...
which failed a test
also adapt the domain test to the new login path
12 years ago
Gerhard Jungwirth
0909c813f3
Use the messaging utility for Domains
12 years ago
Gerhard Jungwirth
f569c82dd6
adapt search data structure to older versions of DBIx::Class
...
we would require 0.08250 to omit this
12 years ago
Gerhard Jungwirth
e892998959
Adapt literal sql to older versions of DBIx::Class
...
the previous version failed on the debian version (0.08196)
12 years ago
Gerhard Jungwirth
e44482fee6
possibility to search a subscriber by his number
...
Mantis: 0003599
12 years ago
Gerhard Jungwirth
62124acf50
Have a new messaging util for custom filtering of error messages
...
Use MooseX Method signatures for a cleaner environment
12 years ago
Gerhard Jungwirth
356891c29b
Handle the preference man_allowed_ips like allowed_ips
12 years ago
Gerhard Jungwirth
c33021d30e
Handle allowed_ips preference.
...
Write data to voip_allowed_ip_groups. Use voip_aig_sequence as counter.
Also move the Preference handling to Utils/Preferences.pm
12 years ago
Gerhard Jungwirth
ec18d91ee8
move admin deletion to Utils::Contract::recursively_lock_contract
...
and prohibit deletion of the currently used account
12 years ago
Andreas Granig
70d9280af7
Fix syntax error.
12 years ago
Andreas Granig
f9ed88af39
Provision "search" domain to prosody.
...
Implicitely add a domain search.$domain for each domain we're creating,
and tie the sipwise_vjud XEP-0055 module onto it.
12 years ago
Andreas Granig
56c167c575
Fix terminating voip_subscribers for reseller.
12 years ago
Andreas Granig
6054ada6fb
Tell prosody about new/deleted domains.
12 years ago
Andreas Granig
bd60a1dbda
Pretty-print timestamp in call flows.
12 years ago
Andreas Granig
688ed5871e
Implement backend png graphing of call flows.
...
This is the second part of the SIP callflow implementation.
12 years ago
Andreas Granig
9beefb8f83
Implement backend for downloading pcaps.
...
This is the first part of the callflow analyzer.
12 years ago
Andreas Granig
ba46a201a9
Use Sipwise::Base instead of Moose.
12 years ago
Andreas Granig
e770783788
Fix navigation and CF handling.
...
Old CF handling didn't work with Firefox due to some auto-focus issue with our
HTML code in the URI/timeout fields.
12 years ago
Andreas Granig
01b3856ee7
Align domain handling to new DT mechanism.
...
While we're at it, show reseller domains in reseller details.
12 years ago
Andreas Granig
e1f7a4710e
Properly handle back button.
12 years ago
Andreas Granig
21af84fdf6
Lots of cleanups and bugfixes and back-nav.
...
Implement automatic back navigation.
Fix subscriber creation.
Unify controller handling.
12 years ago
Andreas Granig
08e5a2a3a8
Propagate reseller and contract status to children
...
Properly terminate/lock/unlock sub-contracts and subscribers if the
parent contract status changes.
12 years ago
Andreas Granig
04296de4c4
First part of reworking reseller handling.
12 years ago
Andreas Granig
55b79ae3d6
Properly handle sort and search for nested joins.
12 years ago
Andreas Granig
0b37392f54
Enhance navigation.
...
Simplify back-uri for navigation utils calls.
Start using back_or navigation utils function for auto-checking
close-targets.
Move navigation stack check into auto of each controller.
12 years ago
Andreas Granig
4b3d1caab6
Streamline forms in regards to submitid.
12 years ago
Andreas Granig
b2ba73cecc
Cleanup debug messages.
12 years ago
Andreas Granig
46f4a3a609
Implement system statistics page.
12 years ago
Andreas Granig
b194556431
Move transcoder to separate file.
...
Transcode VM messages to get WAV instead of WAV49.
Fix sound set handling and transcode PCMA to WAV.
12 years ago
Andreas Granig
da4170c2a6
Implement voicemail table.
...
Listening to WAV49 doesn't seem to work out of the box with a normal
linux player, probably we need to transcode GSM?
12 years ago
Andreas Granig
06a6470783
Filter rows by date range, e.g. CDR table.
12 years ago
Andreas Granig
114742b366
Implement call list.
12 years ago
Andreas Granig
ba30dde294
Implement new datatables ajax dispatching.
...
It works with single-nested joins both for searching and ordering,
and the definition of what is searchable and what is displayed is
done in the controller once during setup.
12 years ago
Andreas Granig
efddf71181
Pretty-print CF destinations.
12 years ago
Andreas Granig
076d7a8963
Pretty-print period definitions.
12 years ago
Andreas Granig
f996d4a15e
Move naviation to NGCP::Panel::Utils::Navigation
12 years ago
Andreas Granig
86d89f881d
Some cleanups using preference helper.
12 years ago
Gerhard Jungwirth
4b4c393c41
adapt new schema with single namespace
...
just domain creation/delete is not working yet
12 years ago
Gerhard Jungwirth
36d3317da8
XMLDispatcher
12 years ago
Andreas Granig
98a7b3867c
Move contract_balance creation to tmp helper.
...
This needs to be implemented in the schema at some point!
12 years ago