drouting in ver1.6

gotalk
2009-07-29
2013-05-09
  • gotalk
    gotalk
    2009-07-29

    I have opensips 1.5 installed with prefix=/ and version 1.6<dev> installed from the svn head with prefix=/usr/local. Its on Debian lenny. I want to try out the new codec manipulation functions. I can start ver 1.6 OK however the drouting is not establishing the routing properly. In ver 1.5 it reads the routing info fine. Here is the logs:

    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:drouting:dr_load_routing_info: 2 records found in dr_gateways
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: ERROR:core:parse_uri: uri too short: <sip:> (4)
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: ERROR:drouting:add_dst: invalid uri <sip:>
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: ERROR:drouting:dr_load_routing_info: failed to add destination id 1 -> skipping
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: ERROR:core:parse_uri: uri too short: <sip:> (4)
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: ERROR:drouting:add_dst: invalid uri <sip:>
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: ERROR:drouting:dr_load_routing_info: failed to add destination id 2 -> skipping
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:core:db_free_rows: freeing 2 rows
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:core:db_free_row: freeing row values at 0x818e7d0
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:core:db_free_row: freeing row values at 0x818e848
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:core:db_free_rows: freeing rows at 0x818e7c0
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:core:db_free_columns: freeing result columns at 0x818e758
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:core:db_free_rows: freeing 0 rows
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: DBG:core:db_free_result: freeing result set at 0x8197e38
    Jul 29 18:03:55 test1 /usr/local/sbin/opensips[21677]: WARNING:drouting:dr_load_routing_info: no valid destinations set -> ignoring the routing rules

    Any ideas what the problem might be? What is the uri being referred to? I checked to see if the tables changed between 1.5 and 1.6 but there doesn't appear to be a change.

    thanks,
    David

     
    • Hi David,

      How do you define the GWs in the DB ?

      Regards,
      Bogdan

       
    • gotalk
      gotalk
      2009-07-29

      Hi Bogdan,

      These are the tables I have populated. Seems to work in 1.5.

      mysql> select * from dr_gateways;
      +------+------+----------------+-------+------------+-------+-------------------+
      | gwid | type | address        | strip | pri_prefix | attrs | description       |
      +------+------+----------------+-------+------------+-------+-------------------+
      |    1 |   10 | 202.169.178.10 |  6000 | 61         | NULL  | ENTICE Softswitch |
      |    2 |   10 | 210.80.190.198 |     0 | NULL       | NULL  | IMG E2IA          |
      +------+------+----------------+-------+------------+-------+-------------------+
      2 rows in set (0.00 sec)

      mysql> select * from dr_rules;
      +--------+---------+--------+---------------------------+----------+---------+--------+---------------+
      | ruleid | groupid | prefix | timerec                   | priority | routeid | gwlist | description   |
      +--------+---------+--------+---------------------------+----------+---------+--------+---------------+
      |      1 | 1       | 6000   | 20090716T000000|24H|daily |        1 |       0 | 2      | Route to IMGs |
      +--------+---------+--------+---------------------------+----------+---------+--------+---------------+
      1 row in set (0.00 sec)

      mysql> select * from dr_groups;
      +----+----------+------------+---------+-------------+
      | id | username | domain     | groupid | description |
      +----+----------+------------+---------+-------------+
      |  1 | entice   | gotalk.com | 1       | ENTICE      |
      +----+----------+------------+---------+-------------+
      1 row in set (0.00 sec)

      regards,
      David

       
      • David, are you sure you are using a coherent SVN version ? I just tried the content of the dr_gateways table and it was loaded with no problem .

        Just a remark, in strip field you have  a 6000 value - the meaning is how many digits to strip ...guess 6000 digits is not realistic :)

        Regards,
        Bogdan