Hello,
 
I have question regarding of call forking on kamailio. Maybe somebody can help 
me.
For example I have table like
 
+--------------+---------------+--------------+---------------+--------------+
| First number | Second number | Third number | Fourth number | Fifth number |
+--------------+---------------+--------------+---------------+--------------+
|   A number   |   B number    |   C number   |       ---     |      ---     |
+--------------+---------------+--------------+---------------+--------------+
Table 1: Extra_numbers
 
or
 
separated by comma
 
+--------------------+-----------------------------+
| First_number       |     Additional_numbers      |
+--------------------+-----------------------------+
|   Primary number   |     2nd,3rd number          |
+--------------+-----------------------------------+
Table 2: Extra_numbers
+--------------------+---------------------------------+
| First_number       |     Additional_numbers          |
+--------------------+---------------------------------+
|   Primary number   |  2nd number,3rd number,4 number |
+--------------------+---------------------------------+
Table 3: Extra_numbers
 
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.
Then I add "Additional_numbers" to the routing, and generate INVITE to 
"Additional_numbers" and 1 number. (always)

set r-uri ($ru) to first destination (2 number)
set r-uri ($ru) to second destination (3 number)
set r-uri ($ru) to Third destination (1 number)
set r-uri ($ru) to n destination

How could this be done?
 
Who can help with routing?
 
--
Best regards,
Fjodor Izmajlov
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to