<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Sasmita,<br>
<br>
The dr_rules table contains the routing rules - please carefully
read the module docs, as this is explained over there.<br>
<br>
A routing rule refers to gateway directly, or via a carrier. Using
carriers is optional.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 23.09.2015 16:36, Sasmita Panda
wrote:<br>
</div>
<blockquote
cite="mid:CALf-Q44K3SXswt37qGgPjDK1iVdy3PoE2HC7zOhpf-CPqHL-5A@mail.gmail.com"
type="cite">
<div dir="ltr">HI Andrei ,
<div><br>
</div>
<div>Â Thank you for your reply . what ever you said , that is
only for the gateway . </div>
<div>What about the route table of lcr module ? I think I need
to add the route in dr_carrier table .</div>
<div>But in which format ? If I am wrong then what about the
dr_carrier and dr_group table do in dynamic routing module ?</div>
<div><br>
</div>
<div>Can you please give me a brief knowledge? Â </div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Wed, Sep 23, 2015 at 1:54 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Sasmita,<br>
<br>
Build a routing group (1, for example as this):<br>
<br>
Put in dr_rules:<br>
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+<br>
| ruleid | groupid | prefix | timerec | priority |
routeid | gwlist | attrs | description |<br>
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+<br>
|Â Â Â 100 | 1Â Â Â Â Â Â |Â Â Â Â Â Â Â |Â Â Â Â Â Â Â Â |Â Â Â Â Â Â Â 0 |
NULLÂ Â Â |asterisk| NULLÂ |Â Â Â Â Â Â Â Â Â Â Â Â |<br>
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+<br>
<br>
and it dr_gateways:<br>
+----+--------+------+----------------+-------+------------+-------+------------+-------+--------------------+-------------+<br>
| id | gwid | type | address       | strip |
pri_prefix | attrs | probe_mode | state |
socket            | description |<br>
+----+--------+------+----------------+-------+------------+-------+------------+-------+--------------------+-------------+<br>
|Â 1 |asterisk|Â Â Â 0 | <a moz-do-not-send="true"
href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a>
|Â Â Â Â 0 | NULLÂ Â Â Â Â Â | NULLÂ |Â Â Â Â Â Â Â Â Â 0 |Â Â Â Â 0 |
NULLÂ Â Â Â Â Â Â Â Â Â Â Â Â Â |Â Â Â Â Â Â Â Â Â Â Â Â |<br>
+----+--------+------+----------------+-------+------------+-------+------------+-------+--------------------+-------------+<br>
<br>
<br>
Best regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5">
<div>On 22.09.2015 15:16, Sasmita Panda wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div>Â Â I am trying to upgrade opensips-1.6 to
opensips-1.11 . </div>
<div>As everybody know opensips-1.11 uses dynamic
routing in place of lcr module .</div>
<div><br>
</div>
<div>Â Â I have a simple scenario and , I wanted
to and a route and a gateway for the particular
route so that my call get routed to the gw .</div>
<div><br>
</div>
<div>Â Â In lcr tables my schema is looking like
bellow  :</div>
<div><br>
</div>
<div>
<div>lcr routes</div>
<div>+----+--------+-----------------------------+--------+----------+</div>
<div>| id | prefix | from_uri         Â
 | grp_id | priority |</div>
<div>+----+--------+-----------------------------+--------+----------+</div>
<div>| Â 4 | Â Â Â Â | .*@xyz.xxx.com.* Â Â Â Â | Â
  5 |     0 |</div>
<div><br>
</div>
<div>lcr gateways</div>
<div>+---------------+----------------+------+------------+-----------+--------+-------+------+-------+</div>
<div>| gw_name    | ip_addr     | port |
uri_scheme | transport | grp_id | strip | tag
 | flags |</div>
<div>+---------------+----------------+------+------------+-----------+--------+-------+------+-------+</div>
<div>| asterisk    | 127.1.1.200   | 5080 | Â
    1 |     1 |    5 |   0 |    |
  0 |</div>
</div>
<div><br>
</div>
<div>I have simply add a route and for the same
grp_id I have added a gateway .</div>
<div><br>
</div>
<div>Â Â How I will do the same thing in dynamic
routing ? I have gone through the document of
dynamic routing module . But I am not able to
understand the schema .</div>
<div><br>
</div>
<div>Can anyone pleas help me , how to proceed ??</div>
<div><br>
</div>
<div>Â <br clear="all">
<div>
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software
Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>