sofia profile <profile_name> killgw <gateway_name>
sofia profile <profile_name> rescan
sofia profile <profile_name> rescan
<action application="set" data="effective_caller_id_number=${user_data($1@${domain_number} var outbound_caller_id_number)}"/>
<action application="set" data="effective_caller_id_number=${user_data($1@${domain_name} var outbound_caller_id_number)}"/>
<action application="bridge" data="sofia/gateway/gw-ross/$1"/>
<condition field="destination_number" expression="^\+?[78](\d{10})">
<action application="bridge" data="sofia/gateway/to_quickline/7$1"/>
</condition>
На каждого агента запрашивает полный конфиг
<condition field="destination_number" expression="^(\w+)$">
<param name="enable-timer" value="false"/>
<include>
<gateway name="23*****">
<param name="username" value="23*****"/>
<param name="realm" value="voip.noutek.com"/>
<param name="from-user" value="23*****"/>
<param name="from-domain" value="voip.noutek.com"/>
<param name="password" value="123*******"/>
<param name="extension" value="23*****"/>
<param name="proxy" value="193.106.215.230"/>
<param name="register-proxy" value="193.106.215.230"/>
<param name="outbound-proxy" value="193.106.215.230"/>
<param name="expire-seconds" value="170"/>
<param name="register" value="true"/>
<param name="register-transport" value="udp"/>
<param name="retry-seconds" value="94"/>
<param name="caller-id-in-from" value="false"/>
<param name="extension-in-contact" value="true"/>
</gateway>
</include>
<param name="apply-nat-acl" value="rfc1918"/>
<param name="nat-options-ping" value="true"/>
<param name="aggressive-nat-detection" value="true"/>
<param name="NDLB-force-rport" value="true"/>
<param name="apply-candidate-acl" value="ipv4"/>
<list name="ipv4" default="deny">
<node type="allow" cidr="0.0.0.0/0"/>
</list>
<param name="rtcp-audio-interval-msec" value="5000"/>
sofia profile external rescan
sofia profile external killgw название_шлюза
sofia profile external rescan