-1

我将 Linksys SPA3102 与我的 freeswitch 覆盆子 pi 一起使用。PSTN 线路使用端口 5061。我为 PSTN 线路创建了一个 ID 为“23”的用户,但是我相信我需要让该用户使用端口 5061。有没有办法为特定用户设置端口?我尝试将参数中的“sip-port”设置为 5061,但没有效果。我可以在 SPA3102 中将端口更改为 5060,这允许用户注册,但随后我无法使用它在 PSTN 线路上拨出。

这是我定义用户的方式:

<include>
  <user id="23">
    <params>
      <param name="password" value="$${default_password}"/>
      <param name="vm-password" value="23"/>
      <param name="sip-port" value="5061"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="23"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Phone Line"/>
      <variable name="effective_caller_id_number" value="23"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="techsupport"/>
    </variables>
  </user>
</include>
4

1 回答 1

2

您不能将端口分配给用户,只能分配给 SIP 配置文件。在这种情况下,您似乎真正想要的是使用External Profile。所以我建议你:

  • 配置您的 Linksys 帐户以使用默认的 FreeSWITCH 外部配置文件 SIP 端口 (5080);或者
  • 使您的 FreeSWITCH 外部配置文件使用 5061 端口。为此,您需要在 vars.xml 中将 external_sip_port 的值更改为 5061,并在 fs_cli 中执行“sofia profile external restart reloadxml”。
于 2013-06-03T00:44:55.733 回答