You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

FusionPBX:如何配置包含外部手机号码的振铃组?

Hey there, let's work through this ring group problem you're facing. The root issue here is that FreeSWITCH treats your external mobile number like it's a local extension (which it isn't), so it throws that "user_exists" error and can't route the call properly (hence the cause 27 error). Here are the most reliable ways to get simultaneous ringing for both your extension and external number up and running:

方法1:直接在振铃组目标中指定网关路由

This is the most straightforward fix, since you need to route the external call through your outbound SIP gateway (the one that connects your FreeSWITCH instance to the public phone network).

  • First, confirm you have a working outbound SIP gateway configured (e.g., from your telecom provider). Let's say your gateway is named carrier_gateway.
  • Edit your ring group configuration file (usually located at conf/directory/default/ring_group.xml or similar). Update the target parameter to include both your extension and the full gateway-routed external number:
    <param name="target" value="1000,sofia/gateway/carrier_gateway/13800138000"/>
    
    Here, 1000 is your internal extension, and sofia/gateway/carrier_gateway/13800138000 tells FreeSWITCH to route the call to the mobile number 13800138000 via your carrier_gateway.
  • Save the file and reload your FreeSWITCH configuration to apply changes:
    fs_cli -x "reloadxml"
    

方法2:用拨号计划(Dialplan)实现更灵活的控制

If you prefer a more modular setup (or need to add extra logic like time-based routing later), handle the simultaneous ringing in a custom dialplan extension instead:

  • Open your dialplan file (e.g., conf/dialplan/default/extensions.conf) and add a new extension for your ring group:
    <extension name="ring_group_with_external">
      <condition field="destination_number" expression="^1234$"> <!-- Replace 1234 with your ring group's phone number -->
        <action application="bridge" data="user/1000,sofia/gateway/carrier_gateway/13800138000"/>
        <action application="hangup"/>
      </condition>
    </extension>
    
  • You can either point your existing ring group to this 1234 number, or use this dialplan extension directly as your ring group.
  • Don't forget to reload the configuration with fs_cli -x "reloadxml" after making changes.

关键检查点

  • Double-check your SIP gateway configuration: Ensure it's allowed to make outbound calls, and verify the number format (some gateways require country codes, area codes, or stripping leading + signs).
  • The DESTINATION_OUT_OF_ORDER (cause 27) error almost always means FreeSWITCH can't find a valid route to the external number—specifying the gateway explicitly fixes this by telling it exactly where to send the call.
  • For troubleshooting, enable verbose logging in the FreeSWITCH CLI with fs_cli -x "loglevel 7"—this will show you the full call flow and help spot any routing issues.

内容的提问来源于stack exchange,提问作者Michael Schaefers

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 06:53:17