Andreas Granig
494f8bf864
MT#13201 Strip trailing timezone from timestamp
...
Change-Id: Ie788f50fb449ba05736fa00a9a0eb98830a90215
10 years ago
Irina Peshinskaya
003e717c02
MT#12937 Replace groups managements different code parts with common methods
...
Change-Id: If598ff0b3cef7c9c8c21ad2c509bce0d9fc4edb7
10 years ago
Andreas Granig
4227fd2522
MT#13201 Enhance voucher API.
...
- Use billing_data ACL grants to modify vouchers
- Use encryption in UI for voucher code
Change-Id: I7711a43db8596d5f733d6c52d2f6608f434b2463
10 years ago
Andreas Granig
2c54106fd0
MT#13201 Implement voucher API
...
Change-Id: Ia82579179a29245d51c5ae3d3ea71054ceaf1bf0
10 years ago
Gerhard Jungwirth
9aad021882
MT#13007 Reload correct service for sound handles
...
see 13007#c98465
Change-Id: I44392cb1e45134650a1ad44edd6b24d057c817a6
10 years ago
Irina Peshinskaya
34c05dafbb
MT#12813 Dont set direction to in for empty destination_user_id
...
Change-Id: I3ca6747bff2009c08bbfb5696e47d6597edb7b59
10 years ago
Andreas Granig
26c561c67a
MT#10537 Strip sems suffix from cid
...
Also set type to "call" for any inbound calls, overriding call-
forward information.
Change-Id: I79b2b7331aecef0a3d5ee41fa10095da7ea279e9
10 years ago
Gerhard Jungwirth
53ee3a32a8
MT#12813 fix calllist subscriber retrieval
...
get it directly without accessing provisioning.voip_subscriber
and notify about terminated subscribers
Change-Id: Ife6d936c052b3dcda0f03013ee53bafa34b9f19b
10 years ago
Gerhard Jungwirth
ffa327bfbf
MT#12905 set cf cli to the primary number
...
Change-Id: I1e571fa4dc156de83c910dbfecd0280fa8b75b58
10 years ago
Andreas Granig
8f061a0154
MT#10537 API: fix calllist dir for srv calls
...
Also properly filter VSC calls, somehow dropped during last change
Change-Id: I9773a8bea2efb53f88aa59a9741b0cd5c5090b61
10 years ago
Andreas Granig
e8f318db31
MT#10537 Fix calllist issues
...
- set service name for CF to conf, vmu, aa
- fix direction when customer_id is given
- filter out vsc calls
Change-Id: I3130ffda67b49b108a4e9f283c25bb4260918eba
10 years ago
Gerhard Jungwirth
da020c9810
MT#12813 calllist api: use correct subscriber
...
namely our own, to process rewrite rules
Change-Id: I23f36a6900634273513bd1846bae4643b88145a5
10 years ago
Andreas Granig
38b6ea154e
MT#12701 Show cf ncos in API
...
Change-Id: I90db98984fea5c68da87996186cb5c0f5b6618e3
10 years ago
Rene Krenn
bce0058915
MT#11917 test enviroment json boolean conversion
...
Change-Id: I5b880bfdd39898a14e50949aa9858f800d4bd558
10 years ago
Andreas Granig
de42a68ef3
MT#12615 Don't filter call_id in calllists API
...
Change-Id: I4345521adddf3633dacd31a686a1cd4c12fde660
10 years ago
Rene Krenn
c411ece3a9
MT#11917 'must-have' api resources complete
...
- ApplyRewrites
+ AutoAttendants
~ BillingFees
OK + BillingProfiles
+ BillingZones
- CallControls
OK * CallForwards
- CallLists
- Calls
OK * CCMapEntries
OK * CFDestinationSets
OK * CFMappings
OK * CFTimeSets
OK ~ Contracts
+ CustomerBalances
OK * CustomerContacts
OK * CustomerPreferences
OK * Customers
- CustomerZoneCosts
+ DomainPreferences
OK + Domains
~ EmailTemplates
OK * FaxserverSettings
- Interceptions
- Invoices
~ InvoiceTemplates
+ NcosLevels
+ NcosPatterns
+ PbxDeviceConfigFiles
+ PbxDeviceConfigs
+ PbxDeviceFirmwareBinaries
~ PbxDeviceFirmwares
+ PbxDeviceModelImages
+ PbxDeviceModels
+ PbxDeviceProfiles
+ PbxDevices
OK * ProfilePreferences
OK * Reminders
OK ~ Resellers
+ RewriteRules
+ RewriteRuleSets
- SoundFileRecordings
~ SoundFiles
~ SoundHandles
OK * SoundSets
OK * SpeedDials
OK * SubscriberPreferences
OK ~ SubscriberProfiles
OK ~ SubscriberProfileSets
- SubscriberRegistrations
OK * Subscribers
OK ~ SystemContacts
OK * TrustedSources
- VoicemailRecordings
- Voicemails
* VoicemailSettings
Change-Id: Ibbaf8be32c6cda71637e16c40f345a15b8c1f530
10 years ago
Rene Krenn
0d361710f7
MT#11917 CFTimeSets typos
...
Change-Id: I9cc3b44581906f9b26ffa1735a60fb2e05178ada
10 years ago
Rene Krenn
83fdc85702
MT#11917 include journal in generated API doc page
...
Change-Id: Iab13239e892823e2708f5b13b985db42be45d136
10 years ago
Rene Krenn
b5dca5e6e2
MT#11917 next batch of API resources w. journal
...
-enhanced test detail: did not detect missing CRUD operations yet
-query param 'operation' didn't work for 'recent' yournal entry of all API resources so far
-fix of several copy paste errors in existing rest api code
-...
Change-Id: I71b54212d8126b0280fcad2e568fad52a673cbf0
10 years ago
Irina Peshinskaya
bda844c9d3
MT#10159 Add API call towards MWI on voicemail dir change
...
Change-Id: I37907d1a5351911f5b357ae1e7992c189a9730d3
10 years ago
Rene Krenn
96c731a144
MT#11917 Journaling for first set of resources
...
the journal module introduces a change history of
resources modified by api invocations. the history of
the 'customer' resource demo is accessible at
/api/customers/x/journal.
Change-Id: I4d5d11bc3e35160feed587ce4c1db565991866b2
10 years ago
Irina Peshinskaya
ec9c71dbe3
MT#11147 Phone extensions
...
Change-Id: Ie08f85030a26dc00fe246c71e73a81bd001a2be4
10 years ago
Rene Krenn
eed41633bd
MT#11917 Write journal for customer create/update.
...
Work in progress.
10 years ago
Andreas Granig
bc32830ad9
MT#11741 API: fix pbxdevicemodelimages props doc
...
Change-Id: Iae529c693f7f909e568083b6983b4a792b76b8f0
10 years ago
Andreas Granig
82529daaba
MT#11517 Don't expose internal prefs via API.
...
When doing GET on /api/subscribers/123 and /api/subscriberpreferences/123
and then doing a PUT on both, the PUT on /api/subscribers/123 will change
internal prefs, and the PUT on /api/subscriberpreferences/123 will override
them again, causing data inconsistencies. Example is cloud_pbx_hunt_timeout,
which is stored both in /api/subscribers/123 and in /api/subscriberpreferences/123,
where you're not supposed to change that via /api/subscriberpreferences/123.
Change-Id: I4d850482bb010377b4432ac516add94b5068f38b
10 years ago
Irina Peshinskaya
01126bf8d7
Revert "MT#11343 Prevent PbxDevicemodels API from subscribers lineranges"
...
This reverts commit 0de1fb9e83
.
Change-Id: I4777be55b7df757a73054b2123ed62a6664892b3
10 years ago
Irina Peshinskaya
0de1fb9e83
MT#11343 Prevent PbxDevicemodels API from subscribers lineranges
...
Change-Id: Iafeaad73731edc1fca85b5acf29985d16c8fa542
10 years ago
Irina Peshinskaya
7eb50fe583
Revert "MT#11343 Add sign that range_id is used by subscriber"
...
This reverts commit 9c2681c47a
.
Change-Id: I53603caf7c3dea039f83e4854e34c353f2952dee
10 years ago
Irina Peshinskaya
9c2681c47a
MT#11343 Add sign that range_id is used by subscriber
...
Change-Id: I3d1acdcc66776f3e60e8495dd23830171300a5bf
10 years ago
Kirill Solomko
8717f99396
MT#10965 - Callforwards api DELETE fix to use callforwards instead of rewriterules, check for non-existing mapping auto removed by mysql
...
Change-Id: Id6fb16b15fae86b00ddf1e4ab590d43c05fe0e03
10 years ago
Irina Peshinskaya
e388e6f6b1
MT#10315 Cast lock to the numeric value as stated by API doc.
...
API doc takes type from the form field type definition.
Change-Id: I0c9fb0de2f261baac7a364c4845e861c5e378b76
10 years ago
Irina Peshinskaya
ce29d22a53
MT#10715 Add Polycom Zero Touch Provisioning (ZTP) client.
...
Change-Id: Ia3671355258dbfcf1533d7d4f87083e3beb10dc6
11 years ago
Andrew Pogrebennyk
21833bf8cf
MT#9453 introduce handling for adm_cf_ncos[_id] preference
...
Change-Id: I17fdb7fa89a8e1682aafe43c02d94c8e230b8098
11 years ago
Andreas Granig
8b8355914e
MT#6785 Fix creating subscriber with ext 0.
...
Change-Id: I9aa6804c869fdc4b0dc153d014482497976b7ddc
11 years ago
Andreas Granig
af40fb7a39
MT#6773 Remove more Data::Printer stuff.
...
Change-Id: I119cf5ac88755d48b36fc6ec7a2aa86d75765f86
11 years ago
Andreas Granig
03a6f4a68b
MT#10705 Set group members from within group.
...
Change-Id: I91695bc1baedb189e978a4269648b1e62dd5b680
11 years ago
Andreas Granig
c6b336072b
MT#10537 Support customer_id for calllists.
11 years ago
Andreas Granig
266e8e7f3e
MT#10537 API: own/other logic for calllist item
11 years ago
Andreas Granig
e28726c1c3
MT#10537 API: Add calllists call.
11 years ago
Irina Peshinskaya
e45b214de4
MT#9177 Add yealink, change architecture and fix credentials store issue
...
Squashed commit of the following:
commit 79484a6e87
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Wed Dec 3 02:11:23 2014 +0200
MT#9177 We don't need update device_id in credentials.
Rather usual thing.
commit d2161a9b3f
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Tue Nov 25 13:16:02 2014 +0200
MT#9177 Return unregister into utils area.
commit ac8115bcc2
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Sun Nov 16 13:58:35 2014 +0200
MT#9177 Yealink works
commit 51336e2b18
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Sun Nov 16 12:23:19 2014 +0200
MT#9177 Yealink add_server
commit 6dc0fde8dd
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Fri Nov 14 09:54:14 2014 +0200
MT#9177 Yealink url via serverName
commit ec00e65878
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Thu Nov 13 10:55:07 2014 +0200
MT#9177 Yealink requires server length < 20
commit 0c29750e74
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Thu Nov 13 10:45:27 2014 +0200
MT#9177 Wonderfully authorization for Panasonic started to work
Without = at the end
commit 7d3c540a82
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Thu Nov 13 10:36:51 2014 +0200
MT#9177 Fix yealink authorization too
commit e39da24bc9
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Thu Nov 13 10:15:26 2014 +0200
MT#9177 Small fixes for yealink
commit 9b9e2973ee
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Thu Nov 13 08:12:33 2014 +0200
MT#9177 Add yealink credentials fields
commit d63e9ab967
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Thu Nov 13 06:24:46 2014 +0200
MT#9177 Some fixes for this layout
commit bd2a026ed4
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Wed Nov 12 22:43:37 2014 +0200
MT#9177 Use custom bootstrap uri in this layout
commit bfd2f7a96c
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Wed Nov 12 17:07:50 2014 +0200
MT#9177 Further yealink changes
commit 3779466cb6
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Wed Nov 12 15:55:47 2014 +0200
MT#9177 Yealink added
commit 3fa77dcdb0
Author: Irina Peshinskaya <ipeshinskaya@sipwise.com>
Date: Wed Nov 5 08:23:56 2014 +0200
MT#9177 Refactor code to separate vendor specific and common logic
Change-Id: I41a912a5c8f90b3c58cf49b87a38a3b6a7b64bd6
11 years ago
Irina Peshinskaya
0386b22179
MT#10355 Fix forcing boolean context for JSON::bool
11 years ago
Andreas Granig
a16c98ae35
MT#10199 Add subscriber profile preferences.
11 years ago
Irina Peshinskaya
59bfbeb401
MT#9941 Add cloud_pbx_hunt_* fields to api.
...
So can be specified without old pbx_hunt_[policy|timeout]
11 years ago
Irina Peshinskaya
8b09bd0777
MT#9941 Consider PBX hunt parameters on subscriber creation via API
11 years ago
Irina Peshinskaya
9a06328baf
MT#10041 Fix join for reseller account.
11 years ago
Kirill Solomko
f5830cd43a
MT#8645 - billing profiles, disable seaerch by "Used", "used" internal renamed into "v_count_used" to be taken as a virtual column by the Datatables module
11 years ago
Kirill Solomko
fd8d5974d4
MT#8645 - add billing_profile terminate functionality for API
11 years ago
Irina Peshinskaya
bcd8c30efd
MT#9177 Add credentials as device fields logic
11 years ago
Andreas Granig
efa2acbc0f
MT#9177 Adapt API to new device bootstrap.
11 years ago
Irina Peshinskaya
a6527bb4c7
MT#9177 API for autoprov. Not tested yet.
11 years ago
Andreas Granig
b9aa3be4ff
MT#9481 API: fix customerbalance link to self
11 years ago
Irina Peshinskaya
29b988492f
MT#9431 Update usr_preference cloud_pbx_hunt_policy in Subscriber API.
11 years ago
Andreas Granig
83bd0f93f2
MT#9481 API: set link from customer to balance
11 years ago
Andreas Granig
a58ac04e17
MT#9481 API: Implement customer balance handling
11 years ago
Andreas Granig
6a611ea779
MT#9263 Remove simple_destination on update
11 years ago
Andreas Granig
17a3260153
MT#9263 Introduce simple_destination in CF API
11 years ago
Kirill Solomko
1c8b6e4a1c
MT#8547 - fix SWITCH inside "foreach" handling
11 years ago
Andreas Granig
a99f707522
MT#8547 Fix handling of special prefs.
11 years ago
Kirill Solomko
85978fb823
MT#8547 - Remove "push on reference" syntax
11 years ago
Kirill Solomko
e4ecca76e9
MT#8547 - Fix smartmatch ~~ usage
11 years ago
Gerhard Jungwirth
0ea1958cf2
MT#9291 CallForwards URI deflation
...
original implementation in NGCP::Panel::Field::URI. Possible refactorings:
a) into Utils::Subscriber b) setup proper deflation for api forms.
11 years ago
Andreas Granig
899c89c8b8
MT#9269 Add compat num_lines to API pxbdevicemodels
...
Make it compatible with the 3.4 version to not break LGI
11 years ago
Andreas Granig
3d22196c4a
MT#9263 Fix CF API handling of timesets.
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
Andreas Granig
d156577873
MT#9167 Fix setting contract timestamps
11 years ago
Irina Peshinskaya
97519cd453
MT#8981 API: Fix messages for mismatched username and domain of subscriber.
11 years ago
Irka
e313eb7063
MT#8371 Remove duplicate joins contracts_rs with billing_mapping.
11 years ago
Gerhard Jungwirth
69a46142c2
MT#8709 API: Always update lock-level
...
Allowing therefore to delete it.
11 years ago
Irka
4c35f9bad6
MT#8649 Add callforwards link into subscribers info
11 years ago
Irka
3e80b5fce6
MT#8609 API: Don't add ringtimeout into empty callforwardTimeout.
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
Andreas Granig
8e0157b78b
MT#8613 Add basic CRUD for LI X-1 provisioning
11 years ago
Andreas Granig
996fd6000c
MT#8299 API: align PUT for pbxdevicemodels.
...
Use multipart/form-data as we do in POST.
11 years ago
Andreas Granig
853ab093d5
MT#8299 API: Use multipart upload for device model
11 years ago
Gerhard Jungwirth
752b972e07
MT#8309 remove usage of JSON::Types::bool
11 years ago
Gerhard Jungwirth
3c0dd86c81
MT#8367 api fix subscriber post/put domain query
11 years ago
Irka
b59e7bb3df
MT#8367 Remove potentially ambiguous voip_subscribers.status reference
...
Now DBIx uses subqueries for sequential searches so no ambiguity
is present now.
11 years ago
Irka
f5fbb6347d
MT#8367 Specify exact table for status to avoid ambiguity
11 years ago
Gerhard Jungwirth
b7eb095540
MT#7791 Manage Callthrough CLIs in Panel
11 years ago
Gerhard Jungwirth
edff2c4120
MT#7791 API ccmappingentries (callthrough CLIs)
11 years ago
Gerhard Jungwirth
36e44a6439
MT#7673 update voicemail number in api
11 years ago
Gerhard Jungwirth
ee9ad451bb
MT#8309 change boolean handling in api preferences
11 years ago
Irina Peshinskaya
3b281f61cd
MT#7867 InvoiceTemplate API draft.
11 years ago
Irina Peshinskaya
8066f9f5a5
MT#7867 Api changes for invoice template per customer. For review.
11 years ago
Gerhard Jungwirth
2c18f32917
MT#7943 prevent changing terminated customer
11 years ago
Gerhard Jungwirth
9f7f55d07f
MT#8063 api fix uploading music_on_hold
...
in case of customer sound set.
and prevent uploading multiple items of the same set/handle.
11 years ago
Gerhard Jungwirth
3ab01777b4
MT#8157 api callforwards fix timeset deletion
...
and only delete autocreated ones anyway
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
17f092219f
MT#7959 fix contract PUT/PATCH, tests
...
now that type is checked by form, it must be
properly passed by put/patch. Also error message changed.
(cherry picked from commit 526a6c1a19
)
11 years ago
Andreas Granig
63056e4d15
MT#7867 Also add invoice tmpl per customer in API
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
Gerhard Jungwirth
fc4bdaf750
MT#7959 update contracts api doc
11 years ago
Andreas Granig
d74f2653f1
MT#7747 Make sure to not store purge_existing
11 years ago
Andreas Granig
c34f5e11a0
MT#7747 API: implement fee bulk upload
...
You can now do a POST to /api/billingfees/?billing_profile_id=xx
with Content-Type text/csv, and it will try to parse and insert
the file like the panel does on file upload.
11 years ago
Andreas Granig
3a9d043d40
MT#7899 API: clear audio cache on sound file mod.
11 years ago
Andreas Granig
9157588f97
MT#7803 API: fetch invoice details via API
11 years ago
Gerhard Jungwirth
f56f49a7e8
MT#7841 callforward api: hide ids
11 years ago
Andreas Granig
3647bc6c3a
MT#7545 API: Fix removing old groups from subs.
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
90c2eda399
MT#7789 API: Clear special preferences on PUT
11 years ago
Andreas Granig
f298079c90
MT#7649 Return linerange.num_lines as int
11 years ago
Andreas Granig
5805d848d3
MT#7771 Add cloud_pbx_ext preference.
11 years ago
Andreas Granig
f41626e521
MT#7545 Allow multiple pbx groups per subscriber
11 years ago
Andreas Granig
3845260070
MT#7649 API: Implement create/update for pbx devs
...
Delete is not there yet.
11 years ago
Gerhard Jungwirth
489a86c8b8
MT#7493 API set cloud_pbx preference on subscriber creation
11 years ago
Gerhard Jungwirth
11f59d4494
MT#7557 API: save pbx_extension
11 years ago
Andreas Granig
86e422bea8
MT#7493 API: Preserve int. prefs on update
...
Don't clear internal preferences when doing a PUT on preferences.
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
2f06618362
MT#4019 Implement C2D in api via /api/callcontrols
11 years ago
Andreas Granig
5931995944
MT#7377 API: check if alias_numbers is array.
11 years ago
Andreas Granig
51640b7156
MT#7377 API: check for pilot primary_number.
...
Before adding pbx_extension, check if pilot has a primary number.
11 years ago
Andreas Granig
c36a127a97
MT#7495 Add customerpreferences rel and fix doc.
11 years ago
Irina Peshinskaya
6d6484a645
MT#5879 Changes related to invoice email template.
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
5471f9115b
MT#7271 API: Explicitely set cf pref on update
...
Make sure that if we have a mapping, that we also set or update
the preference to the mapping id.
11 years ago
Gerhard Jungwirth
75aeaa6add
MT#7421 API soundfiles, check empty filename
11 years ago
Andreas Granig
e0bb62f82b
MT#7323 API: fetch sound handles via REST
11 years ago
Andreas Granig
1b08f6e3ac
MT#7395 API: implement NCOS level and pattern
...
Manage levels and patterns via REST.
11 years ago
Andreas Granig
db1f6da27c
MT#7377 API: check uniqueness of pbx_extension.
...
Otherwise we get a duplicate entry error when creating the
corresponding primary number.
11 years ago
Gerhard Jungwirth
8f5c6d0907
MT#7239 API faxserversettings
11 years ago
Andreas Granig
1147ad5db0
MT#5879 Remove more debug messages.
11 years ago
Andreas Granig
0baef998a6
MT#7377 API: better check for JSON::Types::bool.
...
Sometimes the value is a ref to some other var, so a simple
if($foo){} is not sufficient, as it would be true, althouhg we're
just checking if it's defined and has a value.
11 years ago
Andreas Granig
363249fac1
MT#7377 API: Fix pilot subscriber editing.
11 years ago
Andreas Granig
e8853cf869
MT#5349 API: Fix domain activation for xmpp
11 years ago
Andreas Granig
8efa32a98a
MT#7377 Use is_pbx_pilot instead of admin flag
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
4e3b373df3
MT#7119 API: Fix PBX subscriber creation.
...
Document only rendered form fields.
Expose pbx_extension and others via subscribers form.
11 years ago
Gerhard Jungwirth
e02841d769
MT#7309 API fix updating autoattendants
...
correct validation on empty array (allowed)
set uuid field
11 years ago
Gerhard Jungwirth
2e1b9135a6
MT#7307 API fix speeddials validation
...
empty is possible; error message on duplicate slots
11 years ago
Gerhard Jungwirth
ef2259c2a9
MT#7271 API set user_preference on updating cfmappings
11 years ago
Gerhard Jungwirth
4d2722c5c1
MT#7271 API set user_preference on updating callforwards
11 years ago
Gerhard Jungwirth
71aa24e791
MT#7239 enforce boolean context
...
when updating a JSON::Boolean
11 years ago
Gerhard Jungwirth
7a79ad2fec
MT#7211 API autoattendants
11 years ago
Andreas Granig
378f53c806
MT#7191 Use DT to select contact country.
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
Irka
50b89773da
Save state with incorrect, but fast svg template apply
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
Gerhard Jungwirth
7333869c54
MT#7113 API subscribers: provide hunt-policy/timeout
...
for a subscriber with is_pbx_group=true
11 years ago
Andreas Granig
df9d103893
MT#6827 Deprecate linerange_num field.
...
In hind-sight, this field appears like an ugly hack to determine
the proper line range in the aaData array fetched via ajax. However,
we already have the correct range_id, and using the index of the aaData
has so many possible side effects to break everything, that I'm wondering
what I was thinking when adding it :p
11 years ago
Andreas Granig
60de7de4a7
MT#7067 API: Implement sound file handling.
...
Create new sound files.
Update sound files.
Delete sound files.
11 years ago
Andreas Granig
aaac4b6415
MT#7067 API: Implement sound set handling.
11 years ago
Andreas Granig
b0993b62b9
MT#3939 API: Implement trusted source handling.
11 years ago
Andreas Granig
1cc0aa69f4
MT#7039 API: link subscriberregistrations
...
- Properly join voip_subscribers and voip_domains
- Link relations to subscriber
11 years ago
Andreas Granig
74d3458e66
MT#7061 API: implement reminder handling.
11 years ago
Andreas Granig
024d3fc92a
MT#7029 API: fix exposure of administrative flag.
11 years ago
Andreas Granig
9767e62204
MT#6913 API: remove Data::Printer debug.
11 years ago
Andreas Granig
2b2c1f0fbb
MT#6913 API: fix profile(set) update.
11 years ago
Andreas Granig
7df32a993b
MT#7039 API: implement SIP registration handling
11 years ago
Andreas Granig
7cbdb2762f
MT#3947 API: Implement voicemail settings.
...
Change email, pin, attach and delete via REST.
11 years ago
Gerhard Jungwirth
663782432e
MT#7029 API subscriber, fix creation of admin subscriber
...
don't try to get primary number when there is no
admin subscriber yet.
11 years ago
Andreas Granig
28ee0960a4
MT#3943 API: fetch cdrs via REST.
...
Allow to filter for subscriber_id and customer_id.
11 years ago
Andreas Granig
b0b0e03594
MT#6871 Fix updating non-pbx subscriber.
...
Set is_pbx_group to 0 by default, as it's not passed along in an update.
11 years ago
Andreas Granig
bffe93f359
MT#6979 API: expose id field in pbx device items
11 years ago
Andreas Granig
6e5e1b53c4
MT#3941 API: Implement voicemail message handling.
11 years ago
Gerhard Jungwirth
f7ebfe07c1
MT#3937 API speeddials put/patch
11 years ago
Gerhard Jungwirth
d71f12aff9
MT#3937 API speeddials get
...
collection and item
11 years ago
Gerhard Jungwirth
139dabf562
MT#6827 API pbxdevice* improvements
...
search queries, description and form validation
11 years ago
Gerhard Jungwirth
0de65edace
MT#6827 API pbxdevicemodels GET
11 years ago
Gerhard Jungwirth
313bf84e6a
MT#6827 API pbxdeviceconfigs GET
11 years ago
Gerhard Jungwirth
0430f83d46
MT#6827 API pbxdeviceprofiles GET
11 years ago
Andreas Granig
c8ad008ca6
MT#3935 API: Properly handle bool values in prefs.
...
Preferences failed to validate in case of bool values.
11 years ago
Andreas Granig
84cc7c36c9
MT#6913 API: fix profile(_set) deletion.
11 years ago
Andreas Granig
19d6b47796
MT#6913 API: implement profile handling.
11 years ago
Andreas Granig
427bd2e312
MT#6913 API: Basic management of profile sets.
11 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.
11 years ago
Andreas Granig
f47c7d114f
MT#6909 API: add reseller rel to emailtemplates
11 years ago
Andreas Granig
cd98d27ad7
MT#6909 API: implement email template management.
11 years ago
Andreas Granig
1da7f9a7bc
MT#6789 API: validate email template id
...
Its reseller needs to match the customer contact's reseller.
11 years ago
Andreas Granig
88c6e4d78f
MT#6789 API: handle subscriber email and profile.
...
Handle new email field.
Fix profile handling on subscriber creation.
11 years ago
Andreas Granig
976843e55e
MT#6827 API POST/PUT/PATCH/DELETE of field devices
11 years ago
Gerhard Jungwirth
d2a3348a78
MT#6827 API pbxdevices POST
...
wip
11 years ago
Gerhard Jungwirth
816fbcefb6
MT#6827 API pbxdevices GET
...
wip
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
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.
11 years ago
Gerhard Jungwirth
2fc4743183
MT#6497 API use billing subscriber id on all places in cf_*_sets
...
that is:
- api/cfdestinationsets
- api/cftimesets
11 years ago
Gerhard Jungwirth
0feca3ea94
MT#6497 API cfmappings handle ringtimeout for cft
11 years ago
Gerhard Jungwirth
63ac99218e
MT#6497 API cfmappings PUT, PATCH
11 years ago
Gerhard Jungwirth
a11b53aa3e
MT#6497 API cfmappings GET
11 years ago
Gerhard Jungwirth
2dd40a8999
MT#6497 API cftimesets
11 years ago
Gerhard Jungwirth
d4cf98646d
MT#6497 API cfdestinationsets
11 years ago
Gerhard Jungwirth
a7483ca351
MT#6497 API: callforwards, better validation
11 years ago
Gerhard Jungwirth
5ae0ed442b
MT#6497 API: edit cft ringtimeout
...
we also try to delete unused cf_mappings now
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
Gerhard Jungwirth
3bdc7c74b9
MT#6703 fix merge conflict
...
and remove one more class dependency (see MT#6559)
11 years ago
Irina Peshinskaya
0c5c6ff0f8
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 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
11 years ago
Irina Peshinskaya
dcccfa9232
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 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
11 years ago
Irina Peshinskaya
021b0af430
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 years ago
Gerhard Jungwirth
21a5d7ee37
MT#6195 API rwr: Give proper reseller access
...
see also MT#6479
11 years ago
Irina Peshinskaya
bd7d18c49b
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 years ago
Gerhard Jungwirth
31e6c5fa71
MT#6195 API: ability to handle rules directly in rewriteruleset
11 years ago
Gerhard Jungwirth
11e421dc08
MT#6195 API: rename rewrite -> rewriterulesets
11 years ago
Irina Peshinskaya
34f77792c9
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
...
Conflicts:
lib/NGCP/Panel/Role/API/Customers.pm
11 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.
11 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
11 years ago
Irina Peshinskaya
f0263620e4
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
11 years ago
Gerhard Jungwirth
10b7ed52c4
MT#5599 fix role check
11 years ago
Gerhard Jungwirth
36f2be7689
MT#6195 API: rewrite: GET, PUT and PATCH implemented
11 years ago
Irina Peshinskaya
f5b02e48f0
Merge branch 'master' of git.mgm.sipwise.com:ngcp-panel
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
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
0218de9cc0
MT#5833 Update italian translation.
11 years ago
Andreas Granig
2c49abb49e
MT#3925 Add more field descriptions to forms.
11 years ago
Andreas Granig
c799df3ebd
MT#3925 API: dynamically render API documentation.
11 years ago
Andreas Granig
d508a519c8
MT#3933 API: tighten subscriber creation.
11 years ago
Andreas Granig
cd155992ca
MT#5661 API: fix prepaid flag changes.
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
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
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
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
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
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
456df97df0
MT#3931 API: implement customer contract handling.
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
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