<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi all,<br><br>Thank you very much for the explainion it is working well now. and thank you very much Edson to providing me the right code and it worked exact.<br><br>Regards, <br>www.Go4Calls.Com <br>VoIP Forums <br><br>> Date: Tue, 13 May 2008 15:55:10 +0200<br>> From: ibc@in.ilimit.es<br>> To: users@lists.openser.org<br>> Subject: Re: [OpenSER-Users] Routing Logic<br>> <br>> El Tuesday 13 May 2008 15:40:25 VoIP Forums www.Go4Calls.com escribió:<br>> > Hi Friends,<br>> ><br>> > I have the following route plan in my openser.cfg all blocks are working<br>> > well instead of 800800.<br>> ><br>> > if (uri=~"sip:800800[1-9][0-9]+@.*") {<br>> > rewritehostport("officePBX-IP:5060");<br>> > route(1);<br>> > exit;<br>> > } else if ($(rU{s.len})>=8) {<br>> > rewritehostport("MyPSTNprovider-IP:5061");<br>> > route(1);<br>> > exit;<br>> > }else{<br>> ><br>> > lookup("location");<br>> > route(1);<br>> > exit;<br>> > };<br>> ><br>> ><br>> > When i am trying to call 800800 the error message appearing is "513 Message<br>> > too big"<br>> <br>> It's completely logical. You are not matching 800800 in the above "if" except <br>> in "else".<br>> <br>> The first "if" matches uri's with username:<br>> 800800[1-9][0-9]+<br>> This is: 800800 + a digit + a (digit pr more)<br>> So 800800 is not matched there.<br>> <br>> Finally it's taken by "else" clausule in which you do a "lookup" (that will <br>> not success so the URI will remain being "800800@..." and you do a "route(1)" <br>> (probably a t_relay()) so it will leave the host and by DNS return to it <br>> again and again => 513 "Message too big" since each loop a "Record-Route" <br>> and "Via" header is added and the size increased.<br>> <br>> <br>> <br>> <br>> -- <br>> Iñaki Baz Castillo<br>> ibc@in.ilimit.es<br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@lists.openser.org<br>> http://lists.openser.org/cgi-bin/mailman/listinfo/users<br><br /><hr />Discover the new Windows Vista <a href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>