[sr-dev] git:master:131d8999: rtpengine: fix queried_nodes_limit logic

Stefan Mititelu stefan.mititelu at 1and1.ro
Tue Feb 23 08:55:02 CET 2016


Module: kamailio
Branch: master
Commit: 131d8999c7efe43b50b4ede1a8426105ed96c399
URL: https://github.com/kamailio/kamailio/commit/131d8999c7efe43b50b4ede1a8426105ed96c399

Author: Stefan Mititelu <stefan.mititelu at 1and1.ro>
Committer: Stefan Mititelu <stefan.mititelu at 1and1.ro>
Date: 2016-02-23T09:54:38+02:00

rtpengine: fix queried_nodes_limit logic

Right now, even if the selected node returns error, the same node is still
selected and still queried for maximum of queried_nodes_limit times.

Don't retry to query the previous nodes, upon error returned (i.e.
Parallel session limit reached"). Instead, remember the queried nodes and try
to select between un-queried ones. Thus, rtpengine_offer() will select a proper,
available node which will be inserted in the hashtable and further used.

---

Modified: modules/rtpengine/rtpengine.c

---

Diff:  https://github.com/kamailio/kamailio/commit/131d8999c7efe43b50b4ede1a8426105ed96c399.diff
Patch: https://github.com/kamailio/kamailio/commit/131d8999c7efe43b50b4ede1a8426105ed96c399.patch




More information about the sr-dev mailing list