[OpenSER-Users] Routing Logic
Edson
4lists at gmail.com
Tue May 13 15:52:19 CEST 2008
Hi...
You have a REGEX problem.... Your numbers are from 80080010 to 80080099 as
You defined
to make 800800 be recognized, please change the expression to
something like:
sip:800800([1-9][0-9]+)?@.*
You can test it on command line with: echo "sip:800800@" | grep -E
"sip\:800800([1-9][0-9]+)?@.*"
Edson.
_____
From: users-bounces at lists.openser.org
[mailto:users-bounces at lists.openser.org] On Behalf Of VoIP Forums
www.Go4Calls.com
Sent: terça-feira, 13 de maio de 2008 10:40
To: users at lists.openser.org
Subject: [OpenSER-Users] Routing Logic
Hi Friends,
I have the following route plan in my openser.cfg all blocks are working
well instead of 800800.
if (uri=~"sip:800800[1-9][0-9]+ at .*") {
rewritehostport("officePBX-IP:5060");
route(1);
exit;
} else if ($(rU{s.len})>=8) {
rewritehostport("MyPSTNprovider-IP:5061");
route(1);
exit;
}else{
lookup("location");
route(1);
exit;
};
When i am trying to call 800800 the error message appearing is "513 Message
too big" 800800 is routed to the asterisk for our internal office's
extensions.
Pls guide us how i can solve this issue.
Regards,
www.Go4Calls.Com
VoIP Forums
_____
Invite your mail contacts to join your friends list with Windows Live
Spaces. It's easy! Try it!
<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx
&mkt=en-us>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080513/b45101bb/attachment.htm>
More information about the sr-users
mailing list