[general]
...
nat=yes
permit=192.168.0.1/24
<variables>
...
<variable name="provider" value="sipnet"/>
...
</variables>
<variables>
...
<variable name="provider" value="multifon"/>
...
</variables>
<extension name="OUT" continue="true">
<condition field="destination_number" expression="^\d{9,15}$">
<action application="bridge" data="sofia/gateway/${provider}/${destination_number}"/>
</condition>
</extension>
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -j DROP
!
translation-rule 0
rule 0 00...........F 8%04%05%06%07%08%09%10%11%12%13
!
translation-rule 1
rule 0 01...........F 8%04%05%06%07%08%09%10%11%12%13
!
en
conf t
dial-peer voice 0 pots
destination-pattern 007..........F
huntstop
dial-peer voice 1 pots
destination-pattern 017..........F
huntstop
no preference