when change Sip Profile, it is not affect

Ganbold

New Member
Apr 19, 2024
3
0
1
46
Hello, I'm not expert on fusionPBX and freewitch. Just after installed fusionpbx on ubuntu 22.04.
When change Internal sip profile. nothing changed. After research, it reads from /usr/local/freeswitch/conf/sip_profile/internal.xml.
I set Postgre config on freeswitch, but nothing changed. My old environment, all xml files are: external-ipv6.xml.noload external.xml.noload internal-ipv6.xml.noload internal.xml.noload. And it works as I expected. What is wrong with me, please help?
 

Ganbold

New Member
Apr 19, 2024
3
0
1
46
Thank you. I've fixed install.sh file and it works fine. There is a script error on a source-release.sh.
 

shopcomputer

New Member
Nov 1, 2024
3
0
1
48

@Ganbold What exactly did you do to fix this issue, I think I am having the same issue on a Debian install. It is not reading the sip profiles from the database, although it seems to be setup correctly. The directory only has the noload xml's, the db has my correct sip profiles, however the sip profiles loaded on not my profiles, I don't know where the profiles that are loaded are coming from.​

I looked at the install.sh and source-release.sh however I don't know what needs to be changed.​

 

Ganbold

New Member
Apr 19, 2024
3
0
1
46

@Ganbold What exactly did you do to fix this issue, I think I am having the same issue on a Debian install. It is not reading the sip profiles from the database, although it seems to be setup correctly. The directory only has the noload xml's, the db has my correct sip profiles, however the sip profiles loaded on not my profiles, I don't know where the profiles that are loaded are coming from.​

I looked at the install.sh and source-release.sh however I don't know what needs to be changed.​

Hello, My environment was ubuntu, so maybe difference. On Ubuntu 1) Freeswitch not installed correcty. it gvies following error: mod_pgsql.c:765:17: error: enumeration value ‘PGRES_TUPLES_CHUNK’ not handled in switch [-Werror=switch]
2) in source-release.sh: there is syntax error on the line: if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
I change these 2 things fixed by manually, and everything goes OK.
 

shopcomputer

New Member
Nov 1, 2024
3
0
1
48
Hello, My environment was ubuntu, so maybe difference. On Ubuntu 1) Freeswitch not installed correcty. it gvies following error: mod_pgsql.c:765:17: error: enumeration value ‘PGRES_TUPLES_CHUNK’ not handled in switch [-Werror=switch]
2) in source-release.sh: there is syntax error on the line: if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then
I change these 2 things fixed by manually, and everything goes OK.
How did you fix, 1) I just tried make install mod_pgsql, got the same error as you.

root@PBX:/usr/src/freeswitch-1.10.12/src/mod/databases/mod_pgsql# make install mod_pgsql
CC mod_pgsql_la-mod_pgsql.lo
mod_pgsql.c: In function ‘pgsql_next_result_timed’:
mod_pgsql.c:765:17: error: enumeration value ‘PGRES_TUPLES_CHUNK’ not handled in switch [-Werror=switch]
765 | switch (res->status) {
| ^~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:731: mod_pgsql_la-mod_pgsql.lo] Error 1

2) I do have line if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then

I am not noticing a syntax error unless I am missing something. Line seems the same both in debian and ubuntu files.
 
Last edited:

shopcomputer

New Member
Nov 1, 2024
3
0
1
48
How did you fix, 1) I just tried make install mod_pgsql, got the same error as you.

root@PBX:/usr/src/freeswitch-1.10.12/src/mod/databases/mod_pgsql# make install mod_pgsql
CC mod_pgsql_la-mod_pgsql.lo
mod_pgsql.c: In function ‘pgsql_next_result_timed’:
mod_pgsql.c:765:17: error: enumeration value ‘PGRES_TUPLES_CHUNK’ not handled in switch [-Werror=switch]
765 | switch (res->status) {
| ^~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:731: mod_pgsql_la-mod_pgsql.lo] Error 1

2) I do have line if [ $(echo "$switch_version" | tr -d '.') -gt 1100 ]; then

I am not noticing a syntax error unless I am missing something. Line seems the same both in debian and ubuntu files.
If I try to manually make freeswitch, I get same / similar error.
mod_pgsql.c: In function ‘pgsql_next_result_timed’:
mod_pgsql.c:765:17: error: enumeration value ‘PGRES_TUPLES_CHUNK’ not handled in switch [-Werror=switch]
765 | switch (res->status) {
| ^~~~~~