<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi friends,<br><br>Could you please help me how i can make dialplan to call local each subscriber using some special prefix?<br><br>I tried the following but it did not work.<br><br>if (uri=~"sip:00[1-9][0-9]+@.*") {<br> strip(2);<br> rewritehostport("pstncarrier:5060");<br> route(1);<br> exit;<br>}else if (uri=~"sip:[1-9][0-9]+@.*")<br> rewritehostport("pstncarrier:5060");<br>
route(1);<br>
exit;<br><br>}else if (uri=~"sip:01[1-9][0-9]+@.*")<br> strip(2);<br> if (!lookup("location")) {<br> sl_send_reply("404", "Not Found");<br> exit;<br> };<br>
route(1);<br>
exit;<br><br> };<br><br>The first two above condition is working fine but when we trying to call using 01 prefix + subscriber ID the call not going and the message comming 404 Not Found.<br><br><br><br>Regards, <br>www.Go4Calls.Com <br>VoIP Forums <br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>