<P>Hi All,<BR><BR>I defined something like this on my config, to block
pstn calls to certain countries. Unfortunately it doesn't
work.<BR><BR> if
((uri=~"^(sip:)?00(871-874|881|246)[0-9]*@([a-z]+\.)?mydomain\.com") ||
(uri=~"^(sip:)?00(871-874|881|246)[0-9]*@10\.0\.2\.200"))
{<BR> if
(isflagset(8)) {xlog("L_INFO", "Call to those locations are not
allowed\n");};<BR>
sl_send_reply("404", "Not
Found");<BR>
break;</P>
<P> } else if
((uri=~"^(sip:)?00[0-9]*@([a-z]+\.)?mydomain\.com") ||
(uri=~"^(sip:)?00[0-9]*@10\.0\.2\.200")) {<BR> if
(isflagset(8)) {xlog("L_INFO", "Call to anywhere in the
World\n");};<BR>
# Strip first to digits
(00)<BR>
strip(2);<BR>
# Prefix with
12345#<BR>
prefix("12345#");<BR>
rewritehostport("123.123.123.123:5060");<BR>
# Remove
credentials<BR>
consume_credentials();<BR>
# Route
call<BR>
t_relay_to_udp("123.123.123.123",
"5060");<BR>
break;<BR>
}<BR> } else
{<BR> .....<BR> .....
<BR> .....<BR> .....<BR><BR>can anyone tell my error
here? thank you in advance<BR><BR>regards,<BR>nhadie<BR><BR></P>