update extension email and system owner from debian console?

korazy

Free User
Joined
Dec 1, 2020
Messages
18
Reaction score
4
Last July I upgrade from v18 to v20 and it was messy. First try it failed with debian 11 installed, so I had to restore the backup and try again. The second attempt worked, but I couldn't logon to management console. It's been working so I have just be going with it but I want to fix this now so I can logon to admin before I need to. When I restored and did the upgrade the second time, I think I used the backup from before I made the v20 necessary requirements.

Before I delete my instance and redo everything. Is there an way to fix my extensions from the debian console? I can logon to the console with root of my host. My setup is 1 person (me), 2 extensions for 2 desk phones. Extension 00 was suppose to be my owner account with email [email protected]. Extension 01 is my everyday deskphone and IOS with [email protected].

If I try to do the forgot password for my 00 or 01 extension, no emails are received. Voicemail to email is turned off for both extensions because 00 voicemail is turned off and 01 voicemail only used IOS to check those.

I expect the fix is to change extension 00 to by system owner and change the email address. Is there way to do this from the debian console?
 
No, there is no way to do this from cli. Is the email of the owner email address unique on this system? Is email generally working?
 
  • Like
Reactions: Evolute IT
@korazy
You can create a 3CX backup on the command line
Bash:
cd /tmp
sudo -u phonesystem /usr/lib/3cxpbx/BackupCmd -f=/var/lib/3cxpbx/Instance1/Data/Backups/extern_edit1.zip -o=ALL
adapt the backup xml to your own requirements (set email address, password, system owner ...), put it back, set rights and restore or reinstall 3CX from this backup
Bash:
chown phonesystem:phonesystem /var/lib/3cxpbx/Instance1/Data/Backups/*.zip
sudo -u phonesystem /usr/sbin/3CXRestoreCmd -f=/var/lib/3cxpbx/Instance1/Data/Backups/extern_edit1.zip

The only problem I know of is packing the modified XML file. Unfortunately, this only works under Windows at the moment. I have tried many other options. I have not yet been able to modify a 3CX backup and reassemble it with another packing program so that 3CX accepts and imports the backup.

https://www.3cx.com/community/threads/cant-login-after-v20-upgrade.129671/post-617179
 
No, there is no way to do this from cli. Is the email of the owner email address unique on this system? Is email generally working?
Thanks for the response. I think they are both the same. I must have imported the backup before my second upgrade attempt from before I did the v20 requirements. I'm just going to delete and redo, my setup is simple.
 
@korazy
You can create a 3CX backup on the command line
Bash:
cd /tmp
sudo -u phonesystem /usr/lib/3cxpbx/BackupCmd -f=/var/lib/3cxpbx/Instance1/Data/Backups/extern_edit1.zip -o=ALL
adapt the backup xml to your own requirements (set email address, password, system owner ...), put it back, set rights and restore or reinstall 3CX from this backup
Bash:
chown phonesystem:phonesystem /var/lib/3cxpbx/Instance1/Data/Backups/*.zip
sudo -u phonesystem /usr/sbin/3CXRestoreCmd -f=/var/lib/3cxpbx/Instance1/Data/Backups/extern_edit1.zip

The only problem I know of is packing the modified XML file. Unfortunately, this only works under Windows at the moment. I have tried many other options. I have not yet been able to modify a 3CX backup and reassemble it with another packing program so that 3CX accepts and imports the backup.

https://www.3cx.com/community/threads/cant-login-after-v20-upgrade.129671/post-617179
Thanks. I'm going to delete my instance and redo.
 
  • Like
Reactions: bitn2 and fxbastler

Members Online Now

Forum statistics

Threads
111,832
Messages
589,286
Members
164,662
Latest member
DejanMDS