Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCCP line unset from device after editing extension under SCCP extension tab #89

Open
marcelloc opened this issue Dec 21, 2022 · 6 comments

Comments

@marcelloc
Copy link

marcelloc commented Dec 21, 2022

Hi, first of all, this project is great! I'm using freepbx16 and sccp but I'm having some issues with line association
image

Before editing user settings line is associated to device
image

image
After changing any settings here, saving and reloading

image
line gets empty.

Looking at database, the sccpbuttonconfig for the instance that has the line associated, in this case instance 1 was deleted from database.
image

If I reinsert it or associate the line again on sccp line tab, all gets working again.

image

Tried also with one or more lines associated to a device with same result/bahavior

@cagriaksu
Copy link

I also have this problem. When I make a change, the line button dissappears from phone and other speed-dial buttons move up. And when I re-associate the line, the button on top gets removed.

Did anyone also had this issue?

@teldatip
Copy link

teldatip commented Apr 7, 2023

I am having the same issue. Does anyone have a work around for this?? I would hate for this to be a reason why I go back to Cisco CME & just use the FreePBX as the voicemail for the cisco phones.....

@marcelloc
Copy link
Author

marcelloc commented Apr 10, 2023

I am having the same issue. Does anyone have a work around for this?? I would hate for this to be a reason why I go back to Cisco CME & just use the FreePBX as the voicemail for the cisco phones.....

I've wrote this php script that backups the working configuration and restores line config when it get lost on save config.

This is a workaround for the issue until it can get fixed

create /root/backup_buttonconfig/ dir on your freepbx

fix_sccp_line_config_on_database_after_save_config.txt

run it using crontab every minute
`

  •   *       *       *       *       /root/fix_sccp_line_config.php
    

`

@teldatip
Copy link

teldatip commented Apr 10, 2023 via email

@teldatip
Copy link

Ok. So I tried to run the same configuration in another FreePBX server with SCCP Manager installed with registered extensions that you sent me and it doesn't seem to be working. My thought is I may have not created the folder correctly. So to be clear, am I supposed to create a directory within the root directory and then create another file and place the script inside of there?

Thanks...

@marcelloc
Copy link
Author

Create /root/backup_buttonconfig/ dir on your freepbx server and the script you can save on any path you want.

Don't forget to chmod +x the script and call it on cron every minute.

The script saves current "good" config and restore line settings every time it's missing a line on database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants