Код: Выделить всё
<extension name="in-number">
<condition field="destination_number" expression="^number$">
<action application="log" data="INFO Incoming call to ${destination_number}"/>
<action application="set" data="domain_name=domain.ltd" />
<action application="set" data="transfer_ringback=$${ru-ring}" />
<action application="set" data="ringback=$${ru-ring}" />
<action application="set" data="hangup_after_bridge=true"/>
<action application="bind_meta_app" data="0 b s execute_extension::att_xfer XML domain.ltd"/>
<action application="bind_meta_app" data="1 b s execute_extension::att_xfer2_mobile XML domain.ltd"/>
<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,USER_NOT_REGISTERED"/>
<action application="set" data="call_timeout=20"/>
<condition hour="8-17" break="never">
<action application="bridge" data="user/usr121@domain.ltd"/>
<action application="bridge" data="user/usr104@domain.ltd"/>
</condition>
</condition>
</extension>