If the question only in changing R-URI but not call forking behaviour itself - you can go with append_branch function and pseudo vars you can set to each branch.
On Fri, 28 May 2021, 09:34 Henning Westerholt, <[email protected]> wrote: > Hello, > > > > there are many ways of doing this parallel-call functionality. > > > > But one idea is to use e.g., the alias_db module. When you enable a > certain parameter, it should add additional contacts in the DB table as > branches. > > > > > https://kamailio.org/docs/modules/5.4.x/modules/alias_db.html#alias_db.p.append_branches > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > > *From:* sr-users <[email protected]> *On Behalf Of *????? > ???????? > *Sent:* Thursday, May 27, 2021 4:45 PM > *To:* [email protected] > *Subject:* [SR-Users] kamailio: split initialized call to two (three or > four or five) numbers > > > > 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 >
__________________________________________________________ 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
