Sasmita,

The dr_rules table contains the routing rules - please carefully read the module docs, as this is explained over there.

A routing rule refers to gateway directly, or via a carrier. Using carriers is optional.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 23.09.2015 16:36, Sasmita Panda wrote:
HI Andrei ,

Thank you for your reply . what ever you said , that is only for the gateway . What about the route table of lcr module ? I think I need to add the route in dr_carrier table . But in which format ? If I am wrong then what about the dr_carrier and dr_group table do in dynamic routing module ?

Can you please give me a brief knowledge?

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Wed, Sep 23, 2015 at 1:54 PM, Bogdan-Andrei Iancu <[email protected] <mailto:[email protected]>> wrote:

    Hi Sasmita,

    Build a routing group (1, for example as this):

    Put in  dr_rules:
    
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+
    | ruleid | groupid | prefix | timerec | priority | routeid |
    gwlist | attrs | description |
    
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+
| 100 | 1 | | | 0 | NULL |asterisk| NULL | |
    
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+

    and it dr_gateways:
    
+----+--------+------+----------------+-------+------------+-------+------------+-------+--------------------+-------------+
    | id |  gwid  | type | address        | strip | pri_prefix | attrs
    | probe_mode | state | socket             | description |
    
+----+--------+------+----------------+-------+------------+-------+------------+-------+--------------------+-------------+
    |  1 |asterisk|    0 | 127.0.0.1:5080 <http://127.0.0.1:5080>
    |     0 | NULL       | NULL  |          0 |     0 |
    NULL               |             |
    
+----+--------+------+----------------+-------+------------+-------+------------+-------+--------------------+-------------+


    Best regards,

    Bogdan-Andrei Iancu
    OpenSIPS Founder and Developer
    http://www.opensips-solutions.com

    On 22.09.2015 15:16, Sasmita Panda wrote:
    Hi All ,

        I am trying to upgrade opensips-1.6 to opensips-1.11 .
    As everybody know opensips-1.11 uses dynamic routing in place of
    lcr module .

        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 .

        In lcr tables my schema is looking like bellow  :

    lcr routes
    +----+--------+-----------------------------+--------+----------+
    | id | prefix | from_uri  | grp_id | priority |
    +----+--------+-----------------------------+--------+----------+
    |  4 |        | .*@xyz.xxx.com.*        |    5 |        0 |

    lcr gateways
    
+---------------+----------------+------+------------+-----------+--------+-------+------+-------+
    | gw_name       | ip_addr        | port | uri_scheme | transport
    | grp_id | strip | tag  | flags |
    
+---------------+----------------+------+------------+-----------+--------+-------+------+-------+
    | asterisk      | 127.1.1.200    | 5080 |        1 |         1 |
         5 |     0 |      |     0 |

    I have simply add a route and for the same grp_id I have added a
    gateway .

        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 .

    Can anyone pleas help me , how to proceed ??


    */Thanks & Regards/*
    /Sasmita Panda/
    /Network Testing and Software Engineer/
    /3CLogic , ph:07827611765/


    _______________________________________________
    Users mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to