<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi all<br><br>I'm working with LCR and I'm trying the follow situation:<br><br>I have 5 devices that are using 3 carries. Look the LCR table below:<br><br>prefix | from_uri | grp_id | priority<br>5511&nbsp;&nbsp;&nbsp; %&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0<br>5512&nbsp;&nbsp;  %&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  2&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  0<br>5521&nbsp;&nbsp;  %&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  3&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  0<br>55&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;  %&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  1&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp; 
 0<br><br>It works fine. But I want my voip uses only the route 2 wherever I call. I tried to use 'sip:1234%' in from_uri column but didnt work how I want. If I insert a new line:<br><br>55&nbsp;&nbsp;  &nbsp;&nbsp;  sip:1234%&nbsp;&nbsp;  2&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  0<br><br>and call to '5511XXXXXX', the select route will be '1' and not '2'. It will work if I change to:<br><br>5511 &nbsp;&nbsp;  sip:1234%&nbsp;&nbsp;  2&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  0<br><br>This way works fine. But I dont want to duplicate all the lines in the table when I want to priority a route to a specific user. <br><br>The 'preferred' route is that have a longest prefix in the table. The module LCR tells:<br><br>"Matching gateways are then ordered for forwarding purpose <br>(1) according to longest user part match, <br>(2) according to gateway's priority<br>(3) randomly"<br><br>There are a way to force Openser to select the line that has the longest 'from_uri'?
 <br><br>Thanks a lot.<br><br>Bruno Machado<br></div></div><br>
                <hr size=1> 
Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o <a href="http://us.rd.yahoo.com/mail/br/tagline/answers/*http://br.answers.yahoo.com/">Yahoo! Respostas</a>!</body></html>