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]+@.*") { 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! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.a...
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@lists.openser.org [mailto:users-bounces@lists.openser.org] On Behalf Of VoIP Forums www.Go4Calls.com Sent: terça-feira, 13 de maio de 2008 10:40 To: users@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]+@.*") { 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
El Tuesday 13 May 2008 15:40:25 VoIP Forums www.Go4Calls.com escribió:
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]+@.*") { 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"
It's completely logical. You are not matching 800800 in the above "if" except in "else".
The first "if" matches uri's with username: 800800[1-9][0-9]+ This is: 800800 + a digit + a (digit pr more) So 800800 is not matched there.
Finally it's taken by "else" clausule in which you do a "lookup" (that will not success so the URI will remain being "800800@..." and you do a "route(1)" (probably a t_relay()) so it will leave the host and by DNS return to it again and again => 513 "Message too big" since each loop a "Record-Route" and "Via" header is added and the size increased.
Hi all,
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.
Regards, www.Go4Calls.Com VoIP Forums
Date: Tue, 13 May 2008 15:55:10 +0200 From: ibc@in.ilimit.es To: users@lists.openser.org Subject: Re: [OpenSER-Users] Routing Logic
El Tuesday 13 May 2008 15:40:25 VoIP Forums www.Go4Calls.com escribió:
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]+@.*") { 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"
It's completely logical. You are not matching 800800 in the above "if" except in "else".
The first "if" matches uri's with username: 800800[1-9][0-9]+ This is: 800800 + a digit + a (digit pr more) So 800800 is not matched there.
Finally it's taken by "else" clausule in which you do a "lookup" (that will not success so the URI will remain being "800800@..." and you do a "route(1)" (probably a t_relay()) so it will leave the host and by DNS return to it again and again => 513 "Message too big" since each loop a "Record-Route" and "Via" header is added and the size increased.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
_________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QB...