<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 | 127.0.0.1:5080 | 0 | NULL | NULL
| 0 | 0 | NULL | |<br>
+----+--------+------+----------------+-------+------------+-------+------------+-------+--------------------+-------------+<br>
<br>
<br>
Best 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 22.09.2015 15:16, Sasmita Panda
wrote:<br>
</div>
<blockquote
cite="mid:CALf-Q45MRFYGZa9CPm=oP3=G+VUZL6ys=eOGf=BUo4LGJ=oGiw@mail.gmail.com"
type="cite">
<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 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>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>