Centos – Cannot connect softphone as a FreeSwitch Extension

centosfreeswitchsip

Having successfully configured and maintained few Asterisk based installations, I have now been provided a task to configure FreeSwitch SIP server.

ISO downloaded from

http://wiki.fusionpbx.com/index.php?title=CentOS_ISO

Configuration

  • CentOS 5.4 Final
  • FreeSwitch
  • FusionPBX 1.0

Steps

  1. Installed the FusionPBX iso.
  2. Firewall and network configuration setup. Server IP: 192.168.0.100
  3. Logged in to FusionPBX web frontend from another box. (http://192.168.0.100)
  4. Created an extension 6000 with password 6000.
  5. Applied the changes/restarted.

I have two softwphone clients,

  1. 3cx
  2. X-Lite 4

Now when I try and register the softphone to FreePBX, SIP error 408 is shown.

Please help.

Best Answer

Finally found the cause of the issue. A bug in FreeSwitch.

SIP Profiles

There are three sip profiles under the normal installation:

  • external.xml
  • internal.xml
  • internal-ipv6.xml

For this particular case, internal.xml was the culprit but I am pretty sure that the problem will be the same for the other files, as well.

Why Extensions are Not Registering?

There are three sections in the internal.xml file, namely

...
<param name="rtp-ip" value="$${local_ip_v4}"/>
...
<param name="sip-ip" value="$${local_ip_v4}"/>
...
<param name="presence-hosts" value="$${domain},$${local_ip_v4}"/>
...

looking at which, we find two aliases:

  • $${domain}
  • $${local_ip_v4}

FreeSwitch parsed both values as "127.0.0.1".

Solution

I was able to solve the problem by not letting FreeSwitch decide the values for me.

...
<param name="sip-ip" value="192.168.0.100"/>
...
<param name="presence-hosts" value="192.168.0.100"/>
...
Related Topic