FreeSWITCH中文网,电话机器人开发网 ,微信订阅号:



tags:FreeSWITCH同一个帐号多点注册和最大注册数 振铃 创建时间:2016-04-27 20:49:27


Multiple Registrations Call one extension and ring several phones You must enable multiple registrations in conf/sip_profiles/internal-ipv6.xml and conf/sip_profiles/internal.xml (enabling the setting in conf/autoload_configs/switch.conf.xml had no effect). Valid values for this parameter are "contact", "true", "false". value="true" is the most common use. Setting this value to "contact" will remove the old registration based on sip_user, sip_host and contact field as opposed to the call_id. Ringing All Registered Extensions In your dialplan (conf/dialplan/default.xml) you can now use the sofia_contact lookup function to return all registered sip profiles; for example in the default.xml in sections and replace:

< extension name="extension-intercom">

< condition field="destination_number" expression="^8(10[01][0-9])$">

  < action application="set" data="dialed_extension=$1"/>

  < action application="export" data="sip_auto_answer=true"/>

  <!-- needed for multiple-registrations=true and multi extension ringing see:$
  <!-- <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> -->

  < action application="bridge" data="${sofia_contact(${dialed_extension})}"/>

< /condition>

< /extension>

With the follwing:

< action application="bridge" data="${sofia_contact(${dialed_extension})}"/>

sofia sip 配置 internal.xml中

 < param name="multiple-registrations" value="true"/>

< param name="max-registrations-per-extension" value="1"/>

上海老李,QQ:1354608370,FreeSWITCH QQ群: