Hello. I am having RTP issues with my Freepbx installation. I am getting rtp timeout errors. While doing some troubleshooting for this primary issues, i went to login to look at my advanced sip settings to check my nat settings.
when i try to open my sip settings menu, i am seeing this below error message
The only way this should happen is if you have no sip*.conf or do not have permissions on those files. That said please open a bug because this situation should be handled more gracefully.
I could be wrong but from past exchange with Andrew I had the impression that “parse_ini_file()” is relatively new code and your file contains something it never expected to see in this file… Your previous install probably had a different way to parse that file…
It’s not the double callcentric10 entry that makes it crash though, it’s what I assume to be comments (those “(home-callcentric)” entries)… Comments should start with “;” not end with it…
I wouldn’t trust that weird callcentric10 entry though unless a FreePBX dev says it has a use…
If there’s actually a use for those “(home-callcentric)” and if they are not meant to be comment then maybe you are not putting them in the right file…
In quite a few places people were putting these callcentric entries in /etc/asterisk/sip_custom_post.conf…
edit: I see that in this file parenthesis have a special meaning but it seems to be limited to “(+)” and “(-)” though…
This file is not parsed by FreePBX (at least not where this currently crashes)…
Seems to me that what callcentric recommends seems overly complex and difficult to maintain, I hope there’s a gain somewhere to going that way… I have trunks with 4 different providers and none of them required me to do something as “peculiar” as that…
The forum mangled the file contents (now fixed). Temporarily remove the contents of that file, and retest the GUI. When you confirm what the problem is, fix the file content, noting specifically that lines preceeding alpha4 appear to be missing.
Lorne, when I put that file on my FreePBX box, it makes it crash in the same way…
It looks like it’s the weird syntax used in the file which is displeasing parse_ini_file…
From what I could gather it looks like it’s supposed to be telling to use the definition of the “home-callcentric” trunk as some sort of template for all those other entries and you are right, other people have entries preceding the “callcentric5” one but this is not the cause of the crash.
I did create a dummy “home-callcentric” trunk on my box to make sure this is not what was making it crash here and I did create those missing entries as well…
If I put the content of his file in /etc/asterisk/sip_custom_post.conf as others are doing in a thread here or on elsewhere on the web FreePBX is happy since it’s not one of the file FreePBX parses… As to whether it works as designed, I do not know.