<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
I have added curly brackets after each else if but still local call is not working.<br><br><br><br>Regards, <br>www.Go4Calls.Com <br>VoIP Forums <br><br>&gt; Date: Thu, 7 Feb 2008 06:11:42 -0500<br>&gt; From: osas@voipembedded.com<br>&gt; To: go4calls@hotmail.com<br>&gt; Subject: Re: [OpenSER-Users] Local Call<br>&gt; CC: users@lists.openser.org<br>&gt; <br>&gt; Use curly brackets after each "else if" line.<br>&gt; <br>&gt; <br>&gt; Regards,<br>&gt; Ovidiu Sas<br>&gt; <br>&gt; On Feb 7, 2008 5:12 AM, VoIP Forums www. Go4Calls. com<br>&gt; &lt;go4calls@hotmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;  Hi friends,<br>&gt; &gt;<br>&gt; &gt; Could you please help me how i can make dialplan to call local each<br>&gt; &gt; subscriber using some special prefix?<br>&gt; &gt;<br>&gt; &gt; I tried the following but it did not work.<br>&gt; &gt;<br>&gt; &gt; if (uri=~"sip:00[1-9][0-9]+@.*") {<br>&gt; &gt;                 strip(2);<br>&gt; &gt;                 rewritehostport("pstncarrier:5060");<br>&gt; &gt;                 route(1);<br>&gt; &gt;                 exit;<br>&gt; &gt; }else if (uri=~"sip:[1-9][0-9]+@.*")<br>&gt; &gt;                rewritehostport("pstncarrier:5060");<br>&gt; &gt;                  route(1);<br>&gt; &gt;                  exit;<br>&gt; &gt;<br>&gt; &gt; }else if (uri=~"sip:01[1-9][0-9]+@.*")<br>&gt; &gt;              strip(2);<br>&gt; &gt;                  if (!lookup("location")) {<br>&gt; &gt;                         sl_send_reply("404", "Not Found");<br>&gt; &gt;                         exit;<br>&gt; &gt;                         };<br>&gt; &gt;                  route(1);<br>&gt; &gt;                  exit;<br>&gt; &gt;<br>&gt; &gt;  };<br>&gt; &gt;<br>&gt; &gt; The first two above condition is working fine but when we trying to call<br>&gt; &gt; using 01 prefix + subscriber ID the call not going and the message comming<br>&gt; &gt; 404 Not Found.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt; www.Go4Calls.Com<br>&gt; &gt; VoIP Forums<br>&gt; &gt; ________________________________<br>&gt; &gt; Express yourself instantly with MSN Messenger! MSN Messenger<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; Users@lists.openser.org<br>&gt; &gt; http://lists.openser.org/cgi-bin/mailman/listinfo/users<br>&gt; &gt;<br>&gt; &gt;<br><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>