在 Google 云计算上设置 freeswitch 服务器

Setting up freeswitch server on Google cloud compute

我正在尝试在 google 云计算 (ubuntu 14.04) 上设置 freeswitch 服务器,尽管它在本地对我来说工作正常,但当我在 [= 上启动 freeswitch 服务器时似乎出现以下错误15=]云compute.Can有人解释一下吗?

2015-06-11 05:40:32.001508 [ERR] sofia.c:2853 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]
:5060;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)
2015-06-11 05:40:32.001508 [ERR] sofia.c:2853 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]
:5080;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)
2015-06-11 05:40:37.001491 [ERR] sofia.c:2853 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]
:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2015-06-11 05:40:37.001491 [ERR] sofia.c:2863 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]
:5060;transport=udp,tcp)
The likely causes for this are:
1) Another application is already listening on the specified address.
2) The IP the profile is attempting to bind to is not local to this system.
2015-06-11 05:40:37.001491 [ERR] sofia.c:2853 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]
:5080;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2015-06-11 05:40:37.001491 [ERR] sofia.c:2863 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]
:5080;transport=udp,tcp)
The likely causes for this are:
1) Another application is already listening on the specified address.
2) The IP the profile is attempting to bind to is not local to this system.

我自己在以下位置找到了答案 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

所以这个问题与ipv6有关。由于 google 没有提供 ipv6,我不得不在 freeswitch

中禁用 ipv6

在conf/sip_profiles目录中你会找到关于ipv6的文件,

    abcd@instance-1:/usr/local/freeswitch/conf/sip_profiles$ ls
    external  external-ipv6  external-ipv6.xml  external.xml  internal-ipv6.xml  internal.xml

为了在 freeswitch 中禁用 ipv6,我们需要重命名为 external-ipv6.xml.inactive 或者我们可以 move/remove 这些文件。

但请确保您只 rename/remove files/folders 关于 ipv6,所以我在这里删除了文件 external-ipv6 , internal-ipv6.xml, external-ipv6.xml

然后重启Freeswitch服务器

编辑:

之前:

# ls
external  external-ipv6  external-ipv6.xml.inactive  external.xml  internal-ipv6.xml  internal.xml

之后:

# ls
external  external-ipv6.inactive  external-ipv6.xml.inactive  external.xml  internal-ipv6.xml.inactive  internal.xml