Andreas Granig
427bd2e312
MT#6913 API: Basic management of profile sets.
12 years ago
Andreas Granig
3ec2d88bfe
MT#6909 API Check for existance of email tmpl name
...
Make sure to not expose internal error on duplicate email template
name/reseller.
12 years ago
Andreas Granig
f47c7d114f
MT#6909 API: add reseller rel to emailtemplates
12 years ago
Andreas Granig
954367aad5
MT#6827 Update api description for pbxdevices
12 years ago
Andreas Granig
cd98d27ad7
MT#6909 API: implement email template management.
12 years ago
Andreas Granig
1da7f9a7bc
MT#6789 API: validate email template id
...
Its reseller needs to match the customer contact's reseller.
12 years ago
Andreas Granig
6a568e2bc9
MT#6843 API: only autogen pass if not provided
12 years ago
Andreas Granig
88c6e4d78f
MT#6789 API: handle subscriber email and profile.
...
Handle new email field.
Fix profile handling on subscriber creation.
12 years ago
Andreas Granig
e9d30a3b89
MT#6773 Remove DDP, shortcut for Data::Printer
12 years ago
Andreas Granig
976843e55e
MT#6827 API POST/PUT/PATCH/DELETE of field devices
12 years ago
Gerhard Jungwirth
d2a3348a78
MT#6827 API pbxdevices POST
...
wip
12 years ago
Gerhard Jungwirth
816fbcefb6
MT#6827 API pbxdevices GET
...
wip
12 years ago
Gerhard Jungwirth
438fba5855
MT#6827 fix missing data in customer details
12 years ago
Andreas Granig
a5fd61fe72
MT#6871 FIx subs creation if contract.external_id
...
Stupid copy/paste error using wrong contract var.
12 years ago
Andreas Granig
1e235bef44
MT#6789 Fix empty string as email template id.
...
Causes creating customers to fail.
12 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
12 years ago
Andreas Granig
8823a94c8d
MT#6693 Clear subscriber prefs on profile change
...
If a subscriber changes from one profile to another, clear all
preferences which are not part of the new profile.
12 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.
12 years ago
Andreas Granig
79e2274a4b
MT#6789 Clear old password on logged-in reset.
...
That way we force the user to change the pass, otherwise he can't
log in anymore.
12 years ago
Andreas Granig
b4ef15ded2
MT#6693 Deny resellers edit attribs of subprofiles
...
Only basic information (name, default profile) can be changed if
profile_sets.reseller_edit is set to 0 in the panel config.
12 years ago
Andreas Granig
76cd2f2a33
MT#6693 Let reseller be chosen on profset cloning
12 years ago
Andreas Granig
aed5d7ef09
MT#6843 Implement password auto-generation.
12 years ago
Andreas Granig
80b4b30e51
MT#6693 Clean up orphaned methods.
12 years ago
Andreas Granig
c5c8f1089b
MT#6789 Add switch to allow anonymous pwd recovery
12 years ago
Andreas Granig
fd1ce99ea1
MT#6789 Don't clear old password on pwd reset.
12 years ago
Andreas Granig
2bf4fe1e92
MT#6831 Implement global password policy.
12 years ago
Andreas Granig
6b6d5e0aa7
MT#6789 Add "forgot password" feature for subs.
12 years ago
Andreas Granig
256de924e3
MT#6789 Add password recovery components.
12 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
12 years ago
Andreas Granig
507402c561
MT#6789 Choose email template for customer - WIP
...
Select an email template for subscriber creation and for password reset
when creating or editing a customer.
WIP, not compiling yet by intention.
12 years ago
Andreas Granig
02610faa68
MT#6789 Implement email template management.
...
Basic functionality to create, edit and delete email templates.
12 years ago
Andreas Granig
5aea5658df
MT#6693 Remove CF/prefs in case of profile edit
...
Make sure to clear preferences and CF mappings if they get
unselected in the profile during editing.
12 years ago
Andreas Granig
f7f11fd5e7
MT#6693 Allow admin to change profileset of pbxext
12 years ago
Gerhard Jungwirth
bebc4de4d5
MT#3933 Exclude terminated subscribers from subscriberpreferences
...
This complies with /api/subscribers and fixes a wrong count of
available subscriberpreferences in the collection.
12 years ago
Gerhard Jungwirth
24ad811460
MT#6695 error checks on generating certificates
12 years ago
Gerhard Jungwirth
35c5ef8fe7
MT#6695 separate api/server certfile
12 years ago
Gerhard Jungwirth
2fc4743183
MT#6497 API use billing subscriber id on all places in cf_*_sets
...
that is:
- api/cfdestinationsets
- api/cftimesets
12 years ago
Gerhard Jungwirth
0feca3ea94
MT#6497 API cfmappings handle ringtimeout for cft
12 years ago
Gerhard Jungwirth
63ac99218e
MT#6497 API cfmappings PUT, PATCH
12 years ago
Gerhard Jungwirth
a11b53aa3e
MT#6497 API cfmappings GET
12 years ago
Andreas Granig
c1307b1cbe
MT#6693 Fix extension creation without profile set
12 years ago
Andreas Granig
92b7b5ea89
MT#6693 Fix initial subscriber creation.
...
In this case, there is no provisioning subscriber yet.
12 years ago
Andreas Granig
ceb53a1837
MT#6693 Fix subadmin subscriber editing.
12 years ago
Andreas Granig
a3f944e777
MT#6693 Show extension vs number for customer subs
12 years ago
Andreas Granig
560bf47ab1
MT#6693 Fix PBX group editing.
12 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.
12 years ago
Andreas Granig
16b44673f4
MT#6693 Rework PBX subscriber/group handling.
12 years ago
Andreas Granig
f197d4a665
MT#6693 Fix profile(set) editing of pbx subs.
12 years ago
Andreas Granig
e98c94d1e8
MT#6693 Remove reseller "back" param workaround.
12 years ago
Andreas Granig
17d4140b64
MT#6693 Add separate form for subadmin pbx flow.
12 years ago
Andreas Granig
40663ebf56
MT#6693 Filter call-forwards for subs profiles.
12 years ago
Andreas Granig
9e57582662
MT#6693 Let admin/reseller clear subs profiles
12 years ago
Andreas Granig
202b9c9f39
MT#6693 Let subadmins edit subscriber profile.
12 years ago
Andreas Granig
8c867420e8
MT#6693 Rename profile categories to profile sets.
12 years ago
Andreas Granig
bc4bffc930
MT#6693 Align subs profile CRUD to catalog schema.
12 years ago
Andreas Granig
4d430b7578
MT#6693 Introduce profile catalogs.
...
Profiles are grouped into catalogs, so a subscriber should get a
catalog assigned, and from there he can choose his own profile.
12 years ago
Andreas Granig
a89b8ead71
MT#6693 Basic pref filter based on subs profiles.
12 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?
12 years ago
Andreas Granig
54a56b5b00
MT#6693 Properly handle sub profile attributes.
...
Store selected attributes.
Let them be edited.
Correctly clone attributes.
12 years ago
Andreas Granig
a9ffa23288
Subscriber profile management. WIP.
12 years ago
Andreas Granig
f88eb321c2
MT#6687 Use transaction when cloning set.
12 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.
12 years ago
Gerhard Jungwirth
2dd40a8999
MT#6497 API cftimesets
12 years ago
Gerhard Jungwirth
d4cf98646d
MT#6497 API cfdestinationsets
12 years ago
Gerhard Jungwirth
a7483ca351
MT#6497 API: callforwards, better validation
12 years ago
Gerhard Jungwirth
237ebdad95
MT#6665 show error on parsing billing fees
12 years ago
Gerhard Jungwirth
5ae0ed442b
MT#6497 API: edit cft ringtimeout
...
we also try to delete unused cf_mappings now
12 years ago
Gerhard Jungwirth
b343f16e5e
MT#6497 API: edit callforwards
...
we use the billing.voip_subscribers id now (as everywhere else)
12 years ago
Gerhard Jungwirth
fc1c89a7c1
MT#6497 API: get callforwards (simple)
12 years ago
Gerhard Jungwirth
4eeedf36fe
MT#6703 normalize CRLF to LF
12 years ago
Gerhard Jungwirth
3bdc7c74b9
MT#6703 fix merge conflict
...
and remove one more class dependency (see MT#6559)
12 years ago
Irina Peshinskaya
0c5c6ff0f8
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
266d2eb48d
MT#6663 Make API more robust when contract has no billing_profile
...
This should at least not fail with 500
12 years ago
Irina Peshinskaya
84feeb1542
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Andreas Granig
f5ce7e9db5
MT#6461 Let resellers rebrand their panel
...
Implement view for resellers to edit their css.
12 years ago
Irina Peshinskaya
dcccfa9232
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
6d17b70ab0
MT#6295 API: fix failing customers and contracts requests
...
validate max_subscribers (like in earlier versions) but don't
require product to be set
and typo
12 years ago
Irina Peshinskaya
021b0af430
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
dfa5a2d1de
MT#6559 remove usage of CLASS
...
so in a future step we can remove this from
Sipwise::Base
12 years ago
Gerhard Jungwirth
9398c1083f
MT#6493 Start years selection in 2014
12 years ago
Gerhard Jungwirth
21a5d7ee37
MT#6195 API rwr: Give proper reseller access
...
see also MT#6479
12 years ago
Andreas Granig
861e38b649
MT#6283 Add more query params to existing colls
12 years ago
Andreas Granig
45a42b9b61
MT#6479 API: Allow resellers to access some funcs.
12 years ago
Andreas Granig
7cbb8633ab
MT#6461 Let admin rebrand reseller.
...
Reseller rebranding itself not yet there.
12 years ago
Gerhard Jungwirth
51b508fd60
MT#6443 Calculate dashboard costs correctly
12 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.
12 years ago
Irina Peshinskaya
bd7d18c49b
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
d313bc7559
MT#4369 callflow: count total correctly
...
this group_by is ok, because it is optimized by mysql and the index on
call_id is still used
12 years ago
Andreas Granig
9274c0a82d
MT#5837 Fix syntax error in ru translation.
12 years ago
Gerhard Jungwirth
6f368e820f
MT#6195 API: rewriterule/rewriteruleset: DELETE
...
and remove some redundant checks (done by formhandler)
12 years ago
Gerhard Jungwirth
31e6c5fa71
MT#6195 API: ability to handle rules directly in rewriteruleset
12 years ago
Gerhard Jungwirth
edd904ce45
MT#6295 API: fix tests Prefer header no longer required
12 years ago
Gerhard Jungwirth
c7c1e012a9
MT#6195 API: adapt RewriteRules to search framework
...
see MT#6283
12 years ago
Gerhard Jungwirth
ede3d43a42
MT#6195 API: rewriterule/rewriteruleset: POST
12 years ago
Gerhard Jungwirth
11e421dc08
MT#6195 API: rename rewrite -> rewriterulesets
12 years ago
Gerhard Jungwirth
83fa4552f2
MT#4369 use min_timestamp
...
to really display the time, the call started
12 years ago
Gerhard Jungwirth
720e70b939
MT#4369 optimize callflow using a custom query
...
we need to disable the sorting option on the columns though
12 years ago
Gerhard Jungwirth
72ae4a5471
MT#4369 optimize mysql performance on callflow page
...
distinct is faster than group by here
drawback: we cannot select min(timestamp) anymore
query is still very slow, when filter is used
12 years ago
Irina Peshinskaya
34f77792c9
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
...
Conflicts:
lib/NGCP/Panel/Role/API/Customers.pm
12 years ago
Andreas Granig
259cff4f18
MT#4235 Fix some Jitsi provisioning options.
12 years ago
Andreas Granig
7d76b46b10
MT#6283 Fix search framework to work on debian
...
- overriding item_rs doesn't work with that particular catalyst
version, use work-around.
12 years ago
Andreas Granig
11d83a7ead
MT#6283 Implement search-framework.
...
- let custom roles "derive" from main api role
- have an item_rs in each role
- call search logic after each item_rs call automatically
- render search query doc dynamically
12 years ago
Irina Peshinskaya
f0263620e4
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Gerhard Jungwirth
10b7ed52c4
MT#5599 fix role check
12 years ago
Gerhard Jungwirth
36f2be7689
MT#6195 API: rewrite: GET, PUT and PATCH implemented
12 years ago
Irina Peshinskaya
8508efc754
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 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
12 years ago
Alexander Lutay
1c8ff01cc1
MT#5083 Fixes for several SendFax WEB interface issues
12 years ago
Irina Peshinskaya
f5b02e48f0
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
12 years ago
Irka
3e393f1f5d
MT#5879 Now Preview works correct. Time to implement saving passed template.
12 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.
12 years ago
Andreas Granig
315fe4bce9
MT#6047 Implement system-wide field dev overview.
...
- Allows to search for macs
- Allows to delete devices on a global level, if needed
12 years ago
Andreas Granig
9b9b4c0628
MT#5601 Update field-device lines on model updates
...
- Update line ranges on model edit instead of re-creating them
to avoid dropping line range assignments of field devices
- Remove field device assignments which are out of key ranges
or use a unsupported feature after the model update.
12 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.
12 years ago
Andreas Granig
4456bd02e4
MT#5929 Fix ext_subscriber_id handling.
...
When created via customer view, use external_id from form.
12 years ago
Irka
9b60794394
MT#5879: Fix applying empty search for admin
12 years ago
Irka
b61732daa5
MT#5879: Failed with condition unification for reseller_id of contracts. Return to double search using to construct query.
12 years ago
Irka
fb891ee0ed
Save state with incorrect, but fast svg template apply
12 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
12 years ago
Irka
e923b71022
Merge remote-tracking branch 'origin' into ipeshinskaya/InvoiceTemplate2
12 years ago
Andreas Granig
d445274d1d
MT#5967 API: validate allowed ip entries.
12 years ago
Andreas Granig
c61b9eec5d
MT#3933 API: Handle subscriber lock/termination
12 years ago
Andreas Granig
71b8d2e957
MT#5967 Validate (man_)allowed_ip input.
...
Check for valid v4/v6 address and optional netmask.
12 years ago
Victor Seva
4b2f507219
MT#5835 Spanish translation update
12 years ago
Andreas Granig
f7de0b6564
MT#5967 Perform trusted source ip/net validation.
12 years ago
Alexander Lutay
5be3f87cad
MT#5835 Fixed Spanish datatables translations.
12 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.
12 years ago
Andreas Granig
eb1464f558
MT#3925 Return json error for 403/404 on /api/.+
...
Return as usual a json struct with code and message under the /api/ path.
Otherwise an API client would get the html pages, which is
pretty pointless.
12 years ago
Andrew Pogrebennyk
95cac29b6f
MT#5837 Unify some terms; improve subscriber details look.
12 years ago
Alexander Lutay
c754afff57
MT#5837 Add Russian localisation
...
Many tnx to Andrew Pogrebennyk!
12 years ago
Andrew Pogrebennyk
d713bdc8c1
MT#5835 Translate javascript datatables file to Spanish.
12 years ago
Andreas Granig
2f749a341a
MT#3933 API: add subscriber editing via PUT/PATCH
12 years ago
Victor Seva
2e0bbde861
MT#5835 Spanish translation update
12 years ago
Victor Seva
0bf4d26d3d
MT#5835 Spanish translation update
12 years ago
Victor Seva
6d5ec218e8
MT#5835 Spanish translation update
12 years ago
Andreas Granig
bc08567683
MT#5811 Properly set websocket paths.
...
To work around ssl certificate issues with wss connections, use
a single entry point for wss to the system and let nginx do the
internal proxying to the correct addresses.
12 years ago
Irka
77136247f0
Invoices - a little bit more clean. But still DB is fake, and columns titles are interesting to think about more.
12 years ago
Irka
5818d51230
test commit
12 years ago
Andreas Granig
0218de9cc0
MT#5833 Update italian translation.
12 years ago
Victor Seva
ca4df9cfc2
MT#5835 Spanish translation by Jon
12 years ago
Andreas Granig
0f26d8fcbe
MT#3961 Update German localization.
12 years ago
Andreas Granig
1f9e407377
MT#3925 API: more doc and description fixes.
12 years ago
Andreas Granig
2c49abb49e
MT#3925 Add more field descriptions to forms.
12 years ago
Andreas Granig
c799df3ebd
MT#3925 API: dynamically render API documentation.
12 years ago
Andreas Granig
9587330201
MT#5251 Optimize billing fees upload.
...
Bring down upload time from 180s to 16s by optimizing purge of existing
ones (one query instead of one-by-one deletion) and optimizing upload
in batch (one query instead of one-by-one deletion).
12 years ago
Andreas Granig
84e465fb21
MT#3961 Add Italian translation.
...
Also prepare Spanish and Russian translation files for DT.
12 years ago
Gerhard Jungwirth
f99ce65102
MT#5859 let subscriber change his webpassword
12 years ago
Gerhard Jungwirth
4e6e9efb92
5861: remove unused fields from SubscriberEdit
...
this failed, because we tried to validate reseller
12 years ago
Andreas Granig
8c3a279247
MT#5473 Fix deleting peering groups.
...
Properly propagate deletion of hosts and their prefs, as triggers
don't hit in if they are deleted via constraints, so they leave
orphaned entries in the kamailio db.
12 years ago
Gerhard Jungwirth
360d622bcc
MT#3961 check language before login, map en to i-default
...
otherwise a priority of en is not considered
12 years ago
Andreas Granig
b88d36bdf0
MT#5083 Implement sendfax in ngcp-panel.
12 years ago
Andreas Granig
43291e9457
MT#5823 Allow underscore in billing profile handle
12 years ago
Andreas Granig
fbecee5d0e
MT#3961 Prepare languages it, es and ru.
12 years ago
Andreas Granig
35254456d0
MT#3961 Update German translation.
12 years ago
Andreas Granig
eaad8dfda5
MT#3961 Rework German localization.
...
Some fixes along the path where strings where not prepared for
localization yet, or element widths were too small.
12 years ago
Andreas Granig
33001ef88a
MT#5811 Prettify roster and add chat window
12 years ago
Andreas Granig
d1bcc66639
MT#5811 Basic framework for sip/xmpp via WS
12 years ago
Andreas Granig
8544fd0989
MT#3933 API: add form for subscriber validation.
12 years ago
Andreas Granig
d508a519c8
MT#3933 API: tighten subscriber creation.
12 years ago
Andreas Granig
aef3a499a3
MT#5797 Skip Link hdrs for fetching collections.
...
Too many headers break web servers (and probably UAs).
12 years ago
Gerhard Jungwirth
cc5d36d0a0
MT#3961 Localize the menu title "Language"
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
4ab0097744
MT#3961 translate HTML::FormHandler forms
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
d989abc8f9
MT#3961 Translate everything
12 years ago
Gerhard Jungwirth
9040831ecd
MT#3961 more translations
12 years ago
Gerhard Jungwirth
1f37a80b84
MT#3961 Provide Dropdown to change the language
...
We save this setting in a session variable and a cookie
valid for 3 months
12 years ago
Gerhard Jungwirth
a272512298
MT#3961 Prepare to localize DB-Strings
...
For now, we ignore square brackets
12 years ago
Gerhard Jungwirth
1bf73a7bb6
MT#3961 Prepare for localization
12 years ago
Andreas Granig
e86a5d88f8
MT#5741 Allow upperchase in subscriber username
12 years ago
Andreas Granig
cd155992ca
MT#5661 API: fix prepaid flag changes.
12 years ago
Gerhard Jungwirth
029c51fad1
MT#5661 change selection of customers when bprof is updated
...
only those customers which have this billing profile
currently active are considered
this concerns the change of the prepaid flag
12 years ago
Andreas Granig
f31c2fcc88
MT#5661 Update prepaid pref on bilprof change
...
If prepaid flag is changed in billing profile, all subscribers
of all contracts currently having this profile are updated.
If customer changes from prepaid profile to postpaid and vice versa,
all subscribers of this contract are updated.
If subscriber is created either in subscriber or customer view,
the prepaid pref is set if billing profile of its customer is
prepaid.
12 years ago
Andreas Granig
6cd4ef04f1
MT#5629 Fix setting external_id in customer ctx.
12 years ago
Andreas Granig
6e60f43306
MT#5599 Fix pwd-based api auth.
12 years ago
Andreas Granig
6a9f4559b7
MT#5599 API: remove middleware handling.
12 years ago
Andreas Granig
71658e12a7
MT#5599 Rework auth/authz for pwd-based API access
...
Cleanup unnecessary realms.
Use roles instead of realms for authz.
HTTP basic auth for api access.
Use admin/reseller roles instead of api_admin/api_reseller.
Fix API::Root invalid_user detaching.
12 years ago
Andreas Granig
0fd10e018a
MT#5575 Clear audio cache only on specific service
...
Use appserver for system sets and pbx for customer sets.
12 years ago
Andreas Granig
b098c10f87
MT#5575 Properly clear pbx audio cache for moh/pbx
12 years ago
Andreas Granig
de9fc52c64
MT#5575 Clear audio cache on sems-pbx too.
12 years ago
Andreas Granig
ce01267079
MT#3933 API: Check for max_subscribers on create
12 years ago
Andreas Granig
aa5eee69a0
MT#5575 Migrate clear_audio_cache to Sems helper.
12 years ago
Andreas Granig
9651c81852
MT#3933 API: fetch and create subscriber. WIP.
...
Doesn't handle PBX stuff yet, only basic subscriber stuff.
12 years ago
Andreas Granig
ce93199ff8
MT#5349 API: return reseller_id for domain.
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
ef80d1967e
MT#4967 change primary number of extension-subscribers by extension
...
see comment 4967#c31031
12 years ago
Gerhard Jungwirth
b0d1d25301
MT#4967 update all cloudpbx-subscribers on change of head one
...
see comment 4967#c31031
12 years ago
Andreas Granig
1359aa556b
MT#5349 API: Implement special dompref removal.
12 years ago
Andreas Granig
ee9d4fab2f
MT#5349 API: Implement PUT/PATCH on special dprefs
...
For sound sets, allowed ips etc the update needs special treatment.
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
8cdf9c7880
MT#5349 API: Implement GET for special domprefs
...
sound sets, rewrite rules, ncos and allowed ip groups require special
treatment when being fetched.
12 years ago
Andreas Granig
de6ac98ec9
MT#5349 API: Implement validation for dom prefs.
12 years ago
Andreas Granig
5929bcdc06
MT#5349 API: add method to fetch dompref meta data
12 years ago
Andreas Granig
a737e3f05e
MT#5349 API: skip updating prefs with null value
12 years ago
Andreas Granig
efafd55c87
MT#3931 API: Use TryCatch instead of Try::Tiny
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
Andreas Granig
1d873fce27
MT#4229 Remove dump from logfile.
...
The stack-trace is undecodeable from syslog, and it usually doesn't
provide any additional infos on top of the actual error message.
12 years ago
Andreas Granig
329b831918
MT#5199 Offer API CA Cert for download too.
12 years ago
Andreas Granig
883cd9a8b3
MT#5199 Store client cert in DB and offer P12 fmt.
...
For browser imports, you need a PKCS12 format, so offer the cert
in that format for download also.
12 years ago
Andreas Granig
12edcd6f01
MT#3929 Set sane expiry values for prod usage.
12 years ago
Gerhard Jungwirth
f316797857
MT#4967 "Unsteal" number on subadmin terminate
...
When a subscriberadmin terminates a subscriber, the alias_numbers should
move back to the subscriberadmin
12 years ago
Gerhard Jungwirth
dfe18e5648
MT#4967 Do not show password on edit
...
but update it, if one is supplied
sub edit_master is now explicitly denied to subscribers, as there is already
a lot of conditional logic there, we should consider to handle a logged in
subscriber separately. (This option is not exposed to subscribers anyway.)
See also 4967#c28533
12 years ago
Gerhard Jungwirth
9fed07646d
MT#4967 Disallow subscriberadmin to change status
...
see 4967#c28533
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
58adac5da9
MT#5349 API: Implement GET/DELETE for domain item.
...
There is no PUT/PATCH as we are not allowed to change the domain itself.
TODO: relations to preferences!
12 years ago
Andreas Granig
9592c6b3b7
MT#5349 API: Implement collection part for doms
12 years ago
Andreas Granig
52ea49a1bc
MT#4967 Fix invalid "has label" statement.
...
The label is in the form, not in the field. It leads to an exception at least.
12 years ago
Andreas Granig
1656f051d0
MT#5101 Mark primary numbers in voip_dbaliases.
12 years ago
Andreas Granig
456df97df0
MT#3931 API: implement customer contract handling.
12 years ago
Andreas Granig
3a07a53967
MT#3925 API: Merge branch 'agranig/rest'
12 years ago
Andreas Granig
3db6117dfd
MT#3931 API: Implement customer contacts.
...
Move update parts into role.
Implement customer contacts.
12 years ago
Andreas Granig
5c5668da28
MT#3949 API: Implement reseller resource handling.
12 years ago
Andreas Granig
c0a6264507
MT#5299 API: Implement implicit zone def for fees
12 years ago
Andreas Granig
d12520982f
MT#5299 API: more billing tests and bug fixes.
12 years ago
Andreas Granig
b3de58ff9c
MT#5299 API: Implement billing zone handling.
12 years ago
Andreas Granig
bdb129ec67
MT#5299 API: Add billing fee handling.
12 years ago
Andreas Granig
cd2d9e47aa
MT#5255 Fix boolean handling and HFH validation
12 years ago
Andreas Granig
5ba6edcadc
MT#5299 API: add first tests for billing profiles.
12 years ago
Andreas Granig
829b432b47
MT#5299 API: PUT/PATCH/GET billingprofiles item
12 years ago
Andreas Granig
3ce79d6703
MT#5299 API: GET and POST billing profiles.
12 years ago
Andreas Granig
45a460a1ce
MT#3949 API: implement contracts handling.
12 years ago
Andreas Granig
14d9374e8c
MT#3949 API: move common contract stuff to role.
12 years ago
Andreas Granig
b64266b969
MT#3949 API: Implement base-line for sys contracts
...
Allows to post, put, patch and get peering and reseller contracts.
Needs tests.
12 years ago
Andreas Granig
7a782eb4fb
MT#5255 API: Create roles for resources.
...
Collections and Items have common functions (e.g. hal_from_xxx),
so move them into separate roles.
12 years ago
Andreas Granig
458852f70e
MT#5255 API: use local time for timestamps.
12 years ago
Andreas Granig
02998dd688
MT#3949 API: base-line for system contracts.
12 years ago
Andreas Granig
6bb57f08f2
MT#3997 Finish API skeleton.
...
We should now have working baselines for
- collections (SystemContacts)
- items (SystemContactsItem)
with support for
- collections: OPTIONS, HEAD, GET, POST
- items: OPTIONS, HEAD, GET, PUT, PATCH, DELETE
covered by according tests and with a proper API documentation.
12 years ago
Andreas Granig
f4a9e39a8a
MT#5255 API: move contacts to systemcontacts.
...
Clearly distinguish between systemcontacts (those without reseller) from
customercontacts (those with resellers). Separating them frees us from
having to handle reseller_id magic.
12 years ago
Andreas Granig
beb93987eb
MT#3997 API: move req/res log functions to Role.
12 years ago
Andreas Granig
a135c00190
MT#5255 API: prevent DELETE of used contact
12 years ago
Andreas Granig
a6c3ecb580
MT#5255 API: Implement DELETE for contacts
12 years ago
Andreas Granig
2c51cbd0fb
MT#3997 Fix PUT with reseller_id=null for contact
12 years ago
Andreas Granig
9aa1560619
MT#3997 Dynamically return collections relations.
12 years ago
Andreas Granig
7b8092f702
MT#3997 Get rid of the remaining tt xml responses
12 years ago
Andreas Granig
5e3b642107
MT#5215 Replace NoPassword cred handler
...
In our catalyst version, there is no NoPassword credentials handler,
so use the Password handler instead.
12 years ago
Andrew Pogrebennyk
7587e666d7
MT#5193 MT#5195 Fix "Use of uninitialized value" when external_sbc is empty
12 years ago
Andreas Granig
515990623f
MT#3997 Fix general collection/item handling.
...
Use paging.
Start adding tests for contacts/ collection.
Move more common functions to Role.
Use proper forms for field checking.
12 years ago
Andreas Granig
a4a9f703bd
MT#3997 Remove QueryParameter dependency.
12 years ago
Andreas Granig
fd19cf79c1
MT#3997 Return JSON on precondition failures.
12 years ago
Andreas Granig
0fb58d2668
MT#3997 Use JSON in OPTIONS methods.
12 years ago
Andreas Granig
40ecb1e91d
MT#3997 Distinguish collection and item in URI
...
Use /api/foo/ for collections and /api/foo/{:id} for items to easily
distinguish between them. Also, we want to use query params for limiting
the collections, e.g. /api/foo/?name={:name}&something={:else}, which in
turn returns a filtered collection again. This makes it difficult then to
fetch items via /api/foo/?id={:id}, so use /api/foo/{:id} instead.
Also move rest of common functions into API Role.
12 years ago
Andrew Pogrebennyk
d52049a8f7
MT#3997 MT#5193 Fix build_via_routes with only one external sbc.
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
83a4085255
MT#5147 Proper DateTime deflation in Forms
12 years ago
Andreas Granig
6d3fa76e7f
MT#5173 Very basic support for polycom prov
...
Bootstrap Params: 447=2,445=[% server.uri %],264=2
Bootstrap Method: POST
Bootstrap URI: http://[% client.ip %]/form-submit
12 years ago
Gerhard Jungwirth
6524548201
MT#4129 Validate update customer with wrong resellers
...
The reseller of the old billing_profile was tested instead of the new one
(see 4129#c29575)
12 years ago
Gerhard Jungwirth
fdb2b49e1f
MT#4693 show contract balance in euros instead of cents
12 years ago