Andreas Granig
3f2ecc2da3
MT#4237 Fix create of reseller on billprof edit
...
The field handler for the reseller button was missing in the
billing controller edit function.
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
Gerhard Jungwirth
7427601806
MT#4265 Fix editing contacts without a reseller
...
which resulted in an exception before because
we tryed to access reseller->id
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
3acdd72dc6
MT#4145 Change postcode to txt, fix empty reseller
...
Postcodes can be alphanumeric in certain countries.
Avoid fault when editing a contact without reseller
(e.g. reseller/peer contact). You still can't save it without
setting a reseller (which might not be what we want).
12 years ago
Andreas Granig
ff68cbdf84
MT#4309 Show locked subs in Customer Details
...
Before, only active ones where shown.
12 years ago
Michael Prokop
ea5696da2c
Revert "MT#4229 custom Internal server error page"
...
This reverts commit eece093fd0
.
Otherwise fails with:
| Starting NGCP-Panel Webapp: ngcp_panel_fastcgi:Can't locate Convert/Ascii85.pm in your Perl library. You may need to install it
| from CPAN or another repository. Your library paths are:
| /etc/perl
| /usr/local/lib/perl/5.14.2
| /usr/local/share/perl/5.14.2
| /usr/lib/perl5
| /usr/share/perl5
| /usr/lib/perl/5.14
| /usr/share/perl/5.14
| /usr/local/lib/site_perl
| .
|
| BEGIN failed--compilation aborted at /usr/share/perl5/NGCP/Panel/Controller/Root.pm line 5.
| Compilation failed in require at /usr/share/perl5/Catalyst/Utils.pm line 308.
| Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 317.
| at /usr/share/perl5/Catalyst/ScriptRunner.pm line 50
| error ... failed!
because Convert::Ascii85 isn't available yet in our repositories,
therefore revert to fix broken trunk.
Acked-by: Andreas Granig <agranig@sipwise.com>
Git-Dch: Ignore
12 years ago
Lars Dieckow
eece093fd0
MT#4229 custom Internal server error page
...
Move error_page to notfound_page. error_page is now for internal server errors.
Introduce logging option log_crash_state, enabled by default. Crash states are
written out compressed and encoded log-file-friendly, these are useful for
debugging but take a couple dozen kilobytes of disk space each.
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
507f42c564
MT#4025 Fence sound set for subscriberadmins.
...
Only admins, resellers and subscriberadmins are allowed to manage
sound sets. For subscriberadmins, they have to have a pbxaccount to
do so.
12 years ago
Andreas Granig
8f6431fbee
MT#4025 Implement management of customer sound set
...
If a sound set has a contract_id, only show pbx group (consider it
being a customer sound set).
If it only has a reseller_id, show everything else except pbx group
(consider it being a system sound set).
12 years ago
Andreas Granig
5d8c81eadc
MT#4213 Don't search for contract id twice.
...
The result set is already complex enough :)
12 years ago
Andreas Granig
9680cad859
MT#3977 properly handle firmware upgrade.
12 years ago
Andreas Granig
5730437acf
MT#3977 Implement editing of PBX field device.
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
Andreas Granig
03e4d574b6
MT#3977 Prepare line/key in PBX field dev.
12 years ago
Andreas Granig
fba3998657
MT#3977 Implement line/key handling for devices.
...
This is part 1 to define keys/lines on a device, to be assigned to
subscribers.
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
Gerhard Jungwirth
ebe64d3563
uri_unescape CDRs
...
Mantis: 3413
12 years ago
Gerhard Jungwirth
b442c759a1
Show Timeset and Destination Set Names
...
and provide a Modal showing the Detail of each.
Except the case when thedestination_set.name is called "quickset_*" and
it only has one entry.
In that case show the particular destinations of this destination set,
in order to not confuse a user who just configured a trivial cf via the simple view.
under Subscriber Preferences -> Call Forwards
Mantis: 3803, 3801
12 years ago
Andreas Granig
683047c112
MT#3975 Prevent subadmin from terminating himself.
12 years ago
Andreas Granig
dd62516857
Fix $controller::auto declaration.
12 years ago
Andreas Granig
1cec4f9243
Add TODO for Device::base cleanup.
12 years ago
Andreas Granig
af5cc9b14a
Try to avoid wrong redirect to login after login.
12 years ago
Andreas Granig
2447dc9997
Harden access to device controller for subscribers
12 years ago
Andreas Granig
1af065d864
Allow subscriberadmin to access sub-subscribers.
12 years ago
Andreas Granig
f2b57291ba
Only allow subscriber logins from active accounts.
12 years ago
Andreas Granig
086d91ff0e
Use roles instead of realm for logged in users.
12 years ago
Andreas Granig
fc8c9e2df8
Cleanup debug log messages.
12 years ago
Andreas Granig
93fb5eb1cb
Don't allow login subscriber to subscriber details
12 years ago
Andreas Granig
d5dc850bd9
Add subscriber login registered dev widget.
12 years ago
Andreas Granig
fb780a72b3
Only validate speeddial form if posted.
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
b8cf0895ba
Implement subscriber login call-list/voicemails.
12 years ago
Andreas Granig
1dcd7029ca
Correctly prepare subscriber rs depending on realm
...
Filter subscriber resultset to specific subscriber in case of
subscriber login.
12 years ago
Andreas Granig
2faa84a9d6
Prepare ACL for subscriber login.
12 years ago
Andreas Granig
78e126c9cb
Add basic voicemail widget for subscribers.
12 years ago
Andreas Granig
06fc0fa4dd
Fix subscriber login and add basic widgets.
12 years ago
Andreas Granig
5160759f38
Implement subscriber login.
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
Gerhard Jungwirth
01ba8802cf
Fix duplicate showing of contracts under Reseller Details - Reseller Contract
...
The problem occured when a reseller is linked to multiple billing_mappings
Mantis: 3855#c23785
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
2f85002f28
Correctly identify customer contracts
...
the product handle was compared to the class name by mistake
12 years ago
Gerhard Jungwirth
f444dc0d81
Show Contract (equals Cusomer-) id
...
For better identification of the current contract in details/edit views.
Mantis: 3885
12 years ago
Andreas Granig
d156b57f9d
Add display name to PBX device config template.
12 years ago
Andreas Granig
b4949f1a48
Implement PBX device boot-strapping.
12 years ago
Andreas Granig
fdc1f9514a
Implement PBX field device config delivery.
...
Currently supports sip.username, sip.domain and sip.password tags,
more to come.
12 years ago
Andreas Granig
d4ec2ef042
Implement PBX field device handling.
12 years ago
Andreas Granig
fef88b9ed3
Add PBX device skeleton.
12 years ago
Andreas Granig
d27d6a1414
Make domain optional when handling reg contacts.
12 years ago
Andreas Granig
527bac928f
Fix registration list if ignore_auth_realm is set.
12 years ago
Andreas Granig
015f04bdc1
Add front and mac image for devices.
12 years ago
Andreas Granig
231dc9fd07
Reset DT field id if it's not selected.
12 years ago
Andreas Granig
c3cadb1503
Implement device profile management.
12 years ago
Andreas Granig
e5832d6e13
Implement device config management.
12 years ago
Andreas Granig
dcac5aa5c6
Implement device firmware management.
12 years ago
Andreas Granig
199ae7ed8d
Implement device model management.
12 years ago
Andreas Granig
35e3a51759
Add skeleton for device provisioning.
12 years ago
Gerhard Jungwirth
c6abfbc7cb
Correctly select customers under reseller-> customers section
...
Only show the most applicable billing_profile using the complex
query from the Contract controller
Mantis: 3855
12 years ago
Gerhard Jungwirth
594f341ee8
Preserve the product_id when updating a billing_mapping
...
This had created a billing_mapping with product_id = NULL before, which
is no longer a valid option and caused the panel to fail
12 years ago
Gerhard Jungwirth
788d78ebc2
Group callflows by call_id
...
and for callflows with call_id "*_b2b-1" just show details for the
main call_id (which already includes the b2b traffic)
12 years ago
Andreas Granig
acf36bde4b
Add PBX auto-attendant and office-hours CF targets
12 years ago
Andreas Granig
ca3e92fbe1
Fix editing normal subscriber.
...
The admin column can't be null.
12 years ago
Andreas Granig
811929bedb
Add display name and shared roster visibility.
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
d79b11aa0a
Remove subscriber from PBX group on termination.
12 years ago
Andreas Granig
3c8734f089
Make PBX groups editable.
12 years ago
Andreas Granig
2daa16dae5
Migrate pbx feature config flag to cloudpbx.
12 years ago
Andreas Granig
7f7e6cbca8
Assign contracts to sipaccount product by default.
12 years ago
Andreas Granig
63e9ded2ca
Properly set PBX preferences and use transaction.
12 years ago
Andreas Granig
85365959dd
Fix customer determination in dashboard.
...
Properly filter by product class.
12 years ago
Andreas Granig
23675b4da3
Implement group, admin and ext handling for PBX.
12 years ago
Andreas Granig
754f1f7887
Align customer detection to product handling.
12 years ago
Andreas Granig
dfb25d922c
Add skeleton to create admin/extension subscriber.
12 years ago
Andreas Granig
fe580d3c53
Show product name in customer details.
12 years ago
Andreas Granig
e6b9a0aad0
Add product selection for customer contracts.
12 years ago
Gerhard Jungwirth
1c154f8542
Only show relevant domains on reseller details
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
Gerhard Jungwirth
b856662883
Call end-user-contracts customers to avoid confusion
...
especially when the user navigates here from the Customer controller
Mantis: 0003605
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
Andrew Pogrebennyk
3d115071b2
Fix a typo on peering page: caller vs callee.
12 years ago
Gerhard Jungwirth
4e49c963aa
use the message utility for all controllers
12 years ago
Gerhard Jungwirth
0909c813f3
Use the messaging utility for Domains
12 years ago
Gerhard Jungwirth
a2ddf93c8d
Copy rewrite rule set functionality
...
Mantis: 0003135
12 years ago
Gerhard Jungwirth
c69ab29c54
Add some fields to contacts form
...
also preselect the reseller in the contacts form
Mantis: 0003625
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
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
Andreas Granig
0f9d12f8a7
Prevent termination of contract with id 1.
12 years ago
Andreas Granig
7b24025822
Filter sound groups according to config.
12 years ago
Andreas Granig
2d1d5b6ebd
Allow to add empty offpeak start/end time.
12 years ago
Andreas Granig
017446312f
Clear created domain from session.
12 years ago
Andreas Granig
e5652b3535
Pass ctx to DestinationSet form.
...
Needed to show the right CF targets.
12 years ago
Andreas Granig
b430850306
Fix filtering of free reseller contracts.
12 years ago