[SR-Users] Kamailio Parrallel Forking

Ilie Soltanici iliusha.md at gmail.com
Wed Nov 27 19:37:58 CET 2019


Hello,

I'm trying to use parallel forking if one extension is registered from
multiple devices. (using WebSockets)

This is the related code from kamailio.cfg:

------------------------------------------------------------------------------------------------------------------------------------
if (!t_load_contacts()) {
      xlogl("L_WARN", "Error loading contacts for $rU\n");
      sl_send_reply("500", "Server Internal Error (Code:$cfg(line))");
      exit;
  } else {
      xlogl("L_INFO", "Contacts loaded for $rU\n");
  }

  if (!t_next_contacts()) {
      xlogl("L_INFO", "t_next_contacts - Only one contact found for $rU,
calling\n");
  } else {
      xlogl("L_INFO", "t_next_contacts - Multiple contacts found, parallel
forking\n");
  }

  route(RELAY);
------------------------------------------------------------------------------------------------------------------------------------


I noticed that on Kamailio 5.2.5 - this code is working fine, and Kamailio
is sending an INVITE to both Devices.But, on Kamailio 5.3.1 - that's not
working anymore. For some reason, kamailio is sending just one INVITE to
one device with wrong URI. The URI is set to the second device instead of
the correct one.

Was something changed in the t_next_contacts function related to this?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191127/ef4be2f2/attachment.html>


More information about the sr-users mailing list