FreeSWITCH及VOIP,Openser,电话机器人等产品中文技术资讯、交流、沟通、培训、咨询、服务一体化网络。QQ群:293697898
原文:https://wiki.freeswitch.org/wiki/Sofia-SIP
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
< 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: http://wiki.freeswitch.org/wi$
<!-- <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"/>