add action=masquerade chain=srcnat out-interface=RTK
add action=masquerade chain=srcnat out-interface=ether2
add action=dst-nat chain=dstnat dst-port=80 in-interface=ether3 protocol=tcp to-addresses=192.168.10.245 to-ports=80
CALLERID(num) = 79001234569
SELECT COUNT(*) FROM blacklist WHERE ${CALLERID(num)} LIKE CONCAT(callerid, '%') AND blockenabled = 1
SELECT COUNT(*) FROM blacklist WHERE ${CALLERID(num):0:6} LIKE CONCAT(callerid, '%') AND blockenabled = 1
[temp-dest]
exten => s,1,Dial(SIP/8086&SIP/8085&SIP/8080&SIP/8007&SIP/8083&SIP/8088,20,tr)
same => 2,Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,30,tr)
same => 3,Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,20,tr)
same => 4,Goto(temp-dest,s,1)