"invalid profile : [external]" issue after reboot. What is a permanent fix?

Status
Not open for further replies.

Zobiniki

New Member
Jul 17, 2023
5
0
1
36
Every time the machine is rebooted, the external profile stops working.

Logs show the following :
[ERR] sofia.c:3296 Error Creating SIP UA for profile: internal (sip:mod_sofia@x.x.x.x:5060;maddr=x.x.x.x;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)
[ERR] sofia.c:3296 Error Creating SIP UA for profile: external (sip:mod_sofia@x.x.x.x:5080;maddr=x.x.x.x;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)

A temporary fix is to log into fs_cli
Then reloading mod_sofia by doing "reload mod_sofia".

I assume that the issue is something not being quite ready in regards to the network when the machine boots and that is despite "After=network.target network-online.target local-fs.target" being set in freeSWITCH's systemd service file (Find yours by doing "sudo find / -name freeswitch.service").

This install is running on a Raspberry Pi.

What would a permanent fix for this be?

Thank you for your help.
 
Last edited:
The issue is caused by the Pi not getting assigned an IP quickly enough I think.

Edit 1 :
There was another issue related to this which was that without getting an outright error, the gateway would not connect and the option to start the gateway was absent.

I did 2 things to attempt to fix this.

The first thing I did was to go into raspi-config > System Options > Enable Network at Boot
This seems to have alleviated the problem a little, as the PBX would start properly about 30% of the time instead of 0%.

syslog was also getting spammed with the message "php[818]: Unable to connect to event socket" which prompted me to investigate. I was clued in by https://www.pbxforums.com/threads/connection-to-event-socket-failed.4153/
Upon being updated, Raspberry Pi OS Lite 32 bit automatically gets upgraded to 64 bit on a Raspberry 4. So the other thing I did was edit the /boot/config file to add "arm_64bit=0" to force it back to 32 bit.

The issue still isn't fixed.
 
Last edited:
Status
Not open for further replies.