<div dir="ltr"><div><div><div><div><div><div>First thing to remember that lcr_id field is the one to link all three tables together. Let's say that you want to create a lcr to route international call starting with 011:<br>
</div>1) Create a row in lcr_gw table with id = 4, lcr_id = 3 and gateway IP etc. <br></div>2) Then create a row in lcr_rule table with id =2, lcr_id = 3 and prefix = 011<br></div>3) Then create a row in lcr_rule_target table to glue the gateway and prefix together like this: lcr_id =3, gw_id=4 (Match the id value in lcr_gw table), rule_id = 2 (Match the id in lcr_rule table)  also rest of the fields like priority etc.<br>
</div></div><br>Hope this help.<br></div><br>Gary<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 28, 2013 at 5:02 PM, Geoffrey Mina <span dir="ltr"><<a href="mailto:geoffreymina@gmail.com" target="_blank">geoffreymina@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Greetings,<br>I am migrating some 1.5 servers to 4.0 and I have some questions about how the LCR module works now. <br>
<br>I am familiar with the concept of the gw table and the lcr table.  This was pretty straight forward.  In the new version it looks like we have:<br>
<br></div>LCR Gateway List<br></div>LCR Rule List<br></div>LCR Target List<br><br></div><div>I read through the module documentation and it doesn't really speak to what the new architecture is intended to accomplish.  Anyone have a quick overview they would like to share which would help me understand the intent of the data structure?<br>

<br>Thanks,<br>Geoff<br></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>