<HTML><BODY><div>Hello,<div class="js-helper js-readmsg-msg"><div><div id="style_16221240121488428939_BODY"><div class="cl_142769"><div><div><div><div> </div><div>I have question regarding of call forking on kamailio. Maybe somebody can help me.<br>For example I have table like</div><div> </div><div>+--------------+---------------+--------------+---------------+--------------+<br>| First number | Second number | Third number | Fourth number | Fifth number |<br>+--------------+---------------+--------------+---------------+--------------+<br>|   A number   |   B number    |   C number   |       ---     |      ---     |<br>+--------------+---------------+--------------+---------------+--------------+<br>Table 1: Extra_numbers</div><div> </div><div>or</div><div> </div><div>separated by comma</div><div> </div><div>+--------------------+-----------------------------+<br>| First_number       |     Additional_numbers      |<br>+--------------------+-----------------------------+<br>|   Primary number   |     2nd,3rd number          |<br>+--------------+-----------------------------------+<br>Table 2: Extra_numbers</div><div>+--------------------+---------------------------------+<br>| First_number       |     Additional_numbers          |<br>+--------------------+---------------------------------+<br>|   Primary number   |  2nd number,3rd number,4 number |<br>+--------------------+---------------------------------+<br>Table 3: Extra_numbers</div><div> </div><div>If kamailio get the call (INVITE) to some number/extension (for example, "1st number"), then in routing I request (select `Additional_numbers` from `Extra_numbers` where First_number='1 number';) from the mysql database and there I check, if "Additional_numbers" exists in the database.<br>Then I add "Additional_numbers" to the routing, and generate INVITE to "Additional_numbers" and 1 number. (always)</div><div><br>set r-uri ($ru) to first destination (2 number)</div><div>set r-uri ($ru) to second destination (3 number)</div><div>set r-uri ($ru) to Third destination (1 number)</div><div>set r-uri ($ru) to n destination</div><div><br>How could this be done?</div><div> </div><div>Who can help with routing?</div><div> </div></div><div>--</div><div>Best regards,</div><div>Fjodor Izmajlov</div></div></div></div></div></div></div></div></BODY></HTML>