<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>&gt; Date: Tue, 13 May 2008 15:55:10 +0200<br>&gt; From: ibc@in.ilimit.es<br>&gt; To: users@lists.openser.org<br>&gt; Subject: Re: [OpenSER-Users] Routing Logic<br>&gt; <br>&gt; El Tuesday 13 May 2008 15:40:25 VoIP Forums www.Go4Calls.com escribió:<br>&gt; &gt; Hi Friends,<br>&gt; &gt;<br>&gt; &gt; I have the following route plan in my openser.cfg all blocks are working<br>&gt; &gt; well instead of 800800.<br>&gt; &gt;<br>&gt; &gt; if (uri=~"sip:800800[1-9][0-9]+@.*") {<br>&gt; &gt;                     rewritehostport("officePBX-IP:5060");<br>&gt; &gt;                     route(1);<br>&gt; &gt;                     exit;<br>&gt; &gt;  } else if ($(rU{s.len})&gt;=8) {<br>&gt; &gt;                     rewritehostport("MyPSTNprovider-IP:5061");<br>&gt; &gt;                     route(1);<br>&gt; &gt;                     exit;<br>&gt; &gt;   }else{<br>&gt; &gt;<br>&gt; &gt;                 lookup("location");<br>&gt; &gt;                 route(1);<br>&gt; &gt;                 exit;<br>&gt; &gt;    };<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; When i am trying to call 800800 the error message appearing is "513 Message<br>&gt; &gt; too big"<br>&gt; <br>&gt; It's completely logical. You are not matching 800800 in the above "if" except <br>&gt; in "else".<br>&gt; <br>&gt; The first "if" matches uri's with username:<br>&gt;   800800[1-9][0-9]+<br>&gt; This is: 800800 + a digit + a (digit pr more)<br>&gt; So 800800 is not matched there.<br>&gt; <br>&gt; Finally it's taken by "else" clausule in which you do a "lookup" (that will <br>&gt; not success so the URI will remain being "800800@..." and you do a "route(1)" <br>&gt; (probably a t_relay()) so it will leave the host and by DNS return to it <br>&gt; again and again =&gt;  513 "Message too big" since each loop a "Record-Route" <br>&gt; and "Via" header is added and the size increased.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Iñaki Baz Castillo<br>&gt; ibc@in.ilimit.es<br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; Users@lists.openser.org<br>&gt; 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>