[Freeswitch-users] New system: sofia is on wrong IP address

Steven Schoch schoch+freeswitch.org at xwin32.com
Tue Feb 23 21:01:03 UTC 2021


The last time I played with FreeSWITCH was 10 years ago, and now I'm
helping a local nonprofit retire their obsolete analog phone system.

I have a pbx system with 2 network cards: One dedicated to the phones,
plugs into a PoE switch. On that network, the pbx has a DHCP server for the
phones, as well as an FTP server for the Polycom SoundPoint IP 320 phones.
The IP address on that network is 192.168.3.2.

Since I'm setting up the system here at home, the other network card is on
my Xfinity LAN, with an IP address of 10.0.0.167 (via DHCP from the Comcast
modem).

I understand the "domain" should be fairly fixed, so I set that to my
"phone" network:

  <X-PRE-PROCESS cmd="set" data="phone_ip_v4=192.168.3.2"/>

  <X-PRE-PROCESS cmd="set" data="domain=$${phone_ip_v4}"/>

  <X-PRE-PROCESS cmd="set" data="domain_name=eastwest"/>


I defined an sofia profile named "phone" with these lines:

    <param name="rtp-ip" value="$${phone_ip_v4}"/>

    <param name="sip-ip" value="$${phone_ip_v4}"/>

I also used the default "internal" profile, in case an SIP device is hooked
up to the main LAN, but that's not important.
However, a "sofia status" shows this:

                     Name   Type                                       Data
State

=================================================================================================

            external-ipv6 profile   sip:mod_sofia@
[2601:647:4802:9220:c816:30ae:6a9a:d191]:5080 RUNNING (0)

              192.168.3.2   alias                                   internal
ALIASED

                 external profile
sip:mod_sofia at 67.164.101.201:5080 RUNNING
(0)

        external::sip2sip gateway                 sip:eastwest at sip2sip.info
REGED

      external::flowroute gateway
sip:6509889800 at us-west-or.sip-flowroute.com NOREG

                    phone profile
sip:mod_sofia at 10.0.0.167:5060 RUNNING
(0)

            internal-ipv6 profile   sip:mod_sofia@
[2601:647:4802:9220:c816:30ae:6a9a:d191]:5060 RUNNING (0)

                 internal profile
sip:mod_sofia at 67.164.101.201:5060 RUNNING
(0)

=================================================================================================

5 profiles 1 alias

Why does the "phone" profile have "sip:mod_sofia at 10.0.0.167:5060".
Shouldn't that have the 192.168.3.2 address? And why isn't my phone
registering?

-- 
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210223/85b2e09a/attachment.html>


More information about the FreeSWITCH-users mailing list