[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    [SR-Users] Kamailio Parrallel Forking
From:       Ilie Soltanici <iliusha.md () gmail ! com>
Date:       2019-11-27 18:37:58
Message-ID: CAJQ6-U1w8690xJr4HT-wsFUS=wDkOtUUx2M72LC7Un8CvfmWkA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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


[Attachment #5 (text/html)]

<div dir="ltr"><div>Hello,</div><div><br></div><div>I&#39;m trying to use parallel \
forking if one extension is registered from multiple devices. (using \
WebSockets)<br></div><div><br></div><div>This is the related code from \
kamailio.cfg:</div><div><br></div><div>----------------------------------------------- \
-------------------------------------------------------------------------------------<br></div><div>if \
(!t_load_contacts()) {<br>         xlogl(&quot;L_WARN&quot;, &quot;Error loading \
contacts for $rU\n&quot;);<br>         sl_send_reply(&quot;500&quot;, &quot;Server \
Internal Error (Code:$cfg(line))&quot;);<br>         exit;<br>   } else {<br>         \
xlogl(&quot;L_INFO&quot;, &quot;Contacts loaded for $rU\n&quot;);<br>   }<br><br>   \
if (!t_next_contacts()) {<br>         xlogl(&quot;L_INFO&quot;, &quot;t_next_contacts \
- Only one contact found for $rU, calling\n&quot;);<br>   } else {<br>         \
xlogl(&quot;L_INFO&quot;, &quot;t_next_contacts - Multiple contacts found, parallel \
                forking\n&quot;);<br>   }<br><br>   route(RELAY);</div><div>
------------------------------------------------------------------------------------------------------------------------------------ \
<br></div><div><br></div><div>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&#39;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. <br></div><div><br></div><div>Was something changed in the  \
t_next_contacts function related to this?<br></div><div>Thank \
you<br></div><div><br></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic