Open Source Training Seminar FreePBX Paid Support

Ticket #1902 (closed Bugs: fixed)

Opened 1 year ago

Last modified 1 year ago

Misc Application feature code not updating correctly

Reported by: elally Assigned to: gregmac
Priority: major Milestone: 2.3
Component: Misc. Destinations Version: 2.3-branch
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: Asterisk 1.2.x Backend Engine Version:

Description

Description:
After changing the feature code for a miscellaneous application entry, the Feature Codes page shows the correct value, but the "default" checkbox is unchecked. If the checkbox is checked, then the value reverts to the value used when originally creating the misc. app. entry.


Steps to recreate:
1. Click on Misc. Applications
2. Enter a description, feature code, and choose a destination.
3. Click Submit to save the misc. app.
4. Go to Feature Codes screen and verify the misc. app. appears
5. Go back to the Misc. Applications screen
6. Edit the misc. app. just created and change the feature code
7. Click Submit to save the misc. app.
8. Go to Feature Codes screen and verify the misc. app. appears -- the feature code will be updated, but the Default checkbox will be unchecked. Selecting the checkbox will change the feature code value to the old code.


Root Cause:
When the misc. app. is created, the original feature code entry is stored in the defaultcode column in the featurecodes table. When you edit the misc. app., the feature code is written to the customcode column whether it changes or not. If there is a value in the customcode column -- whether it differs from defaultcode or not -- FreePBX will indicate that the default code is not being used.


Additional Info:
I found that I could edit the entry directly in the asterisk database to fix things -- as long as I cleared the customcode field and correctly set the defaultcode, the misc. app. worked fine after reloading the configuration.

In addition, I found that deleting the misc. app. did not delete the entry from the featurecodes table (although it was properly deleted from the miscapps table) -- I had to delete it from featurecodes manually.

Change History

04/12/07 19:25:45 changed by vgster

Also #1745

06/09/07 02:53:32 changed by p_lindheimer

  • version changed from 2.2.1 to 2.3-branch.

07/19/07 11:36:32 changed by lazytt

  • priority changed from minor to major.

confirmed! I noticed something similar with 2.2.2. Rather anoying

07/19/07 16:51:54 changed by sprior

please add me to the cc list for this bug.

07/27/07 17:21:45 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

r4579 (2.3)
r4580 (2.2)

changed miscapps so editting always changes the default code and not the custom code in that may be defined in featurcodes. This means if featurecodes is using the default and you change it here, the change will take place. If it is using a custom code and you change it here, it will continue to use that custom code but the default in the featurecodes table will now be this new code.

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads