<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>> Date: Thu, 7 Feb 2008 06:11:42 -0500<br>> From: osas@voipembedded.com<br>> To: go4calls@hotmail.com<br>> Subject: Re: [OpenSER-Users] Local Call<br>> CC: users@lists.openser.org<br>> <br>> Use curly brackets after each "else if" line.<br>> <br>> <br>> Regards,<br>> Ovidiu Sas<br>> <br>> On Feb 7, 2008 5:12 AM, VoIP Forums www. Go4Calls. com<br>> <go4calls@hotmail.com> wrote:<br>> ><br>> > Hi friends,<br>> ><br>> > Could you please help me how i can make dialplan to call local each<br>> > 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<br>> > using 01 prefix + subscriber ID the call not going and the message comming<br>> > 404 Not Found.<br>> ><br>> ><br>> ><br>> > Regards,<br>> > www.Go4Calls.Com<br>> > VoIP Forums<br>> > ________________________________<br>> > Express yourself instantly with MSN Messenger! MSN Messenger<br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@lists.openser.org<br>> > http://lists.openser.org/cgi-bin/mailman/listinfo/users<br>> ><br>> ><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>