Код: Выделить всё
<include>
<user id="2020">
<params>
<param name="password" value="123456789"/>
<param name="auth-acl" value="home"/>
</params>
<variables>
<variable name="accountcode" value="2020"/>
<variable name="user_context" value="public"/>
<variable name="effective_caller_id_name" value="2020"/>
<variable name="effective_caller_id_number" value="2020"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
</variables>
</user>
</include>
Код: Выделить всё
<extension name="0101out">
<condition field="destination_number" expression="^(0101\d+)$">
<action application="set" data="effective_caller_id_name=8889"/>
<action application="bridge" data="{sip_from_uri=sip:${destination_number}@IPADDRESS}sofia/gateway/asterisk-ppp0/$1"/>
</condition>
</extension>