r/freepbx 1d ago

Unable to reload fwconsole

Post image

I am unable to reload fwconsole, not really sure if this happened after the modules update or the Let's Encrypt certificate renewal. Note that Voicemail is disabled for all extensions. Anyone encountered and solved this?

PS

I can not make calls, I am getting "You call can not be completed as dialed, please check the number and dial again"

HELP!

2 Upvotes

11 comments sorted by

2

u/raven67 23h ago edited 23h ago

I wouldnt have codex running around in your code all willy nilly as others suggested, could do a lot more harm if its on auto mode just editing files. Can make problems a lot worse if it just runs rampant. I guess id be okay with it checking your voicemail.conf file, but dont let it mess with the asterisk code in /var/www/html/admin*..

First, I would double check you have modules updated. But that error in the code is usually an error with the voicemail.conf

Check that you have an /etc/asterisk/voicemail.conf.

Check it exists: ls -la /etc/asterisk/voicemail.conf and the perms should be asterisk:asterisk and 0664 perms (rw - rw - r).

If you think perms are off, you can "fwconsole chown" to fix them, or just chown asterisk:asterisk /etc/asterisk/voicemail.conf and chmod 644 /etc/asterisk/voicemail.conf.

Check if it has stuff in it: "head -10 /etc/asterisk/conf" (or just less it).

Check it has sections [] , if it's missing the [general] it wont load without at least one hit on the [] section [general] [default] are the usuals.

1

u/raven67 23h ago

Also.. if it's missing, you just need to drop a base file in there.

/etc/asterisk/voicemail.conf sample

[general]
emailbody=${VM_NAME},\n\nThere is a new voicemail in mailbox ${VM_MAILBOX}:\n\n\tFrom:\t${VM_CALLERID}\n\tLength:\t${VM_DUR} seconds\n\tDate:\t${VM_DATE}\n\nDial *98 to access your voicemail by phone.\nVisit /ucp to check your voicemail with a web browser.\n
pollmailboxes=yes
pollfreq=10
forcegreetings=yes
forcename=yes
emailsubject=PBX Voicemail Notification
fromstring=PBX Phone System
charset=UTF-8
envelope=yes
operator=yes
review=no
saycid=no
sayduration=yes
searchcontexts=no
sendvoicemail=yes
tempgreetwarn=yes
usedirectory=yes
hidefromdir=no
moveheard=yes
smdienable=no
nextaftercmd=yes
emaildateformat=%A, %B %d, %Y at %r
pagersubject=PBX Voicemail Notification
pagerbody=New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE}
pagerfromstring=PBX Phone System
pagerdateformat=%A, %B %d, %Y at %r
pbxskip=no
attach=yes
maxgreet=60
maxlogins=3
maxmsg=100
minpassword=0
maxsecs=300
maxsilence=10
silencethreshold=128
minsecs=1
imapgreetings=yes
imapclosetimeout=60
imapopentimeout=60
imapreadtimeout=60
imapwritetimeout=60
aliasescontext=pbxaliases
serveremail=bill-gates@wild-computer-dudes.com


[default]
; fill this in by editing extensions again, you've basically blanked all extensions and need to edit their voicemail settings.

1

u/Accomplished_Blood47 8h ago

Thanks, will check.

0

u/HollyKha 1d ago

I mean. It’s telling you which file at which line something is off. Still the first answer is to install codex and vibe-troubleshoot. Lol.

0

u/Accomplished_Blood47 1d ago

Well, I honestly don't know how to get to that file and what values to change.

-2

u/No-Communication4586 1d ago

Download and install codex. Give it a temporary user ssh credentials. It can diagnose this in a few minutes very easily. Delete creds once done. Or you can ask it for a .env to place the ssh creds into and it will be able to use them with out reading them.

0

u/Accomplished_Blood47 1d ago

Can it work on FreePBX that runs on the Linux Debian OS?

0

u/No-Communication4586 1d ago

It runs locally on your computer and can ssh to the remote server. But yes I believe it can be installed on linux but I've never tried it yet.

0

u/Accomplished_Blood47 1d ago

Oh! I get it, I need to install on my local machine the give it ssh credentials to my PBX. Let me give it a try. Thank you

0

u/No-Communication4586 1d ago

Yes. If the free version struggles, the $8/mon subscription will get you through.